/* =========================================================================
   MYTIQ v1.3 — Intelligence in Motion
   Sistema visual: azul profundo + verde neón + coral acento
   Tipografía: Geist (display, character-driven) + Manrope (body, legibilidad)
   ========================================================================= */

/* CAPA 1: TOKENS BASE */
:root {
  /* Display: Geist (alternativa libre a Satoshi, similar al logo) */
  --font-display: 'Geist', 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Body: Manrope (mejor legibilidad para párrafos largos) */
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Geist Mono', 'Courier New', monospace;

  --container:    1200px;
  --gutter:       16px;
  --section-pad:  56px;
  --header-h:     64px;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* CAPA 2: MYTIQ · OSCURO (default — coincide con la marca master) */
:root,
[data-theme="aurora-dark"],
[data-theme="mytiq-dark"] {
  /* Fondos — azul profundo serie marca */
  --bg-deep:       #041226;
  --bg-surface:    #0A1A33;
  --bg-elevated:   #122642;
  --bg-glass:      rgba(10, 26, 51, 0.85);
  --bg-tint:       rgba(247, 250, 252, 0.03);

  /* Texto */
  --text-primary:    #F7FAFC;
  --text-secondary:  #CBD5E1;
  --text-muted:      #93A4B8;
  --text-dim:        #64748B;

  /* Accent — verde neón Mytiq (protagonista) */
  --accent:          #3DFF98;
  --accent-dim:      #22D87B;
  --accent-glow:     #7CFFB2;
  --accent-soft:     rgba(61, 255, 152, 0.12);
  --accent-contrast: #041226;

  /* Magic — mantiene violeta para elementos de IA / análisis avanzado */
  --magic:           #8B5CF6;
  --magic-dim:       #7C3AED;
  --magic-glow:      #A78BFA;

  /* Warm — coral conservado como acento secundario (badges, urgencia, popular) */
  --warm:            #FBB860;
  --warm-dim:        #F59E0B;
  --coral:           #FB7185;
  --coral-dim:       #F43F5E;

  /* Estado */
  --success:         #3DFF98;   /* alineado con accent — el éxito ES el verde */
  --danger:          #F87171;

  /* Bordes y divisores */
  --border:          rgba(247, 250, 252, 0.08);
  --border-strong:   rgba(247, 250, 252, 0.18);
  --divider:         rgba(247, 250, 252, 0.06);

  /* Sombras */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md:    0 10px 30px -10px rgba(0, 0, 0, 0.65);
  --shadow-lg:    0 30px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 20px 50px -15px rgba(61, 255, 152, 0.35);
  --shadow-magic:  0 20px 50px -15px rgba(139, 92, 246, 0.4);
  --shadow-glow:   0 0 24px rgba(61, 255, 152, 0.4);

  /* Gradientes — el hero ya no mezcla teal+violeta, ahora es verde+azul como el logo master */
  --gradient-hero:  radial-gradient(ellipse at 70% 30%, rgba(61, 255, 152, 0.12), transparent 55%),
                    radial-gradient(ellipse at 25% 75%, rgba(139, 92, 246, 0.08), transparent 55%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  --gradient-text-magic: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent) 100%);

  color-scheme: dark;
}

