/* ========================================
   DESIGN SYSTEM — TOKENS
======================================== */
:root {
  /* Paleta de marca Lowtech (manual de identidad)
     Steel blue principal #385d7a, dark navy #192632, cream #ede8dc,
     warm orange #f6a757, burnt orange #af4c32, neutral gray #adacac.
     Los semáforos (--green) y los colores nativos de WhatsApp se mantienen
     como excepción semántica intencional. */
  --blue: #385d7a;
  --blue-dark: #192632;
  --blue-light: #ede8dc;
  --blue-mid: #a8bccd;
  --amber: #f6a757;
  --amber-light: #fde6d0;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F0F2F5;
  --gray-200: #E0E4EA;
  --gray-600: #6B7280;
  --gray-900: #192632;
  --text: #1A1A18;
  --text-muted: #6B6B68;

  --green: #16A34A;
  --green-light: #E7F7ED;
  --coral: #af4c32;
  --coral-light: #f1d8ce;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Surfaces (theme-aware). --surface se usa donde antes había white
     hardcoded como "fondo de tarjeta". --body-bg es el fondo de página. */
  --body-bg: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #fdfaf3;
  --surface-cream: #ede8dc;
  --surface-cream-2: #f5efe0;
  --card-border: rgba(56, 93, 122, 0.12);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(56, 93, 122, 0.08);
  --shadow-md: 0 4px 16px rgba(56, 93, 122, 0.12);
  --shadow-lg: 0 8px 32px rgba(56, 93, 122, 0.18);
  --shadow-xl: 0 20px 60px rgba(56, 93, 122, 0.25);

  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* DARK MODE — paleta derivada del brand (#192632 base), nunca negro puro.
   Mantiene amber/coral idénticos (popean mejor sobre slate).
   No se sobrescribe --gray-900: lo usa el footer como fondo navy. */
[data-theme="dark"] {
  --blue-light: #233241;
  /* --blue-mid se queda claro en dark (no se overridea a oscuro) para
     que los textos/bordes que lo usan sigan siendo legibles sobre slate.
     #a8bccd es el original de light mode; #b8cee0 lo subimos un toque
     para más contraste. */
  --blue-mid: #b8cee0;
  --amber-light: rgba(246, 167, 87, 0.18);
  --coral-light: rgba(175, 76, 50, 0.2);
  --gray-50: #1f2b39;
  --gray-100: #283544;
  --gray-200: rgba(255, 255, 255, 0.1);
  --gray-600: #9098a3;
  /* --gray-900 NO se overridea: footer depende de este token */
  --text: #e8eaed;
  --text-muted: #b3bcc7;

  --body-bg: #0e151f;
  --surface: #1a2532;
  --surface-elevated: #222e3d;
  --surface-cream: #2a3647;
  --surface-cream-2: #243140;
  --card-border: rgba(255, 255, 255, 0.08);
}

/* Transition global suave al cambiar de tema. Easing relajado (no spring)
   y duración larga (~0.8s) para que la transición se sienta cinemática
   en lugar de un flash brusco. */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.8s cubic-bezier(0.45, 0.05, 0.25, 1),
              background 0.8s cubic-bezier(0.45, 0.05, 0.25, 1),
              color 0.8s cubic-bezier(0.45, 0.05, 0.25, 1),
              border-color 0.8s cubic-bezier(0.45, 0.05, 0.25, 1),
              box-shadow 0.8s cubic-bezier(0.45, 0.05, 0.25, 1),
              fill 0.8s cubic-bezier(0.45, 0.05, 0.25, 1) !important;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Editorial accent for H1 — Fraunces (serif italic for the "Domina" word) */
h1 .serif-accent {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Focus styles — visible rings using amber for high contrast on any bg */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

@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;
  }
  .marquee-track { animation: none !important; }
  .wa-mockup { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

input {
  font-family: inherit;
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--blue-light) 0%, #f6f0e0 100%);
  color: var(--blue);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 93, 122, 0.18);
  box-shadow:
    0 2px 8px rgba(56, 93, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  /* Acento tipográfico de marca: Courier para callouts cortos. */
  font-family: 'Courier New', Courier, monospace;
}

.section-tag.amber {
  background: linear-gradient(135deg, var(--amber-light) 0%, #fce4cc 100%);
  color: #8a4422;
  border-color: rgba(246, 167, 87, 0.35);
  box-shadow:
    0 2px 8px rgba(246, 167, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13.5px 23.5px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  border: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              filter 0.35s ease,
              background 0.35s ease,
              color 0.35s ease;
  will-change: transform, box-shadow;
}

.btn:active {
  transform: translateY(0) !important;
  filter: brightness(0.98);
}

/* PRIMARY — warm gradient (amber → coral) con borde coral oscuro para
   definir el edge y darle más sensación 3D. El borde lo hacemos con inset
   box-shadow (no real border) para evitar el bleed del gradient. */
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  color: var(--white);
  box-shadow:
    inset 0 0 0 1.5px rgba(122, 47, 29, 0.55),
    0 6px 18px rgba(246, 167, 87, 0.4),
    0 2px 6px rgba(175, 76, 50, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px rgba(122, 47, 29, 0.65),
    0 14px 32px rgba(246, 167, 87, 0.55),
    0 4px 10px rgba(175, 76, 50, 0.3);
  filter: brightness(1.05);
}

/* OUTLINED — borde simulado con inset box-shadow (no afecta layout). */
.btn-outlined {
  background: #ffffff;
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1.5px var(--blue),
    0 4px 12px rgba(56, 93, 122, 0.12);
}

.btn-outlined:hover {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px var(--blue-dark),
    0 12px 28px rgba(56, 93, 122, 0.4),
    0 4px 10px rgba(25, 38, 50, 0.25);
}

/* GHOST — borde gris claro con inset shadow */
.btn-ghost {
  background: #ffffff;
  color: var(--text);
  box-shadow:
    inset 0 0 0 1.5px var(--gray-200),
    0 3px 10px rgba(25, 38, 50, 0.06);
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px var(--blue-mid),
    0 10px 24px rgba(56, 93, 122, 0.18),
    0 3px 8px rgba(25, 38, 50, 0.08);
}

/* WHITE — botón sólido sin borde, para fondos tintados */
.btn-white {
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(25, 38, 50, 0.2);
}

.btn-white:hover {
  background: #ffffff;
  color: var(--coral);
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(246, 167, 87, 0.45),
    0 4px 10px rgba(25, 38, 50, 0.18);
}

/* WHITE-OUTLINE — para fondos oscuros (final CTA) */
.btn-white-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    0 3px 12px rgba(0, 0, 0, 0.2);
}

.btn-white-outline:hover {
  background: #ffffff;
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px #ffffff,
    0 14px 32px rgba(255, 255, 255, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

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

/* ========================================
   NAVBAR
======================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(224, 228, 234, 0.6);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-brand {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 4px 12px rgba(246, 167, 87, 0.35));
}

.nav-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background 0.4s ease;
}

.nav-brand:hover .nav-wordmark {
  background: linear-gradient(135deg, var(--blue) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 5px 6px;
  border-radius: 999px;
}

.nav-links-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(246, 167, 87, 0.4),
    0 1px 3px rgba(175, 76, 50, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    box-shadow 0.4s ease;
  will-change: transform, width;
}

.nav-links-indicator.is-visible {
  opacity: 1;
}

.nav-links a {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.nav-links a.has-indicator {
  color: var(--white);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-open { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* Mobile menu — hidden by default, visible only under 1024px */
.nav-mobile {
  display: none;
}

/* ========================================
   HERO
======================================== */
.hero {
  padding: 88px 0 104px;
  aspect-ratio: 16 / 9;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, #fbf8f1 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  border: 0;
  display: none;
  filter: blur(40px) saturate(1.4) brightness(1.05);
  transform: scale(1.2);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  border: 0;
  filter: saturate(1.05) contrast(1.02);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* halo de legibilidad concentrado donde vive el texto */
    radial-gradient(ellipse 50% 38% at 50% 56%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.45) 55%, transparent 100%),
    /* fades arriba y abajo para integrar con navbar y siguiente sección */
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 78%, #fbf8f1 100%),
    /* wash de base muy sutil */
    radial-gradient(ellipse 100% 90% at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.25) 100%);
}

[data-theme="dark"] .hero-video-overlay {
  background:
    radial-gradient(ellipse 50% 38% at 50% 56%, rgba(14, 21, 31, 0.78) 0%, rgba(14, 21, 31, 0.5) 55%, transparent 100%),
    linear-gradient(180deg, rgba(14, 21, 31, 0.65) 0%, rgba(14, 21, 31, 0) 18%, rgba(14, 21, 31, 0) 78%, var(--body-bg) 100%),
    radial-gradient(ellipse 100% 90% at 50% 50%, rgba(14, 21, 31, 0.2) 0%, rgba(14, 21, 31, 0.4) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-video-bg { display: none; }
}

.hero::before,
.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  border: 1px solid var(--blue-mid);
  /* Acento de marca. */
  font-family: 'Courier New', Courier, monospace;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.85),
    0 0 16px rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero h1 {
  text-shadow:
    0 0 32px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(0, 0, 0, 0.7);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: #2a2a28;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.55;
  font-weight: 500;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.95),
    0 0 8px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .hero-sub {
  color: #e8eaed;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.85);
}

.hero-stats-inline {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2a2a28;
  margin-bottom: 18px;
  font-weight: 500;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .hero-stats-inline {
  color: #e8eaed;
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.95),
    0 0 6px rgba(0, 0, 0, 0.85);
}

.hero-stats-inline strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}

.hero-stats-inline .dot {
  color: var(--amber);
  opacity: 0.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.hero-scroll-hint svg {
  animation: hintBounce 1.8s ease-in-out infinite;
}

.hero-scroll-hint:hover {
  color: var(--blue);
  background: var(--blue-light);
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* WhatsApp mockup */
.wa-mockup {
  max-width: 380px;
  margin: 0 auto;
  background: #ECE5DD;
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 48px -12px rgba(24, 95, 165, 0.22),
    0 4px 12px -4px rgba(24, 95, 165, 0.08);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.wa-mockup::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(24, 95, 165, 0.15), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.wa-header {
  background: linear-gradient(180deg, var(--whatsapp-dark), #0E7163);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-info {
  flex: 1;
  text-align: left;
}

.wa-header-info .name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.wa-header-info .status {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.3;
}

.wa-header-icons {
  display: flex;
  gap: 16px;
  opacity: 0.85;
}

.wa-body {
  padding: 20px 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(rgba(24, 95, 165, 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    #ECE5DD;
}

.wa-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: left;
}

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

.wa-bubble.user {
  align-self: flex-end;
  background: #DCF8C6;
  border-top-right-radius: 2px;
}

.wa-bubble .time {
  font-size: 10px;
  color: var(--gray-600);
  margin-left: 6px;
}

.wa-input {
  background: var(--white);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-input-field {
  flex: 1;
  background: #F0F2F5;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--gray-600);
}

.wa-send {
  width: 36px;
  height: 36px;
  background: var(--whatsapp-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

/* ========================================
   SOCIAL PROOF
======================================== */
.social-proof {
  background: var(--gray-50);
  padding: 48px 0;
  overflow: hidden;
}

.social-proof-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 22px;
  opacity: 0.65;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.marquee-item:hover {
  opacity: 1;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   FEATURES
======================================== */
.features {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(246, 167, 87, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #f5efe0 0%, var(--blue-light) 100%);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf3 100%);
  border: 1px solid rgba(56, 93, 122, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: default;
  box-shadow:
    0 4px 14px rgba(56, 93, 122, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(56, 93, 122, 0.18),
    0 4px 10px rgba(246, 167, 87, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--amber);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.05);
}

.feature-icon.blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.feature-icon.green { background: linear-gradient(135deg, #16A34A 0%, #047857 100%); }
.feature-icon.amber { background: linear-gradient(135deg, var(--amber) 0%, #d8842b 100%); }
.feature-icon.coral { background: linear-gradient(135deg, var(--coral) 0%, #7a2f1d 100%); }

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ========================================
   STATS BAND
======================================== */
.stats {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats::before,
.stats::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.stats::before { width: 320px; height: 320px; top: -160px; left: -80px; }
.stats::after { width: 260px; height: 260px; bottom: -130px; right: -60px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  /* Acento de marca: números monoespaciados refuerzan lectura técnica. */
  font-family: 'Courier New', Courier, monospace;
}

.stat-label {
  font-size: 15px;
  opacity: 0.88;
  font-weight: 500;
}

/* ========================================
   HOW IT WORKS
======================================== */
.how {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--blue-mid) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 0 12px;
}

.step-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow:
    0 10px 24px rgba(56, 93, 122, 0.35),
    0 3px 8px rgba(25, 38, 50, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.step:hover .step-num {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 32px rgba(56, 93, 122, 0.45),
    0 6px 12px rgba(246, 167, 87, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 260px;
  margin: 0 auto;
}

/* ========================================
   CHATBOT DEMO
======================================== */
.demo {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
  position: relative;
}

.chat-widget {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.chat-header {
  background: var(--blue);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-info .name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.chat-header-icons {
  display: flex;
  gap: 14px;
  opacity: 0.85;
}

.chat-messages {
  height: 420px;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background:
    radial-gradient(rgba(24, 95, 165, 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--gray-100);
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  white-space: pre-line;
  animation: msgIn 0.3s ease-out;
}

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

.msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 2px;
  color: var(--text);
}

.msg.user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 2px;
}

.msg.system {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  padding: 4px 10px;
  max-width: 100%;
}

.msg-time {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
}

/* Debug source badge — only rendered when the URL has ?debug=1 */
.msg-source {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.msg-source.src-llm { background: var(--blue-light); color: var(--blue-dark); border-color: var(--blue-mid); }
.msg-source.src-smart { background: var(--amber-light); color: #8a4422; border-color: rgba(246, 167, 87, 0.4); }
.msg-source.src-fuse { background: #E7F7ED; color: #106A3B; border-color: #B6E4C3; }
.msg-source.src-security { background: var(--coral-light); color: #6b2918; border-color: #e3a78f; }
.msg-source.src-regex { background: #EFE8FF; color: #4B2BA3; border-color: #D0C3F7; }
.msg-source.src-fallback { background: var(--gray-100); color: var(--gray-600); }

.msg.user .msg-time { text-align: right; }

.typing {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  border-radius: var(--radius);
  border-bottom-left-radius: 2px;
  display: flex;
  gap: 4px;
  animation: msgIn 0.3s ease-out;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-600);
  opacity: 0.4;
  animation: typingBounce 1.2s infinite;
}

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

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  animation: msgIn 0.4s ease-out;
}

.chip {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.chip:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.chip.chip-action {
  background: var(--amber-light);
  color: #8a4422;
  border-color: rgba(246, 167, 87, 0.5);
  font-weight: 600;
}

.chip.chip-action:hover {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.chat-input {
  background: var(--white);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--gray-200);
}

.chat-input input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input input:focus {
  border-color: var(--blue);
}

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 20px;
  font-style: italic;
  line-height: 1.7;
}

.demo-note a {
  color: var(--blue);
  font-weight: 600;
  font-style: normal;
  border-bottom: 1px dashed currentColor;
  transition: color var(--transition);
}

.demo-note a:hover {
  color: var(--amber);
}

/* ========================================
   USE CASES
======================================== */
.use-cases {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 93, 122, 0.06) 0%, transparent 40%),
    var(--white);
  position: relative;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usecase-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf3 100%);
  border: 1px solid rgba(56, 93, 122, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 14px rgba(56, 93, 122, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.usecase-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(56, 93, 122, 0.2),
    0 6px 12px rgba(246, 167, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--amber);
}

.usecase-media {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.usecase-media.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.usecase-media.green { background: linear-gradient(135deg, #16A34A, #047857); }
.usecase-media.amber { background: linear-gradient(135deg, var(--amber), #c97b2a); }

.usecase-media svg {
  width: 60px;
  height: 60px;
}

.usecase-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.usecase-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--text-muted);
  margin-bottom: 10px;
  align-self: flex-start;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.usecase-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.usecase-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.usecase-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.usecase-link:hover {
  gap: 8px;
  color: var(--blue-dark);
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(175, 76, 50, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, var(--blue-light) 0%, #f5efe0 100%);
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf3 100%);
  border: 1px solid rgba(56, 93, 122, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 14px rgba(56, 93, 122, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(56, 93, 122, 0.18),
    0 4px 10px rgba(246, 167, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--coral);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--amber);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.testimonial-author .role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   PRICING
======================================== */
.pricing {
  background: var(--white);
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 40px;
  padding: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  position: relative;
}

.billing-toggle button {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.billing-toggle button.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.save-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.billing-toggle-wrap {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  background: linear-gradient(180deg, var(--white) 0%, #f9f5ee 100%);
  position: relative;
}

.price-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(180deg, var(--blue), var(--amber));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.price-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber) 0%, #c97b2a 100%);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(239, 159, 39, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.popular-badge::before {
  content: '★';
  font-size: 11px;
}

.price-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount .amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-amount .period {
  font-size: 15px;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
  min-height: 42px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.price-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.price-features li.muted {
  color: var(--text-muted);
}

.price-features li.muted svg {
  color: var(--gray-200);
}

.price-cta {
  width: 100%;
  justify-content: center;
}

/* ========================================
   FINAL CTA
======================================== */
.final-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.final-cta-bg svg {
  position: absolute;
  fill: var(--blue-dark);
  opacity: 0.4;
}

.final-cta-bg .shape-1 {
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
}

.final-cta-bg .shape-2 {
  bottom: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
}

.final-cta-bg .shape-3 {
  top: 50%;
  left: 20%;
  width: 80px;
  height: 80px;
  transform: translateY(-50%);
}

.final-cta-bg .shape-4 {
  top: 30%;
  right: 15%;
  width: 60px;
  height: 60px;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.final-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Invierte la silueta a blanco para que las partes navy del logo contrasten
     contra el footer oscuro sin perder forma. */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-desc {
  color: var(--gray-200);
  opacity: 0.75;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              background 0.35s ease,
              border-color 0.35s ease;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow:
    0 10px 22px rgba(246, 167, 87, 0.4),
    0 3px 8px rgba(175, 76, 50, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--gray-200);
  opacity: 0.7;
  font-size: 14px;
  transition: opacity var(--transition);
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-200);
  opacity: 0.7;
}

.footer-bottom .links {
  display: flex;
  gap: 20px;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--white);
}

/* ========================================
   CONVERSATION DEMO (scroll-driven)
======================================== */
.conv-demo {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(24, 95, 165, 0.06), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(239, 159, 39, 0.05), transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.conv-stage {
  height: 420vh;
  position: relative;
}

.conv-sticky {
  position: sticky;
  top: 68px; /* arranca debajo del navbar sticky para no quedar tapado */
  /* 100svh = small viewport height, respeta el chrome visible de Safari iOS
     donde 100vh normalmente sobrepasa el espacio real disponible. */
  height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px 0;
}

.conv-grid {
  max-width: var(--max-width);
  width: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.conv-text {
  text-align: left;
}

.conv-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.conv-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

.conv-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conv-scroll-hint svg {
  animation: scrollHintPulse 1.8s ease-in-out infinite;
  color: var(--amber);
}

@keyframes scrollHintPulse {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* --- Phone mockup --- */
.conv-phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- iPhone 15 Pro mockup (metallic frame, Dynamic Island, glare) --- */
.conv-phone {
  position: relative;
  /* En viewports bajos (laptops con poco alto), el ancho se reduce para que el
     teléfono quepa completo en calc(100vh - navbar - paddings) sin cortarse. */
  width: min(320px, calc((100vh - 140px) * 9 / 19.5));
  aspect-ratio: 9 / 19.5;
  /* marco de acero inoxidable con brillos laterales */
  background:
    linear-gradient(
      105deg,
      #2a2a2c 0%,
      #4a4a4c 4%,
      #1c1c1e 10%,
      #2a2a2c 24%,
      #3a3a3c 50%,
      #2a2a2c 76%,
      #1c1c1e 90%,
      #4a4a4c 96%,
      #2a2a2c 100%
    );
  border-radius: 58px;
  padding: 8px;
  box-shadow:
    /* contornos sutiles del frame */
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.08),
    /* capas de sombra para profundidad */
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 24px 48px -12px rgba(24, 95, 165, 0.25),
    0 48px 80px -20px rgba(0, 0, 0, 0.35);
}

/* Bisel negro interior que rodea la pantalla */
.phone-frame-inner {
  position: absolute;
  inset: 8px;
  background: #000;
  border-radius: 50px;
  z-index: 0;
  pointer-events: none;
}

/* --- Botones físicos laterales --- */
.phone-btn {
  position: absolute;
  background: linear-gradient(
    180deg,
    #2a2a2c 0%,
    #4a4a4c 20%,
    #1c1c1e 50%,
    #4a4a4c 80%,
    #2a2a2c 100%
  );
  border-radius: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Izquierda: mute switch + volume up + volume down */
.phone-btn.btn-mute { left: -3px; top: 100px; width: 3px; height: 28px; border-radius: 1px 0 0 1px; }
.phone-btn.btn-vol-up { left: -3px; top: 150px; width: 3px; height: 44px; border-radius: 1px 0 0 1px; }
.phone-btn.btn-vol-down { left: -3px; top: 204px; width: 3px; height: 44px; border-radius: 1px 0 0 1px; }

/* Derecha: power / side button */
.phone-btn.btn-power { right: -3px; top: 160px; width: 3px; height: 70px; border-radius: 0 1px 1px 0; }

/* --- Pantalla --- */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #ECE5DD;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* --- Dynamic Island (cápsula negra flotante con sensores) --- */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow:
    inset 0 -1px 1px rgba(255, 255, 255, 0.04),
    0 0 6px rgba(0, 0, 0, 0.6);
}

/* Sensor Face ID izquierdo */
.di-sensor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e1e2e 0%, #000 70%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Cámara derecha */
.di-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a2a 0%, #050510 60%, #000 100%);
  box-shadow:
    inset 0 0 2px rgba(80, 120, 200, 0.3),
    inset 0 0 0 1px rgba(30, 30, 50, 0.8);
  position: relative;
}

/* Punto de luz brillante en la cámara */
.di-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(180, 210, 255, 0.45);
}

/* --- Glare diagonal sobre el vidrio --- */
.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 9;
  border-radius: 50px;
}

.phone-glare-2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 12%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 25%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 8;
  border-radius: 50px;
}

/* --- Home indicator (barra inferior iOS) --- */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 4px;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 3px;
  z-index: 7;
}

/* --- Phone status bar --- */
.phone-status {
  height: 46px;
  padding: 14px 20px 6px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  background: #008069;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.phone-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.95;
}

.phone-battery {
  width: 20px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px;
  position: relative;
  display: inline-flex;
}

.phone-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.phone-battery-fill {
  width: 80%;
  background: currentColor;
  border-radius: 1px;
}

/* --- WhatsApp header --- */
.wa-chat-header {
  background: #008069;
  color: var(--white);
  padding: 6px 10px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wa-back {
  padding: 4px;
  opacity: 0.9;
}

.wa-contact-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-contact-info {
  flex: 1;
  line-height: 1.1;
  min-width: 0;
}

.wa-contact-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-contact-status {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 1px;
}

.wa-header-icons {
  display: inline-flex;
  gap: 10px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* --- Chat area --- */
.wa-chat-area {
  flex: 1;
  padding: 38px 7px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background:
    /* Subtle WhatsApp-style doodle texture via SVG data URI */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' opacity='0.08'><circle cx='10' cy='10' r='1.5' fill='%23000'/><circle cx='40' cy='25' r='1' fill='%23000'/><path d='M55 15 Q60 10 65 15' stroke='%23000' stroke-width='1' fill='none' opacity='0.5'/><circle cx='25' cy='55' r='1' fill='%23000'/><path d='M55 60 l4 4 M59 60 l-4 4' stroke='%23000' stroke-width='0.8' opacity='0.5'/><circle cx='70' cy='70' r='1.5' fill='%23000'/></svg>"),
    #EFEAE2;
  position: relative;
}

/* Overlay con degradado en la parte superior: cuando los mensajes salen
   por arriba, se desvanecen detrás de este gradiente en vez de cortarse.
   Zona OPACA (primeros 32px) para esconder completamente los mensajes que
   pasen debajo del HOY; luego fade hasta transparente. */
.wa-chat-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(180deg,
    #EFEAE2 0%,
    #EFEAE2 55%,
    rgba(239, 234, 226, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.wa-date {
  /* Pinneado absolute sobre el chat: queda visible desde el primer frame,
     sin depender de sticky (que falla en algunos browsers cuando el padre
     usa overflow:hidden + scrollTop programático). */
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 10;
  padding: 4px 11px;
  background: #DCF2FA;
  color: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: waDateIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

@keyframes waDateIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.wa-msg {
  display: flex;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s ease;
  flex-shrink: 0;
  padding: 0 2px;
}

.wa-msg-user { justify-content: flex-end; }
.wa-msg-bot { justify-content: flex-start; }

.wa-bubble {
  max-width: 78%;
  padding: 5px 8px 6px;
  border-radius: 7.5px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  position: relative;
  color: #111B21;
  word-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Plus Jakarta Sans', sans-serif;
}

/* --- USER (sent) bubble: green, tail top-right --- */
.wa-msg-user .wa-bubble {
  background: #D9FDD3;
  border-top-right-radius: 0;
}

.wa-msg-user .wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 8px solid #D9FDD3;
  border-right: 8px solid transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

/* --- BOT (received) bubble: white, tail top-left --- */
.wa-msg-bot .wa-bubble {
  background: #FFFFFF;
  border-top-left-radius: 0;
}

.wa-msg-bot .wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 8px solid #FFFFFF;
  border-left: 8px solid transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

/* --- Text + meta (time + read ticks) inside bubble --- */
.wa-text {
  display: inline;
}

.wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  margin-top: 4px;
  font-size: 9.5px;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  user-select: none;
}

.wa-time {
  font-weight: 400;
}

.wa-tick {
  width: 15px;
  height: 11px;
  color: #53BDEB;
  flex-shrink: 0;
  display: block;
}

/* --- Typing indicator ---
   Usa max-height + opacity + margin así cuando NO está activo ocupa 0px
   y no empuja los mensajes. Smooth transition al aparecer/desaparecer. */
.wa-typing {
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease;
  flex-shrink: 0;
  padding: 0 2px;
}

.wa-typing.typing-on {
  opacity: 1;
  max-height: 36px;
}

.wa-typing-bubble {
  background: var(--white);
  padding: 8px 12px;
  display: flex;
  gap: 3px;
  align-items: center;
  min-height: 10px;
  border-bottom-left-radius: 2px;
}

.wa-typing-bubble span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa0a6;
  animation: waTypingDot 1.2s ease-in-out infinite;
  opacity: 0.4;
}

.wa-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes waTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* --- Input bar --- */
.wa-input-bar {
  background: #F0F2F5;
  padding: 6px 8px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.wa-input-plus {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #8696A0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-input-pill {
  flex: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 7px 10px 7px 14px;
  font-size: 11px;
  color: #8696A0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wa-input-placeholder {
  flex: 1;
}

.wa-input-camera {
  color: #8696A0;
  opacity: 0.9;
  flex-shrink: 0;
}

.wa-input-mic {
  width: 34px;
  height: 34px;
  background: #008069;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* --- Reduced-motion fallback: show all messages, no typing --- */
@media (prefers-reduced-motion: reduce) {
  .wa-msg { opacity: 1 !important; transform: none !important; }
  .wa-typing { display: none !important; }
  .conv-stage { height: auto; }
  .conv-sticky { position: static; height: auto; padding: 64px 0; }
  .conv-scroll-hint svg { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .conv-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 24px;
  }
  .conv-text { text-align: center; max-width: 520px; margin: 0 auto; }
  .conv-text p { margin: 0 auto; }
  .conv-stage { height: 380vh; }
  .conv-phone { width: min(240px, calc((100svh - 260px) * 9 / 19.5)); }
}

@media (max-width: 768px) {
  .conv-text h2 { font-size: 22px; margin-bottom: 6px; line-height: 1.1; }
  .conv-text p { font-size: 13px; line-height: 1.4; max-width: 320px; margin-left: auto; margin-right: auto; }
  .conv-scroll-hint { display: none; }

  /* En mobile mantenemos el scroll-linked pin pero con stage más corto
     y el grid en columna con el teléfono ocupando el alto restante. */
  .conv-stage { height: 300vh; }
  .conv-sticky {
    position: sticky;
    top: 60px;
    height: calc(100svh - 60px);
    overflow: hidden;
    padding: 12px 0 0;
  }
  .conv-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    gap: 12px;
    padding: 0 20px;
    align-items: start;
  }
  .conv-text {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }
  .conv-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    height: 100%;
  }
  .conv-phone { width: min(240px, calc((100svh - 220px) * 9 / 19.5)); }
  .wa-bubble { font-size: 11.5px; }
  .wa-contact-name { font-size: 12px; }
}

@media (max-width: 480px) {
  .conv-text h2 { font-size: 20px; margin-bottom: 4px; }
  .conv-text p { font-size: 12.5px; line-height: 1.4; max-width: 280px; }
  .conv-stage { height: 280vh; }
  .conv-grid { padding: 0 16px; gap: 8px; }
  .conv-phone { width: min(210px, calc((100svh - 200px) * 9 / 19.5)); padding: 6px; border-radius: 38px; }
  .phone-screen { border-radius: 34px; }
  .phone-frame-inner { border-radius: 34px; inset: 6px; }
  .phone-glare, .phone-glare-2 { border-radius: 34px; }
  .dynamic-island { width: 72px; height: 22px; top: 6px; border-radius: 13px; }
  .home-indicator { width: 84px; height: 3.5px; bottom: 5px; }
  .phone-status { height: 38px; padding: 11px 16px 4px 18px; font-size: 10px; }
  .wa-chat-header { padding: 4px 7px 5px 5px; }
  .wa-contact-avatar { width: 26px; height: 26px; }
  .wa-contact-name { font-size: 11.5px; }
  .wa-contact-status { font-size: 9.5px; }
  .wa-bubble { font-size: 10.5px; padding: 5px 7px 6px; }
  .wa-time { font-size: 9px; }
  .wa-chat-area { padding: 10px 6px 4px; }
  .wa-input-bar { padding: 5px 7px 12px; }
  .wa-input-pill { font-size: 10.5px; padding: 5px 8px 5px 10px; }
  .wa-input-mic { width: 26px; height: 26px; }
  .wa-input-plus { width: 22px; height: 22px; }
}

/* Landscape en móvil: viewports muy bajos (menos de 560px de alto).
   El teléfono se reduce más agresivo y la stage se acorta para no
   consumir pantallas enteras de scroll con la animación. */
@media (max-height: 560px) and (orientation: landscape) {
  .conv-stage { height: 280vh; }
  .conv-sticky { top: 60px; height: calc(100svh - 60px); padding: 10px 0; }
  .conv-phone { width: min(200px, calc((100svh - 90px) * 9 / 19.5)); }
  .conv-text h2 { font-size: 20px; }
  .conv-text p { font-size: 12.5px; }
  .conv-grid { gap: 16px; }
}

/* ========================================
   TEAM SECTION
======================================== */
.team {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.team-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.02em;
  position: relative;
  box-shadow: 0 8px 20px rgba(24, 95, 165, 0.2);
}

.team-avatar.a1 { background: linear-gradient(135deg, #185FA5, #0F4A85); }
.team-avatar.a2 { background: linear-gradient(135deg, #EF9F27, #C67A0A); }
.team-avatar.a3 { background: linear-gradient(135deg, #0F4A85, #185FA5); }
.team-avatar.a4 { background: linear-gradient(135deg, #1F7A52, #16A34A); }

.team-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4ADE80;
  border: 3px solid var(--white);
}

.team-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.team-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
}

.team-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.team-socials a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   FAQ ACCORDION
======================================== */
.faq {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(246, 167, 87, 0.06) 0%, transparent 35%),
    radial-gradient(ellipse at 0% 100%, rgba(56, 93, 122, 0.04) 0%, transparent 40%),
    var(--white);
  position: relative;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf3 100%);
  border: 1px solid rgba(56, 93, 122, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(56, 93, 122, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.35s ease,
              box-shadow 0.35s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(56, 93, 122, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--blue-mid);
}

.faq-item[open] {
  border-color: var(--amber);
  box-shadow:
    0 12px 28px rgba(246, 167, 87, 0.18),
    0 4px 8px rgba(56, 93, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
  transition: color var(--transition);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-icon {
  background: var(--amber);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  animation: faqOpen 0.35s ease;
}

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

/* ========================================
   STATS — amber highlight on one number
======================================== */
.stat.highlight .stat-num { color: #fcd29a; }

/* ========================================
   ANIMATIONS — REVEAL ON SCROLL
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
  .nav-links,
  .nav-actions .btn-ghost,
  .nav-actions > .btn-primary {
    display: none;
  }
  .nav-toggle { display: flex; }

  .nav-mobile {
    display: block;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav-mobile.open {
    max-height: 520px;
    padding: 16px 24px 24px;
  }

  .nav-mobile a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
  }

  .nav-mobile a:last-child { border-bottom: none; }

  /* Los CTAs del menú hamburger se integran como el resto de enlaces:
     fila de texto con separador y una flecha sutil que indica acción.
     El CTA primario ("Probar Chatbot") resalta con el azul de marca. */
  .nav-mobile .mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    margin-top: 0;
  }

  .nav-mobile .mobile-ctas .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent !important;
    color: var(--text) !important;
    border: none !important;
    border-bottom: 1px solid var(--gray-100) !important;
    border-radius: 0 !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: left;
    box-shadow: none !important;
    transform: none !important;
    transition: color 0.2s ease;
  }

  .nav-mobile .mobile-ctas .btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.6px solid var(--gray-300, #cbd0d6);
    border-right: 1.6px solid var(--gray-300, #cbd0d6);
    transform: rotate(45deg);
    transition: border-color 0.2s ease, transform 0.2s ease;
    margin-right: 2px;
  }

  .nav-mobile .mobile-ctas .btn:hover {
    color: var(--blue) !important;
    background: transparent !important;
  }

  .nav-mobile .mobile-ctas .btn:hover::after {
    border-color: var(--blue);
    transform: rotate(45deg) translate(2px, -2px);
  }

  /* CTA primario: mismo layout de fila, pero resaltado con el azul de marca
     y un peso ligeramente mayor para jerarquizar la acción principal. */
  .nav-mobile .mobile-ctas .btn-primary {
    color: var(--blue) !important;
    font-weight: 600 !important;
  }

  .nav-mobile .mobile-ctas .btn-primary::after {
    border-color: var(--blue);
  }

  .nav-mobile .mobile-ctas .btn:last-child { border-bottom: none !important; }
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .usecase-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; order: -1; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Stats: baja a 2 columnas antes del salto final para no quedar cramped */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  /* Marquee intermedio — entre desktop (22px) y mobile (15px) */
  .marquee-item { font-size: 18px; }
  .marquee-track { gap: 48px; }

  /* FAQ summary intermedio */
  .faq-item summary { gap: 12px; padding: 18px 20px; }

  .hero {
    aspect-ratio: auto;
    min-height: clamp(560px, 78svh, 760px);
    padding: 72px 16px 56px;
  }
  /* En mobile el hero es portrait y el video es 16:9 → switcheamos a contain
     para que se vea el video COMPLETO (chat bubbles incluidas), y activamos
     el clon blureado de fondo para llenar el espacio portrait sin bandas. */
  .hero-video {
    object-fit: contain;
  }
  .hero-video-bg {
    display: block;
  }
  .hero h1 {
    font-size: clamp(30px, 8.4vw, 48px);
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow:
      0 0 22px rgba(255, 255, 255, 0.95),
      0 0 10px rgba(255, 255, 255, 0.85);
  }
  [data-theme="dark"] .hero h1 {
    text-shadow:
      0 0 22px rgba(0, 0, 0, 0.95),
      0 0 10px rgba(0, 0, 0, 0.85);
  }
  .hero-badge {
    font-size: 11.5px;
    padding: 6px 12px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }

  /* Halo de legibilidad más amplio en mobile — el texto pesa más en la composición */
  .hero-video-overlay {
    background:
      radial-gradient(ellipse 95% 55% at 50% 56%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.4) 60%, transparent 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 80%, #fbf8f1 100%),
      radial-gradient(ellipse 110% 90% at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.32) 100%);
  }
  [data-theme="dark"] .hero-video-overlay {
    background:
      radial-gradient(ellipse 95% 55% at 50% 56%, rgba(14, 21, 31, 0.8) 0%, rgba(14, 21, 31, 0.5) 60%, transparent 100%),
      linear-gradient(180deg, rgba(14, 21, 31, 0.65) 0%, rgba(14, 21, 31, 0) 16%, rgba(14, 21, 31, 0) 80%, var(--body-bg) 100%),
      radial-gradient(ellipse 110% 90% at 50% 50%, rgba(14, 21, 31, 0.28) 0%, rgba(14, 21, 31, 0.42) 100%);
  }

  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .chat-messages { height: 380px; }
  .hero-stats-inline { font-size: 13px; gap: 8px; }

  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before {
    left: 34px;
    top: 68px;
    right: auto;
    bottom: 0;
    width: 2px;
    height: calc(100% - 68px);
    background-image: linear-gradient(180deg, var(--blue-mid) 50%, transparent 50%);
    background-size: 2px 12px;
  }
  /* Grid de 2 columnas: circle (68px) + contenido (1fr), con h3+p
     apilados en la segunda columna. El circle ocupa ambas filas. */
  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 6px;
    padding: 0;
    align-items: start;
  }
  .step-num { margin: 0; grid-row: 1 / span 2; align-self: center; }
  .step h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .step p { grid-column: 2; grid-row: 2; margin: 0; max-width: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .feature-card, .testimonial, .price-card { padding: 22px; }
  .stats { padding: 48px 0; }
  .stats-grid { gap: 24px; }
  .chat-messages { height: 360px; }
  .chat-widget { max-width: 100%; }
  .wa-mockup { max-width: 100%; }
  .hero { min-height: clamp(540px, 82svh, 700px); padding: 64px 12px 48px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-sub { font-size: 14.5px; padding: 0 6px; }
  .hero-stats-inline { font-size: 12.5px; gap: 6px; }
  .hero-badge { font-size: 11px; padding: 5px 11px; }
  .hero-ctas .btn { padding: 13px 24px; font-size: 15px; }
  .team-avatar { width: 72px; height: 72px; font-size: 24px; }
  .popular-badge { font-size: 11px; padding: 5px 12px; }

  /* Marquee con menos alto — logos no empujan layout */
  .marquee-item { font-size: 15px; gap: 8px; }
  .marquee-item svg { width: 22px; height: 22px; }
  .marquee-track { gap: 40px; }

  /* FAQ summary con menos gap y icono más pequeño para textos largos */
  .faq-item summary { gap: 10px; padding: 16px 18px; font-size: 15px; }
  .faq-icon { width: 26px; height: 26px; }
  .faq-answer { padding: 0 18px 18px; font-size: 14px; }

  /* Nav toggle más grande para mejor touch target */
  .nav-toggle { width: 44px; height: 44px; }
}

/* iPhone SE / Galaxy A pequeños — extra compresión */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero { min-height: clamp(520px, 86svh, 660px); padding: 56px 10px 40px; }
  .hero h1 { font-size: clamp(26px, 9.5vw, 36px); }
  .hero-sub { font-size: 14px; }
  .hero-badge { font-size: 10.5px; padding: 5px 10px; }
  .hero-stats-inline { font-size: 12px; flex-wrap: wrap; }
  .hero-stats-inline .dot { display: none; }
  .hero-ctas .btn { font-size: 14.5px; padding: 12px 20px; }
}

/* Safe area insets para iPhone con notch / Dynamic Island */
@supports (padding: env(safe-area-inset-left)) {
  .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  @media (max-width: 480px) {
    .container {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

/* ========================================
   THEME TOGGLE — botón + popover + switch
======================================== */
.theme-toggle-wrap {
  position: relative;
  display: inline-flex;
}

.theme-toggle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1.5px var(--gray-200),
    0 3px 10px rgba(25, 38, 50, 0.06);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              background 0.35s ease,
              color 0.35s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  color: var(--coral);
  box-shadow:
    inset 0 0 0 1.5px var(--amber),
    0 10px 24px rgba(246, 167, 87, 0.25);
}

.theme-toggle-btn .theme-icon-sun,
.theme-toggle-btn .theme-icon-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode (default): mostrar luna (la acción es "ir a oscuro") */
.theme-toggle-btn .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.theme-toggle-btn .theme-icon-sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.6);
}

/* Dark mode: mostrar sol (la acción es "ir a claro") */
[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.6);
}
[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Popover */
.theme-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow:
    inset 0 0 0 1px var(--card-border),
    0 20px 50px rgba(25, 38, 50, 0.25),
    0 6px 16px rgba(25, 38, 50, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.25s;
  z-index: 200;
}

.theme-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-popover-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'Courier New', Courier, monospace;
}

/* Switch row */
.theme-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.theme-switch-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Custom toggle switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  background: var(--gray-100);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px var(--gray-200),
    inset 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.7s cubic-bezier(0.45, 0.05, 0.25, 1),
              box-shadow 0.7s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 3px 8px rgba(25, 38, 50, 0.25),
    0 1px 2px rgba(25, 38, 50, 0.1);
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1),
              background 0.7s cubic-bezier(0.45, 0.05, 0.25, 1),
              color 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.theme-switch-thumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.theme-switch input:checked + .theme-switch-track {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0e151f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(22px);
  background: #1a2532;
  color: var(--amber);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Caption debajo */
.theme-popover-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ========================================
   DARK MODE — overrides para superficies
   que usan valores hardcoded o variables
   no temáticas (var(--white), #ffffff, etc.)
======================================== */
[data-theme="dark"] body {
  background: var(--body-bg);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 37, 50, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(26, 37, 50, 0.92);
}

[data-theme="dark"] .nav-wordmark {
  background: linear-gradient(135deg, #ffffff 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .nav-brand:hover .nav-wordmark {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .nav-links {
  background: var(--surface-elevated);
  border-color: var(--card-border);
}

[data-theme="dark"] .nav-links a:hover {
  color: #ffffff;
}

[data-theme="dark"] .nav-mobile {
  background: var(--surface);
  border-bottom-color: var(--card-border);
}

/* HERO */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 15% 110%, rgba(246, 167, 87, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 110%, rgba(175, 76, 50, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--body-bg) 0%, #131c28 100%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(168, 188, 205, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .hero-badge {
  background: var(--surface-elevated);
  color: var(--blue-mid);
  border-color: rgba(168, 188, 205, 0.25);
}

[data-theme="dark"] .hero-stats-inline strong {
  color: #ffffff;
}

/* SECTION BACKGROUNDS */
[data-theme="dark"] .features {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(246, 167, 87, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #131c28 0%, var(--surface) 100%);
}

[data-theme="dark"] .testimonials {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(175, 76, 50, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, var(--surface) 0%, #131c28 100%);
}

[data-theme="dark"] .use-cases {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 188, 205, 0.06) 0%, transparent 40%),
    var(--body-bg);
}

[data-theme="dark"] .faq {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(246, 167, 87, 0.05) 0%, transparent 35%),
    radial-gradient(ellipse at 0% 100%, rgba(168, 188, 205, 0.05) 0%, transparent 40%),
    var(--body-bg);
}

[data-theme="dark"] .how {
  background: #131c28;
}

[data-theme="dark"] .step {
  background: transparent;
}

[data-theme="dark"] .demo {
  background: linear-gradient(180deg, #131c28 0%, var(--body-bg) 100%);
}

[data-theme="dark"] .conv-demo {
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 188, 205, 0.06), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(246, 167, 87, 0.05), transparent 50%),
    linear-gradient(180deg, var(--body-bg) 0%, #131c28 100%);
}

/* CARDS (los gradients hardcoded en cream) */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .usecase-card,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .faq-item {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  border-color: var(--card-border);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .usecase-card:hover,
[data-theme="dark"] .testimonial:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(246, 167, 87, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .faq-item:hover {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .faq-item[open] {
  box-shadow:
    0 12px 28px rgba(246, 167, 87, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* SECTION TAGS */
[data-theme="dark"] .section-tag {
  background: linear-gradient(135deg, var(--surface-cream) 0%, var(--surface-cream-2) 100%);
  color: var(--blue-mid);
  border-color: rgba(168, 188, 205, 0.2);
}

[data-theme="dark"] .section-tag.amber {
  background: linear-gradient(135deg, rgba(246, 167, 87, 0.15) 0%, rgba(175, 76, 50, 0.15) 100%);
  color: var(--amber);
  border-color: rgba(246, 167, 87, 0.3);
}

/* BUTTONS that need adjustment */
[data-theme="dark"] .btn-outlined {
  background: var(--surface);
  color: var(--blue-mid);
  box-shadow:
    inset 0 0 0 1.5px var(--blue-mid),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-outlined:hover {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue) 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1.5px var(--blue),
    0 12px 28px rgba(56, 93, 122, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1.5px var(--card-border),
    0 3px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--surface-elevated);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1.5px var(--blue-mid),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

/* OTHER WHITE BACKGROUNDS */
[data-theme="dark"] .features,
[data-theme="dark"] .use-cases,
[data-theme="dark"] .faq,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .how {
  color: var(--text);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text);
}

[data-theme="dark"] .step h3 {
  color: var(--text);
}

[data-theme="dark"] .chat-widget {
  background: var(--surface);
  border-color: var(--card-border);
}

/* Logo del navbar en dark: subo el brightness para que las partes navy
   oscuras del logo se eleven a tonos más claros (y dejen de fundirse con
   el navbar slate), sin invertirlo a blanco — conserva la identidad. */
[data-theme="dark"] .nav-logo-img {
  filter: brightness(1.55) saturate(0.9);
}

[data-theme="dark"] .nav-brand:hover .nav-logo-img {
  filter: brightness(1.55) saturate(0.9)
          drop-shadow(0 4px 16px rgba(246, 167, 87, 0.55))
          drop-shadow(0 0 8px rgba(246, 167, 87, 0.3));
}

/* Pill "Desplázate" — el chip flotante en la sección de conversación.
   En dark queda casi invisible (bg blanco + texto muted). Lo ajustamos. */
[data-theme="dark"] .conv-scroll-hint {
  background: var(--surface-elevated);
  border-color: var(--card-border);
  color: var(--text);
}

/* CHATBOT (sección demo en vivo) — fix burbujas y chips */
[data-theme="dark"] .msg.bot {
  background: var(--surface-elevated);
  border-color: var(--card-border);
  color: var(--text);
}

[data-theme="dark"] .msg.system {
  color: var(--text-muted);
}

[data-theme="dark"] .chip {
  background: var(--surface-elevated);
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

[data-theme="dark"] .chip:hover {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue) 100%);
  color: #ffffff;
  border-color: var(--blue);
}

[data-theme="dark"] .chip.chip-action {
  background: rgba(246, 167, 87, 0.18);
  color: var(--amber);
  border-color: rgba(246, 167, 87, 0.4);
}

[data-theme="dark"] .chip.chip-action:hover {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  color: #ffffff;
  border-color: var(--amber);
}

[data-theme="dark"] .chat-input {
  background: var(--surface);
  border-top-color: var(--card-border);
}

[data-theme="dark"] .chat-input input {
  background: var(--surface-elevated);
  border-color: var(--card-border);
  color: var(--text);
}

[data-theme="dark"] .chat-input input::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .chat-input input:focus {
  border-color: var(--amber);
}

[data-theme="dark"] .chat-send {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
}

[data-theme="dark"] .chat-send:hover {
  filter: brightness(1.1);
}

/* FOOTER — los textos usaban --gray-200 (que en dark es border-tint),
   por eso quedaban invisibles. Forzamos contraste correcto. */
[data-theme="dark"] .footer-col ul a {
  color: #c1c8d1;
}

[data-theme="dark"] .footer-desc {
  color: #c1c8d1;
}

[data-theme="dark"] .footer-bottom {
  color: #c1c8d1;
}

[data-theme="dark"] .footer-bottom a:hover,
[data-theme="dark"] .footer-col ul a:hover {
  color: #ffffff;
}

[data-theme="dark"] .price-card,
[data-theme="dark"] .feature-card-large,
[data-theme="dark"] .conv-text h2 {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
}

[data-theme="dark"] .conv-text h2 {
  background: none;
  color: var(--text);
}

/* SHADOW tokens darken */
[data-theme="dark"] {
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* WordMark fade transition between modes */
@media (prefers-reduced-motion: reduce) {
  html.theme-transition,
  html.theme-transition * { transition: none !important; }
}
