/* ==========================================================================
   SOLUCIONES DE AUTOMATIZACIÓN & IA — TECNOXTREME S.A.
   Diseño: Corporativo B2B, Sobrio, Moderno y de Alta Conversión
   ========================================================================== */

:root {
  /* Paleta Base - Slate & Deep Space */
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-card: #131d33;
  --bg-card-hover: #17233e;
  --bg-card-subtle: rgba(30, 41, 59, 0.6);
  
  /* Bordes y Líneas */
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-focus: rgba(16, 185, 129, 0.4);
  --border-card: #1e293b;
  
  /* Textos */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Colores de Marca y Acción */
  --brand-emerald: #10b981;
  --brand-emerald-hover: #059669;
  --brand-emerald-glow: rgba(16, 185, 129, 0.15);
  
  --brand-cyan: #06b6d4;
  --brand-blue: #3b82f6;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;

  /* WhatsApp UI Colors */
  --wa-header: #1f2c34;
  --wa-bg: #0b141a;
  --wa-bubble-in: #202c33;
  --wa-bubble-out: #005c4b;
  --wa-text: #e9edef;
  --wa-text-subtle: #8696a0;
  --wa-check: #53bdeb;

  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Efectos y Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px -10px rgba(16, 185, 129, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, picture, video, canvas {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía Base */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==================== BOTONES & BADGES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-emerald);
  color: #042f2e;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: #334155;
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
  background: var(--brand-emerald-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.site-header .container {
  max-width: 1280px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: var(--radius-sm);
  color: #0b1120;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.company-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sub-brand {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(14px, 1.8vw, 24px);
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-emerald);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.nav-pagos-link {
  color: #38bdf8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-links a.nav-pagos-link:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.nav-links a.nav-pagos-link::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-header-cta {
  white-space: nowrap;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-header-cta:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.link-pagar-online {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-pagar-online:hover {
  color: var(--brand-emerald);
  text-decoration: underline;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 70px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 2.85rem;
  margin: 18px 0 20px;
}

.highlight-gradient {
  background: linear-gradient(120deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.metric-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-subtle);
}

/* Tarjeta Hero Visual */
.hero-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
}

.preview-platform {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.preview-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.flow-step.ai-step {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.flow-step.success-step {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.step-patient {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.step-ai {
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
}

.step-calendar {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-info strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.step-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.flow-arrow {
  display: flex;
  justify-content: center;
  color: var(--text-dim);
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
  padding: 90px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==================== SIMULADOR EN VIVO ==================== */
.simulator-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.scenario-selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.scenario-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.scenario-tab:hover {
  border-color: var(--brand-emerald);
  color: var(--text-main);
  transform: translateY(-2px);
}

.scenario-tab.active {
  background: var(--bg-card);
  border-color: var(--brand-emerald);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.tab-icon {
  font-size: 1.6rem;
}

.tab-text strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.tab-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Workspace Dual */
.dual-workspace {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

/* Columna Izquierda: Celular WhatsApp */
.phone-mockup {
  background: #020617;
  border: 2px solid #334155;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}

.phone-screen {
  background: var(--wa-bg);
  border-radius: 26px;
  overflow: hidden;
  height: 525px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-header {
  background: var(--wa-header);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: #2a3942;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.status-badge-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: #25d366;
  border: 2px solid var(--wa-header);
  border-radius: 50%;
}

.contact-meta {
  display: flex;
  flex-direction: column;
}

.contact-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wa-text);
  line-height: 1.2;
}

.contact-status {
  font-size: 0.72rem;
  color: #25d366;
}

.header-call-icons {
  color: #aebac1;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Burbujas WhatsApp */
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  animation: fadeInMsg 0.3s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble-in {
  align-self: flex-start;
  background-color: var(--wa-bubble-in);
  color: var(--wa-text);
  border-top-left-radius: 2px;
}

.bubble-out {
  align-self: flex-end;
  background-color: var(--wa-bubble-out);
  color: #ffffff;
  border-top-right-radius: 2px;
}

.bubble-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--wa-text-subtle);
  margin-top: 4px;
}

.bubble-out .bubble-time {
  color: rgba(255, 255, 255, 0.7);
}

.ticks {
  color: var(--wa-check);
  font-size: 0.8rem;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--wa-bubble-in);
  border-radius: 10px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #8696a0;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

/* Barra de Opciones Colapsable en el Celular */
.chat-action-bar {
  background: #202c33;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.options-toggle-btn {
  width: 100%;
  background: #2a3942;
  color: #e9edef;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  font-family: inherit;
}

.options-toggle-btn:hover {
  background: #32444e;
  border-color: rgba(0, 168, 132, 0.4);
  color: #ffffff;
}

.options-toggle-btn.active {
  background: #111b21;
  border-color: #00a884;
  color: #00a884;
}

.toggle-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 0.92rem;
}

.toggle-chevron {
  font-size: 0.85rem;
  font-weight: bold;
  color: #8696a0;
  transition: transform 0.2s ease;
}

.options-toggle-btn.active .toggle-chevron {
  color: #00a884;
}

.quick-options-drawer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 165px;
  overflow-y: auto;
  padding-right: 4px;
  transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.quick-options-drawer.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.quick-options-drawer::-webkit-scrollbar {
  width: 4px;
}

.quick-options-drawer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.quick-options-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.quick-options-drawer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.quick-btn {
  background: #2a3942;
  color: #e9edef;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
}

.quick-btn:hover {
  background: #00a884;
  color: #0b141a;
  font-weight: 600;
}

/* Columna Derecha: Backend Monitor */
.backend-monitor {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.monitor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.badge-tech {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.monitor-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tarjeta en el monitor */
.monitor-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.card-sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
}

.sync-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.calendar-event {
  border-left: 4px solid var(--brand-emerald);
  padding-left: 14px;
  margin: 12px 0;
}

.event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.detail-col strong {
  display: block;
  color: #cbd5e1;
}

.detail-col span {
  color: var(--text-dim);
}

.monitor-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.log-stream {
  font-family: monospace;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry.log-ready {
  color: #10b981;
}

.log-entry.log-action {
  color: #38bdf8;
}

.simulator-cta {
  margin-top: 40px;
}

.simulator-cta p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* ==================== PUENTE DE PRUEBA EN VIVO SOFÍA ==================== */
.simulator-live-bridge {
  margin-top: 48px;
  position: relative;
}

.bridge-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px -5px rgba(6, 182, 212, 0.15);
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.bridge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
}

.bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.bridge-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.bridge-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px auto;
}

.bridge-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp-live {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-whatsapp-live:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.6);
  color: #ffffff !important;
}

/* ==================== SOLUCIONES ==================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-xl);
}

.solution-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald);
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--brand-cyan);
}

.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--brand-blue);
}

.solution-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.solution-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.solution-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.solution-bullets li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.solution-bullets li::before {
  content: "•";
  color: var(--brand-emerald);
  font-size: 1.1rem;
  line-height: 1;
}

/* ==================== SELECTOR DE MONEDA ==================== */
.currency-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.currency-switch {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.curr-btn.active {
  background: var(--brand-emerald);
  color: #042f2e;
}

/* ==================== NUESTRAS VENTAJAS & DIFERENCIADORES ==================== */
.advantages-section {
  background: radial-gradient(circle at 50% 25%, rgba(6, 182, 212, 0.06) 0%, rgba(11, 17, 32, 0.95) 70%, transparent 100%);
  position: relative;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(6, 182, 212, 0.15);
}

.adv-card:hover::before {
  opacity: 1;
}

.adv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.adv-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.adv-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.adv-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.adv-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.adv-icon-wrap.icon-sky {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.adv-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.adv-icon-wrap.icon-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.adv-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-cyan { background: rgba(6, 182, 212, 0.12); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-sky { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-teal { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }

.adv-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.adv-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.adv-inline-link {
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.2s;
}

.adv-inline-link:hover {
  color: #7dd3fc;
}

.adv-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.4;
}

.adv-highlight .check-icon {
  color: var(--brand-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==================== COMPARATIVA DE MERCADO ==================== */
.comparison-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-xl);
}

.comparison-header {
  max-width: 720px;
  margin: 0 auto 36px;
}

.comparison-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.comparison-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.comp-col {
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.comp-generic {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
}

.comp-tecnoxtreme {
  background: linear-gradient(180deg, #16243b 0%, #111c30 100%);
  border: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 30px -8px rgba(6, 182, 212, 0.2);
}

.comp-recommended-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
}

.comp-col-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.comp-badge-generic {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.comp-badge-tecnoxtreme {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.comp-col-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.comp-col-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.comp-item.negative {
  color: #94a3b8;
}

.comp-item.positive {
  color: #e2e8f0;
}

.comp-item.positive strong {
  color: #ffffff;
}

.comp-item.negative strong {
  color: #cbd5e1;
}

.comp-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.comp-item.negative .comp-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-item.positive .comp-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Mini Banner de Acción dentro de Ventajas */
.adv-action-banner {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.adv-action-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.adv-action-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.adv-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==================== SEGURIDAD ==================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: var(--transition);
}

.security-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.25);
}

.sec-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.security-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.security-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==================== PLANES ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.3);
}

.pricing-card.popular {
  border-color: var(--brand-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-card) 40%);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-emerald);
  color: #042f2e;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.card-header-tier h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.tier-for {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.card-price {
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.price-setup {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 6px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==================== PUESTA EN MARCHA & ACTIVACIÓN ==================== */
.onboarding-section {
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.08) 0%, rgba(11, 17, 32, 0.95) 70%, transparent 100%);
  position: relative;
  padding: 80px 0;
}

.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.onboarding-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.onboarding-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(2, 132, 199, 0.15);
}

.onboarding-step-card.highlight {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, #162438 0%, #111b2d 100%);
  box-shadow: 0 12px 28px -8px rgba(16, 185, 129, 0.18);
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 16px;
}

.step-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.step-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.step-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Tarjeta Showcase de la Ficha */
.activation-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-xl);
}

.activation-showcase-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.activation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.activation-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

.activation-box-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.activation-box-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.activation-blocks-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-block-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.preview-block-item strong {
  color: #ffffff;
}

.preview-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Columna CTA Ficha */
.activation-cta-card {
  background: linear-gradient(180deg, #17243b 0%, #111a2d 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-card-header .chip-active {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-bottom: 8px;
}

.cta-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cta-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cta-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
}

.security-check {
  color: #94a3b8;
}

.support-hint {
  color: var(--text-dim);
}

.support-hint a {
  color: #38bdf8;
  text-decoration: underline;
}

.support-hint a:hover {
  color: #7dd3fc;
}

/* Enlaces de activación en tarjetas de planes */
.link-activar-ficha {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 0;
}

.link-activar-ficha:hover {
  color: #7dd3fc;
  text-decoration: underline;
  transform: translateX(2px);
}

/* ==================== CTA FINAL ==================== */
.final-cta-section {
  padding: 80px 0 100px;
}

.final-cta-box {
  background: linear-gradient(135deg, #131d33 0%, #0f172a 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.cta-title {
  font-size: 2.4rem;
  margin: 12px 0 16px;
}

.cta-subtitle {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.final-btn-wrap {
  margin-bottom: 20px;
}

.cta-guarantee {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: #060a12;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  font-size: 0.88rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .company-name {
  font-size: 1.25rem;
}

.legal-id {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.footer-bio {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 14px;
  line-height: 1.6;
}

.site-footer h4 {
  font-size: 0.95rem;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer li {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--brand-emerald);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1180px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.84rem;
  }
  .btn-header-cta {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .dual-workspace {
    grid-template-columns: 1fr;
  }

  .solutions-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr 1fr;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .adv-action-banner {
    flex-direction: column;
    text-align: center;
  }

  .onboarding-steps-grid {
    grid-template-columns: 1fr;
  }

  .activation-showcase-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-header .main-nav {
    display: none; /* Simplificado para móviles */
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .dual-workspace {
    gap: 24px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .comparison-showcase {
    padding: 26px 18px;
  }

  .adv-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .adv-action-buttons .btn {
    width: 100%;
  }

  .activation-showcase-box {
    padding: 24px 18px;
  }

  .bridge-card {
    padding: 26px 18px;
  }

  .bridge-title {
    font-size: 1.25rem;
  }

  .bridge-actions {
    flex-direction: column;
    width: 100%;
  }

  .bridge-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .activation-cta-card {
    padding: 22px 18px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==============================================================================
   OPTIMIZACIÓN NATIVA PARA ANDROID & SMARTPHONES (<= 480px)
   Asegura legibilidad óptima, botones táctiles amplios (min 44px)
   y previene elementos empequeñecidos ("chiquititos") o desbordes horizontales.
   ============================================================================== */
@media (max-width: 480px) {
  /* 1. Contenedores y Flujo */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(1.45rem, 5.8vw, 1.75rem);
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* 2. Cabecera Móvil */
  .site-header {
    padding: 10px 0;
  }

  .site-header .container {
    padding: 0 12px;
  }

  .header-content {
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo .logo-mark svg {
    width: 24px;
    height: 24px;
  }

  .company-name {
    font-size: 1.02rem;
  }

  .sub-brand {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .btn-header-cta {
    padding: 7px 11px;
    font-size: 0.76rem;
    gap: 5px;
  }

  /* 3. Hero Section y Estadísticas */
  .hero-section {
    padding: 32px 0 28px;
  }

  .badge-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6.8vw, 2.05rem);
    line-height: 1.22;
    margin: 12px 0 14px;
  }

  .hero-description {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-cta-group {
    margin-bottom: 26px;
    gap: 12px;
  }

  .hero-cta-group .btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 12px 18px;
    width: 100%;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    text-align: center;
  }

  .metric-divider {
    display: none;
  }

  .metric-value {
    font-size: 1.25rem;
  }

  .metric-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* 4. Simulador Interactivo Sofía IA */
  .scenario-selector {
    gap: 8px;
    margin-bottom: 20px;
  }

  .scenario-tab {
    width: 100%;
    padding: 12px 14px;
    gap: 12px;
    border-radius: var(--radius-sm);
  }

  .tab-icon {
    font-size: 1.35rem;
  }

  .tab-text strong {
    font-size: 0.88rem;
  }

  .tab-text span {
    font-size: 0.72rem;
  }

  .phone-mockup {
    border-radius: 22px;
    padding: 7px;
    border-width: 1.5px;
  }

  .phone-screen {
    border-radius: 16px;
    height: 480px;
  }

  .chat-header {
    padding: 10px 12px;
  }

  .contact-avatar {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .contact-meta {
    min-width: 0;
  }

  .contact-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-status {
    font-size: 0.68rem;
  }

  .chat-messages {
    padding: 12px 8px;
    gap: 10px;
  }

  .chat-bubble {
    max-width: 88%;
    padding: 9px 12px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .bubble-time {
    font-size: 0.64rem;
  }

  .chat-action-bar {
    padding: 8px 10px;
  }

  .options-toggle-btn {
    padding: 9px 12px;
    min-height: 44px;
    font-size: 0.78rem;
  }

  .quick-btn {
    padding: 9px 10px;
    min-height: 42px;
    font-size: 0.78rem;
  }

  .backend-monitor {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .monitor-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .monitor-title {
    font-size: 0.86rem;
  }

  .monitor-card {
    padding: 14px;
  }

  .event-title {
    font-size: 0.95rem;
  }

  .event-meta {
    font-size: 0.8rem;
  }

  .event-details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.76rem;
  }

  /* 5. Tarjetas Comerciales y Acciones */
  .pricing-card {
    padding: 26px 16px;
  }

  .pricing-card .price-amount {
    font-size: 2rem;
  }

  .pricing-features li {
    font-size: 0.82rem;
  }

  .pricing-card .btn {
    min-height: 46px;
  }

  .comparison-showcase {
    padding: 20px 14px;
  }

  .comp-col {
    padding: 20px 14px;
  }

  .comp-item {
    font-size: 0.82rem;
    gap: 10px;
  }

  .activation-showcase-box {
    padding: 20px 14px;
  }

  .activation-box-title {
    font-size: 1.42rem;
  }

  .activation-cta-card {
    padding: 20px 14px;
  }

  .final-cta-box {
    padding: 30px 16px;
  }

  .final-cta-box .cta-title {
    font-size: 1.55rem;
  }

  .final-cta-box .cta-subtitle {
    font-size: 0.92rem;
  }

  .final-btn-wrap .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.94rem;
    padding: 12px 14px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 24px;
  }
}

/* Pantallas Ultra-Compactas (<= 360px, ej. Galaxy A01/A03 o similares) */
@media (max-width: 360px) {
  .site-header .container {
    padding: 0 8px;
  }

  .btn-header-cta span {
    display: inline-block;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .metric-item:last-child {
    border-bottom: none;
  }
}