/* MYTIQ · CLARO */
[data-theme="aurora-light"],
[data-theme="mytiq-light"] {
  --bg-deep:       #F7FAFC;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #EDF2F7;
  --bg-glass:      rgba(255, 255, 255, 0.85);
  --bg-tint:       rgba(4, 18, 38, 0.02);

  --text-primary:    #041226;
  --text-secondary:  #2D3748;
  --text-muted:      #4A5568;
  --text-dim:        #93A4B8;

  /* En modo light, el verde neón se atenúa para mantener contraste WCAG AA */
  --accent:          #10B981;
  --accent-dim:      #059669;
  --accent-glow:     #34D399;
  --accent-soft:     rgba(16, 185, 129, 0.1);
  --accent-contrast: #FFFFFF;

  --magic:           #7C3AED;
  --magic-dim:       #6D28D9;
  --magic-glow:      #8B5CF6;

  --warm:            #EA580C;
  --warm-dim:        #C2410C;
  --coral:           #F43F5E;
  --coral-dim:       #E11D48;

  --success:         #10B981;
  --danger:          #DC2626;

  --border:          rgba(4, 18, 38, 0.1);
  --border-strong:   rgba(4, 18, 38, 0.2);
  --divider:         rgba(4, 18, 38, 0.06);

  --shadow-sm:    0 2px 8px rgba(4, 18, 38, 0.06);
  --shadow-md:    0 10px 30px -10px rgba(4, 18, 38, 0.15);
  --shadow-lg:    0 30px 60px -20px rgba(4, 18, 38, 0.2);
  --shadow-accent: 0 20px 50px -15px rgba(16, 185, 129, 0.25);
  --shadow-magic:  0 20px 50px -15px rgba(124, 58, 237, 0.25);
  --shadow-glow:   0 0 18px rgba(16, 185, 129, 0.3);

  --gradient-hero:  radial-gradient(ellipse at 70% 30%, rgba(16, 185, 129, 0.06), transparent 55%),
                    radial-gradient(ellipse at 25% 75%, rgba(124, 58, 237, 0.05), transparent 55%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  --gradient-text-magic: linear-gradient(135deg, var(--accent) 0%, var(--magic) 100%);

  color-scheme: light;
}

/* CORPORATIVO · OSCURO */
[data-theme="corporate-dark"] {
  --bg-deep:       #0F172A;
  --bg-surface:    #1E293B;
  --bg-elevated:   #334155;
  --bg-glass:      rgba(30, 41, 59, 0.85);
  --bg-tint:       rgba(255, 255, 255, 0.03);

  --text-primary:    #F1F5F9;
  --text-secondary:  #CBD5E1;
  --text-muted:      #94A3B8;
  --text-dim:        #64748B;

  --accent:          #06B6D4;
  --accent-dim:      #0891B2;
  --accent-glow:     #22D3EE;
  --accent-contrast: #0F172A;

  --magic:           #10B981;
  --magic-dim:       #059669;
  --magic-glow:      #34D399;

  --warm:            #F59E0B;
  --warm-dim:        #D97706;

  --success:         #10B981;
  --danger:          #EF4444;

  --border:          rgba(241, 245, 249, 0.1);
  --border-strong:   rgba(241, 245, 249, 0.2);
  --divider:         rgba(241, 245, 249, 0.06);

  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg:    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 50px -15px rgba(6, 182, 212, 0.35);
  --shadow-magic:  0 20px 50px -15px rgba(16, 185, 129, 0.35);

  --gradient-hero:  radial-gradient(ellipse at 50% 30%, rgba(6, 182, 212, 0.12), transparent 60%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--magic) 100%);
  --gradient-text-magic: linear-gradient(135deg, var(--accent-glow) 0%, var(--magic-glow) 100%);

  color-scheme: dark;
}

/* CORPORATIVO · CLARO */
[data-theme="corporate-light"] {
  --bg-deep:       #F3F4F6;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #F9FAFB;
  --bg-glass:      rgba(255, 255, 255, 0.85);
  --bg-tint:       rgba(15, 23, 42, 0.02);

  --text-primary:    #0F172A;
  --text-secondary:  #334155;
  --text-muted:      #64748B;
  --text-dim:        #94A3B8;

  --accent:          #0891B2;
  --accent-dim:      #0E7490;
  --accent-glow:     #06B6D4;
  --accent-contrast: #FFFFFF;

  --magic:           #059669;
  --magic-dim:       #047857;
  --magic-glow:      #10B981;

  --warm:            #D97706;
  --warm-dim:        #B45309;

  --success:         #059669;
  --danger:          #DC2626;

  --border:          rgba(15, 23, 42, 0.1);
  --border-strong:   rgba(15, 23, 42, 0.2);
  --divider:         rgba(15, 23, 42, 0.06);

  --shadow-sm:    0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md:    0 10px 30px -10px rgba(15, 23, 42, 0.15);
  --shadow-lg:    0 30px 60px -20px rgba(15, 23, 42, 0.2);
  --shadow-accent: 0 20px 50px -15px rgba(8, 145, 178, 0.2);
  --shadow-magic:  0 20px 50px -15px rgba(5, 150, 105, 0.2);

  --gradient-hero:  radial-gradient(ellipse at 50% 30%, rgba(6, 182, 212, 0.06), transparent 60%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--magic) 100%);
  --gradient-text-magic: linear-gradient(135deg, var(--accent) 0%, var(--magic) 100%);

  color-scheme: light;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* TIPOGRAFÍA */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text-primary);
}
/*
 * Highlight de palabras clave en headlines.
 * IMPORTANTE: NO usamos font-style: italic porque Geist no tiene variante italic
 * diseñada — el browser hace "fake italic" con skewX() que sobresale del bounding
 * box y causa que las palabras se corten contra el borde derecho.
 * En su lugar: weight más fino + tracking + color de marca + display inline-block
 * con padding para que la caja respire.
 */
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: 500;
  display: inline-block;
  padding-right: 0.08em;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
p  { margin: 0; }

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.btn--sm  { padding: 10px 16px; font-size: 0.85rem; min-height: 40px; }
.btn--lg  { padding: 16px 28px; font-size: 1rem; min-height: 52px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-glow); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--text-primary); }
.btn svg { flex-shrink: 0; }
.btn--primary svg, .btn--ghost svg { transition: transform 0.25s var(--ease); }
.btn--primary:hover svg, .btn--ghost:hover svg { transform: translateX(3px); }

/* TOPBAR */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 8px var(--gutter); text-align: center; }
.topbar__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 2s infinite; }
.topbar__text { line-height: 1.3; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled { background: var(--bg-deep); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px var(--gutter); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-primary); flex-shrink: 0; z-index: 101; }
.logo__mark { color: var(--accent); width: 32px; height: 32px; }
.logo__text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }

/* NAV BLINDADO */
.nav { display: flex; gap: 2rem; align-items: center; }
.nav__link { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 8px 0; }
.nav__link:hover { color: var(--text-primary); }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav__link:hover::after { width: 100%; }

.site-header .nav .nav__link--mobile-cta,
.site-header .nav .nav__close,
.nav .nav__link--mobile-cta,
.nav .nav__close,
.nav__link--mobile-cta,
.nav__close { display: none !important; }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; z-index: 101; position: relative; }
.nav-toggle__line { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header__cta { display: none; }

/* HERO */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; isolation: isolate; }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
  opacity: 0.6; z-index: -1;
}
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--gradient-hero); filter: blur(60px); animation: auroraFloat 20s ease-in-out infinite; }
@keyframes auroraFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.1) translate(30px, -20px); }
  66% { transform: scale(0.95) translate(-20px, 30px); }
}
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 920px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; animation: fadeInUp 0.8s var(--ease-out) 0.1s forwards;
}
.eyebrow__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 10px var(--accent); }
.hero__title { font-size: clamp(2rem, 9vw, 5.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; max-width: 15ch; opacity: 0; animation: fadeInUp 0.9s var(--ease-out) 0.2s forwards; }
.hero__subtitle { font-size: clamp(0.95rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 62ch; line-height: 1.55; opacity: 0; animation: fadeInUp 0.9s var(--ease-out) 0.35s forwards; }
.hero__subtitle strong { color: var(--text-primary); font-weight: 600; }
.hero__cta-row { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; margin-top: 8px; opacity: 0; animation: fadeInUp 0.9s var(--ease-out) 0.5s forwards; }
.hero__cta-row .btn { width: 100%; }
.hero__proof { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); width: 100%; max-width: 500px; opacity: 0; animation: fadeInUp 0.9s var(--ease-out) 0.65s forwards; }
.proof__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.proof__number {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
  background: var(--gradient-text-magic);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.proof__label { font-size: 0.8rem; color: var(--text-muted); text-align: center; line-height: 1.3; }
.proof__divider { display: none; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTION HEAD */
.section-head { margin-bottom: 32px; max-width: 820px; }
.section-head__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
  padding-left: 1.5rem; position: relative;
}
.section-head__tag::before { content: ''; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--accent); }
.section-head__title { font-size: clamp(1.6rem, 5vw, 3rem); max-width: 22ch; line-height: 1.15; }
.section-head__subtitle { font-size: 1rem; color: var(--text-muted); margin-top: 12px; max-width: 60ch; line-height: 1.55; }

/* PROBLEMS */
.problems { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.problems__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.problem-card { padding: 24px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; transition: all 0.3s var(--ease); position: relative; overflow: hidden; }
.problem-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.problem-card__num { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.1em; }
.problem-card h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.25; }
.problem-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

/* SERVICES */
.services { padding: var(--section-pad) 0; background: var(--bg-deep); border-top: 1px solid var(--border); position: relative; }
.services > .container { position: relative; z-index: 1; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.services__loading { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; }
.service-card { padding: 24px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s var(--ease); display: flex; flex-direction: column; gap: 14px; position: relative; }
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; background: var(--gradient-accent); color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 100px; }
.service-card__head { display: flex; flex-direction: column; gap: 4px; }
.service-card__category { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.service-card__title { font-size: 1.2rem; line-height: 1.2; }
.service-card__tagline { color: var(--accent); font-size: 0.88rem; font-weight: 400; letter-spacing: 0.005em; }
.service-card__desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.service-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.service-card__list li { font-size: 0.82rem; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.45; }
.service-card__list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.service-card__price { display: flex; align-items: baseline; gap: 0.4rem; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.service-card__price-note { font-size: 0.75rem; color: var(--text-muted); }
.service-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 12px 16px; background: transparent; border: 1px solid var(--border-strong); color: var(--text-primary); border-radius: 8px; font-size: 0.85rem; font-weight: 600; transition: all 0.2s var(--ease); margin-top: 4px; cursor: pointer; min-height: 44px; }
.service-card__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.service-card__cta.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* CONFIGURADOR */
.configurator { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.config { display: flex; flex-direction: column; gap: 16px; }
.config__panel { display: flex; flex-direction: column; gap: 10px; }
.config__option { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.2s var(--ease); position: relative; min-height: 44px; }
.config__option:hover { border-color: var(--border-strong); }
.config__option.is-selected { border-color: var(--accent); background: var(--bg-elevated); }
.config__option input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; }
.config__option-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.config__option-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; line-height: 1.3; }
.config__option-cat { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.config__option-price-wrap { text-align: right; flex-shrink: 0; }
.config__option-price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--accent); white-space: nowrap; display: block; }
.config__option-period { font-size: 0.7rem; color: var(--text-muted); display: block; }
.config__summary { padding: 20px 18px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 12px; }
.config__summary-title { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.config__summary-empty { color: var(--text-muted); font-size: 0.88rem; text-align: center; padding: 20px 0; }
.config__list { list-style: none; padding: 0; margin: 0 0 14px 0; display: flex; flex-direction: column; gap: 4px; }
.config__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--text-secondary); padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.config__list li:last-child { border-bottom: none; }
.config__list li span:last-child { font-family: var(--font-mono); color: var(--text-primary); white-space: nowrap; }
.config__totals { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.config__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); }
.config__row--discount { color: var(--accent); font-weight: 600; }
.config__row--total { padding-top: 10px; border-top: 1px solid var(--border-strong); font-size: 1rem; color: var(--text-primary); font-weight: 700; margin-top: 4px; }
.config__split { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 6px; line-height: 1.4; }
.config__tiers { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.config__tiers-title { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.config__tiers-hint { font-size: 0.82rem; color: var(--text-secondary); }

/* PROCESS */
.process { padding: var(--section-pad) 0; background: var(--bg-deep); border-top: 1px solid var(--border); }
.process__timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; max-width: 820px; position: relative; }
.process__timeline::before { content: ''; position: absolute; left: 24px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(to bottom, var(--accent), transparent); }
.process__step { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.process__step-num { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); border: 1px solid var(--accent); border-radius: 50%; font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--accent); z-index: 1; }
.process__step-body { min-width: 0; }
.process__step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.process__step p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; line-height: 1.55; }
.process__duration { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }

/* WHY */
.why { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.why__card { padding: 24px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; transition: all 0.3s var(--ease); }
.why__card:hover { background: var(--bg-elevated); transform: translateY(-2px); }
.why__icon { font-size: 1.3rem; color: var(--accent); margin-bottom: 12px; display: inline-block; }
.why__card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why__card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* CTA FORM */
.cta-form { padding: var(--section-pad) 0; background: var(--bg-deep); border-top: 1px solid var(--border); }
.cta-form__wrap { display: flex; flex-direction: column; gap: 24px; max-width: 1100px; margin: 0 auto; }
.cta-form__title { font-size: clamp(1.6rem, 5vw, 2.75rem); margin: 12px 0; }
.cta-form__subtitle { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.55; }
.cta-form__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-form__bullets li { font-size: 0.9rem; color: var(--text-secondary); }
.cta-form__form { padding: 24px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.req { color: var(--accent); }
.field input, .field select, .field textarea { padding: 14px; background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-primary); font-size: 16px; transition: all 0.2s var(--ease); width: 100%; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.checkbox input { margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.checkbox a { color: var(--accent); text-decoration: underline; }
.selected-services { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--bg-deep); border-radius: 8px; }
.selected-services .chip { padding: 4px 10px; background: var(--bg-elevated); border: 1px solid var(--accent); border-radius: 100px; font-size: 0.75rem; color: var(--accent); }
.cta-form__feedback { text-align: center; font-size: 0.85rem; padding: 8px; border-radius: 6px; min-height: 1.5rem; }
.cta-form__feedback.is-success { color: var(--success); background: rgba(74, 222, 128, 0.1); }
.cta-form__feedback.is-error { color: var(--danger); background: rgba(248, 113, 113, 0.1); }

/* FAQ */
.faq { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.faq__list { display: flex; flex-direction: column; max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq__item[open] { padding-bottom: 20px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-body); transition: color 0.2s var(--ease); line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 1.1rem; color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.faq__item p { margin-top: 12px; color: var(--text-muted); line-height: 1.65; max-width: 70ch; font-size: 0.92rem; }

/* FOOTER */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-top: 48px; color: var(--text-muted); }
.site-footer__inner { display: flex; flex-direction: column; gap: 32px; padding-bottom: 32px; }
.site-footer__tagline { margin-top: 12px; font-size: 0.9rem; max-width: 30ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.site-footer__cols h4 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 12px; }
.site-footer__cols a { display: block; padding: 5px 0; font-size: 0.85rem; color: var(--text-muted); }
.site-footer__cols a:hover { color: var(--accent); }
.site-footer__bottom { padding: 16px 0; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-dim); text-align: center; }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; bottom: 16px; right: 16px;
  width: 52px; height: 52px; background: #25D366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); z-index: 90;
  transition: transform 0.3s var(--ease);
  bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-float:hover { transform: scale(1.1); }
.wa-float__pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: waPulse 2s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }

/* 🌈 THEME SWITCHER */
.theme-switcher {
  position: fixed; bottom: 16px; left: 16px; z-index: 91;
  bottom: max(16px, env(safe-area-inset-bottom));
}
.theme-switcher__trigger {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.theme-switcher__trigger::before { content: ''; position: absolute; inset: 0; background: var(--gradient-accent); opacity: 0; transition: opacity 0.25s var(--ease); }
.theme-switcher__trigger:hover { transform: scale(1.08); box-shadow: var(--shadow-magic); border-color: var(--accent); }
.theme-switcher__trigger:hover::before { opacity: 0.12; }
.theme-switcher__trigger svg { position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.theme-switcher.is-open .theme-switcher__trigger svg { transform: rotate(90deg); }

.theme-switcher__panel {
  position: absolute; bottom: calc(100% + 12px); left: 0; min-width: 280px;
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.96); transform-origin: bottom left;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.theme-switcher.is-open .theme-switcher__panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
}
.theme-switcher__header { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; padding: 0 4px; }

.theme-mode-toggle { display: flex; gap: 4px; padding: 4px; background: var(--bg-deep); border-radius: 100px; margin-bottom: 14px; }
.theme-mode-btn { flex: 1; padding: 8px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.25s var(--ease); cursor: pointer; }
.theme-mode-btn.is-active { background: var(--gradient-accent); color: white; box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3); }
.theme-mode-btn svg { width: 14px; height: 14px; }

.theme-palette-list { display: flex; flex-direction: column; gap: 6px; }
.theme-palette-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.2s var(--ease); text-align: left; width: 100%; }
.theme-palette-btn:hover { background: var(--bg-elevated); }
.theme-palette-btn.is-active { background: var(--bg-elevated); border-color: var(--accent); }
.theme-palette-swatches { display: flex; gap: 0; flex-shrink: 0; }
.theme-palette-swatches span { width: 16px; height: 24px; display: block; border: 1px solid var(--border); }
.theme-palette-swatches span:first-child { border-radius: 4px 0 0 4px; }
.theme-palette-swatches span:last-child { border-radius: 0 4px 4px 0; }
.theme-palette-info { flex: 1; min-width: 0; }
.theme-palette-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.theme-palette-tag { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.theme-palette-check { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0; transform: scale(0.6); transition: all 0.2s var(--ease); }
.theme-palette-btn.is-active .theme-palette-check { opacity: 1; transform: scale(1); }

/* UTILIDADES */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* RESPONSIVE */
@media (min-width: 480px) {
  :root { --gutter: 20px; --section-pad: 64px; }
  .hero__cta-row { flex-direction: row; max-width: none; justify-content: center; }
  .hero__cta-row .btn { width: auto; }
  .hero__proof { grid-template-columns: repeat(3, 1fr); max-width: 600px; }
  .service-card__price-amount { font-size: 1.75rem; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-pad: 80px; --header-h: 72px; }

  .site-header .nav, .nav {
    display: flex !important; position: static !important; background: transparent !important;
    flex-direction: row !important; padding: 0 !important; height: auto !important; width: auto !important;
    transform: none !important; border: none !important; visibility: visible !important;
    box-shadow: none !important; transition: none !important; overflow: visible !important;
  }
  .site-header .nav .nav__link--mobile-cta, .site-header .nav .nav__close,
  .nav .nav__link--mobile-cta, .nav .nav__close,
  .nav__link--mobile-cta, .nav__close { display: none !important; }
  .nav-toggle { display: none !important; }
  .header__cta { display: inline-flex !important; }

  .hero { padding: 80px 0 96px; }
  .hero__grid-bg { background-size: 72px 72px; opacity: 0.5; }
  .problems__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .process__timeline::before { left: 32px; }
  .process__step-num { width: 64px; height: 64px; font-size: 1.1rem; }
  .process__step { gap: 20px; }
  .proof__divider { display: block; width: 1px; height: 30px; background: var(--border-strong); }
  .hero__proof { display: flex; align-items: center; justify-content: center; gap: 32px; }
  .cta-form__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .cta-form__form { padding: 40px; }
  .config { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
  .config__summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 28px; }
  .service-card { padding: 28px 24px; }
  .section-head { margin-bottom: 48px; }
  .section-head__title { font-size: clamp(2rem, 4.5vw, 3.25rem); }
  .site-footer__inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 48px; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .wa-float { width: 56px; height: 56px; bottom: 24px; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); }
  .theme-switcher { bottom: 24px; left: 24px; bottom: max(24px, env(safe-area-inset-bottom)); }
  .theme-switcher__trigger { width: 52px; height: 52px; }
  .topbar { font-size: 0.8rem; }
}

@media (min-width: 1024px) {
  :root { --section-pad: 96px; }
  .problems__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .why__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .hero { padding: 112px 0 112px; }
  .hero__content { gap: 28px; }
  .process__step h3 { font-size: 1.3rem; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; --gutter: 40px; }
}

/* MENÚ MÓVIL BLINDADO */
@media (max-width: 767px) {
  .site-header .nav, .nav {
    position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    width: min(320px, 85vw) !important; height: 100vh !important;
    background: var(--bg-deep) !important;
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    padding: 24px 28px 40px !important; gap: 0 !important;
    border-left: 1px solid var(--border-strong) !important;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    z-index: 99 !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5) !important;
    overflow-y: auto !important;
    visibility: hidden;
  }
  .site-header .nav.is-open, .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
  }
  .site-header .nav .nav__close, .nav .nav__close, .nav__close {
    display: flex !important; align-items: center !important; justify-content: center !important;
    align-self: flex-end !important; width: 44px !important; height: 44px !important; padding: 0 !important;
    margin-bottom: 16px !important; background: transparent !important;
    border: 1px solid var(--border-strong) !important; border-radius: 50% !important;
    color: var(--text-primary) !important; cursor: pointer !important;
    transition: all 0.2s var(--ease) !important;
  }
  .nav__close:hover { background: var(--accent) !important; color: var(--accent-contrast) !important; border-color: var(--accent) !important; }
  .nav__link {
    display: block !important; width: 100% !important; padding: 16px 0 !important;
    font-size: 1.05rem !important; color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .nav__link::after { display: none !important; }
  .site-header .nav .nav__link--mobile-cta, .nav .nav__link--mobile-cta, .nav__link--mobile-cta {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    margin-top: 24px !important; padding: 14px 24px !important;
    background: var(--accent) !important; color: var(--accent-contrast) !important;
    border: none !important; border-bottom: none !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 1rem !important; text-align: center !important;
  }
  body.has-menu-open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(11, 17, 32, 0.6); z-index: 98;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.3s var(--ease) forwards;
  }
  @keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
  body.has-menu-open { overflow: hidden !important; }
  .nav-toggle { display: flex !important; }
  .header__cta { display: none !important; }
}

/* ===========================================================
   HONEYPOT (anti-bot)
   Campo invisible para humanos, accesible para screen readers
   =========================================================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hp-field input { display: none !important; }

/* ===========================================================
   AI EDGE — Sección destacada del SaaS de IA propio
   =========================================================== */
.ai-edge {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.ai-edge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(61, 255, 152, 0.08), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.ai-edge__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-glow);
}
.ai-edge__content { display: flex; flex-direction: column; gap: 16px; }
.ai-edge__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.ai-edge__text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}
.ai-edge__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ai-edge__badge {
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Visual del panel de monitoreo (mockup) */
.ai-edge__visual {
  display: flex;
  justify-content: center;
}
.ai-edge__visual-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.ai-edge__visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.ai-edge__visual-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: aiPulse 2s var(--ease) infinite;
}
@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ai-edge__visual-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.ai-edge__visual-llm {
  color: var(--text-primary);
  font-weight: 500;
}
.ai-edge__visual-status {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
}
.ai-edge__visual-status--ok {
  background: var(--accent-soft);
  color: var(--accent);
}
.ai-edge__visual-status--pending {
  background: rgba(251, 184, 96, 0.12);
  color: var(--warm);
}
.ai-edge__visual-line {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.ai-edge__visual-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
}
.ai-edge__visual-metric span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.ai-edge__visual-metric strong {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(61, 255, 152, 0.4);
}

@media (min-width: 768px) {
  .ai-edge__inner {
    grid-template-columns: 1.4fr 1fr;
    padding: 48px 40px;
    gap: 48px;
  }
  .ai-edge__visual-card { max-width: 100%; }
}

/* =========================================================================
   HERO LAYOUT 2 COLUMNAS (texto + mockup celular)
   ========================================================================= */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__text {
  max-width: 640px;
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
  }
}

/* =========================================================================
   MOCKUP CELULAR (replica de tu infografía: +24.8% / $2.41M / +18.6%)
   ========================================================================= */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(155deg, #1a2840 0%, #0a1a33 100%);
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(247, 250, 252, 0.05),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px rgba(61, 255, 152, 0.25);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
  z-index: 2;
}
.phone-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-frame__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  background: #041226;
  border-radius: 30px;
  padding: 38px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  position: relative;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 6px;
}
.phone-status__icons {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--text-primary);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(247, 250, 252, 0.06);
}
.phone-header__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.phone-header__bell {
  color: var(--text-muted);
  font-size: 18px;
}

.phone-metric {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.phone-metric__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(61, 255, 152, 0.3);
  font-variant-numeric: tabular-nums;
}
.phone-metric__sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.phone-chart {
  padding: 0 4px;
  height: 100px;
}
.phone-chart svg {
  width: 100%;
  height: 100%;
}

.phone-footer {
  padding: 14px 12px 0;
  border-top: 1px solid rgba(247, 250, 252, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.phone-footer__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.phone-footer__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.phone-icons {
  margin-top: auto;
  padding: 12px 8px 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.phone-icons svg {
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}
.phone-icons svg:hover {
  opacity: 1;
}

/* Tarjeta secundaria detrás del celular (capa profundidad estilo infografía) */
.hero__phone-bg-card {
  position: absolute;
  width: 240px;
  height: 140px;
  right: -30px;
  top: 30%;
  background: linear-gradient(155deg, rgba(20, 30, 55, 0.7) 0%, rgba(10, 20, 40, 0.4) 100%);
  border: 1px solid rgba(61, 255, 152, 0.15);
  border-radius: 14px;
  padding: 18px;
  z-index: 1;
  transform: rotate(8deg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero__phone-bg-card svg {
  width: 100%;
  height: 100%;
}

/* En mobile, el mockup se hace más pequeño y la tarjeta secundaria se oculta */
@media (max-width: 1023px) {
  .phone-frame {
    width: 240px;
    height: 480px;
    transform: rotate(0deg);
    margin: 20px auto 0;
  }
  .hero__phone-bg-card {
    display: none;
  }
}
@media (max-width: 480px) {
  .phone-frame {
    width: 220px;
    height: 440px;
  }
  .phone-metric__value {
    font-size: 30px;
  }
  .phone-footer__value {
    font-size: 18px;
  }
}
