/* ============================================
   LUMYN STUDIO — RELANZAMIENTO
   Dirección visual: Opción B — Claro y confiable
   Stack: GSAP + Lenis + ScrollTrigger
   ============================================ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

:root {
  --bg:          #FDFCFA;
  --bg-soft:     #F6F3FF;
  --surface:     #FFFFFF;
  --border:      #E9E6E0;
  --border-purple: #E4DEFB;

  --purple:      #7C3AFF;
  --purple-dim:  #6428D9;
  --purple-glow: rgba(124, 58, 255, 0.18);
  --purple-soft: #F0ECFF;
  --table-head:  #E6E0FF;

  --ink:         #16151A;
  --ink-2:       #423F49;
  --gray-1:      #55515C;
  --gray-2:      #827E88;
  --gray-3:      #B6B2BC;
  --white:       #FFFFFF;

  /* Footer permanece oscuro como bloque de cierre con contraste */
  --dark-bg:     #0C0B0C;
  --dark-border: #251F25;
  --dark-gray-1: #CCCCCC;
  --dark-gray-2: #888888;

  --font-headline: 'Wix Madefor Display', sans-serif;
  --font-display: 'Barlow', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --radius:       12px;
  --radius-lg:    20px;
}

/* ── TEMA OSCURO ──
   Se activa con [data-theme="dark"] en <html>.
   El JS pone "light"/"dark" segun la eleccion del usuario, o segun el
   sistema operativo cuando esta en modo "system". */
html[data-theme="dark"] {
  --bg:          #0C0B0C;
  --bg-soft:     #131118;
  --surface:     #17151C;
  --border:      #2A2630;
  --border-purple: #3D2F66;

  --purple:      #9061FF;
  --purple-dim:  #A585FF;
  --purple-glow: rgba(144, 97, 255, 0.28);
  --purple-soft: #1F1930;
  --table-head:  #262036;

  --ink:         #F4F2F7;
  --ink-2:       #CFCBD6;
  --gray-1:      #A8A4B0;
  --gray-2:      #85818D;
  --gray-3:      #5C5866;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
}
.preloader-logo {
  width: 220px;
  opacity: 0;
  transform: translateY(20px);
}
.preloader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gray-2);
  text-transform: uppercase;
  overflow: hidden;
  height: 16px;
}
.preloader-progress {
  width: 200px; height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.preloader-progress-bar {
  position: absolute; inset: 0;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-3);
  letter-spacing: 0.1em;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; z-index: 9998;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  position: fixed;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,255,0.35);
  position: fixed;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
/* Al pasar sobre un elemento el círculo crece, pero el relleno se mantiene
   casi transparente: si se pinta sólido tapa lo que hay debajo. */
.cursor-ring.is-hovering {
  width: 52px; height: 52px;
  border-color: var(--purple);
  border-width: 2px;
  background: rgba(124, 58, 255, 0.10);
}
html[data-theme="dark"] .cursor-ring.is-hovering {
  background: rgba(144, 97, 255, 0.16);
}
@media (hover: none), (pointer: coarse) {
  #cursor { display: none; }
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}
/* Al salir del hero la barra pasa a modo "vidrio": translúcida y con
   desenfoque, conservando el blanco o el negro según el tema activo. */
#navbar.scrolled {
  background: rgba(253, 252, 250, 0.60);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  padding: 14px 48px;
  border-bottom-color: rgba(22, 21, 26, 0.08);
  box-shadow: 0 4px 26px rgba(22, 21, 26, 0.06);
}
/* En tema oscuro se mantiene el mismo efecto, pero en negro */
html[data-theme="dark"] #navbar.scrolled {
  background: rgba(12, 11, 12, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
}
/* Si el navegador no soporta desenfoque, se sube la opacidad para que el
   texto siga siendo legible sobre el contenido que pasa por debajo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #navbar.scrolled { background: rgba(253, 252, 250, 0.96); }
  html[data-theme="dark"] #navbar.scrolled { background: rgba(12, 11, 12, 0.96); }
}
.nav-logo { height: 26px; width: auto; transition: filter 0.4s; }
/* En tema oscuro el logo (negro 85%) se invierte para leerse sobre el fondo */
html[data-theme="dark"] .nav-logo,
html[data-theme="dark"] .preloader-logo { filter: invert(1); }

/* ── CONTROLES DEL NAV (tema + idioma) ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.theme-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 100px;
  color: var(--gray-2);
  transition: background 0.2s, color 0.2s;
}
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn:hover { color: var(--ink); }
.theme-btn.active {
  background: var(--purple-soft);
  color: var(--purple);
}
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  font-family: var(--font-mono);
}
.lang-btn {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-2);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--purple-soft);
  color: var(--purple);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--purple);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  padding: 10px 24px;
  background: var(--purple);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--purple-dim);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--purple-glow);
}
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer;
  box-sizing: content-box;
  padding: 15px 8px;
  margin: -15px -8px;
}
.nav-hamburger span {
  display: block; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu — siempre en el DOM como flex; se muestra/oculta con opacidad.
   (Antes tenía display:none sin revertir en .open, por eso no se abría.) */
.nav-mobile {
  display: flex;
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
/* Botón de cierre del menú (la hamburguesa queda debajo del overlay) */
.nav-mobile-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-mobile-close svg { width: 24px; height: 24px; }
.nav-mobile a {
  font-family: var(--font-headline);
  font-size: clamp(26px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--purple); }

/* ── SECTION COMMONS ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--purple);
}
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--gray-1);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* ── BUTTONS ── */
.btn-primary {
  padding: 14px 32px;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--purple-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--purple-glow);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  padding: 14px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: translateY(-2px);
}

/* ── HERO (video de fondo, texto a la izquierda) ── */
#hero {
  min-height: 96vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 150px 48px 80px;
  background: var(--bg); /* fallback mientras carga el video */
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* El video tiene fondo claro y el personaje a la derecha: el velo aclara
   el lado izquierdo para que el texto se lea, y deja el personaje limpio. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    95deg,
    rgba(253,252,250,0.95) 0%,
    rgba(253,252,250,0.90) 28%,
    rgba(253,252,250,0.55) 46%,
    rgba(253,252,250,0.06) 62%,
    rgba(253,252,250,0) 100%
  );
}
html[data-theme="dark"] .hero-video { opacity: 0.85; }
html[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(
    95deg,
    rgba(12,11,12,0.95) 0%,
    rgba(12,11,12,0.90) 28%,
    rgba(12,11,12,0.58) 46%,
    rgba(12,11,12,0.10) 62%,
    rgba(12,11,12,0) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: left;
  max-width: 600px;
}
.hero-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-dim);
  margin-bottom: 28px;
  cursor: default;
  box-shadow: 0 0 22px rgba(124,58,255,0.10);
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
/* Resplandor difuso detrás de la píldora */
.hero-eyebrow::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 100px;
  background: var(--purple);
  filter: blur(16px);
  opacity: 0.16;
  z-index: -1;
  transition: opacity 0.35s;
}
/* Hover: se invierte (fondo morado, texto claro) y sube el resplandor */
.hero-eyebrow:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--purple-soft);
  box-shadow: 0 0 34px var(--purple-glow);
}
.hero-eyebrow:hover::before { opacity: 0.5; }
.hero-eyebrow:hover .hero-eyebrow-dot { background: var(--purple-soft); }

.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.35s;
}
/* El ancho se ajusta al texto que está mostrando en ese momento */
.hero-eyebrow-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.45s var(--ease-out);
}
.hero-eyebrow-label { display: inline-block; }
/* Pulso suave: sube el mínimo de opacidad y baja el rango de escala para que
   sea un latido sutil en vez de un titileo. Y más lento (3s). */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.9); }
}
.hero-eyebrow-dot,
.terminal-live-dot,
.chat-status-dot { animation-duration: 3s !important; }
.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title .highlight { color: var(--purple); }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--gray-1);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  flex-wrap: wrap;
}

/* ── TERMINAL DEL HERO ── */
.hero-terminal {
  margin-top: 44px;
  width: 100%;
  max-width: 520px;
  background: #100E14;
  border: 1px solid #2A2533;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22,21,26,0.22);
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #17141D;
  border-bottom: 1px solid #2A2533;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot--r { background: #FF5F57; }
.terminal-dot--y { background: #FEBC2E; }
.terminal-dot--g { background: #28C840; }
.terminal-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A7488;
}
.terminal-live {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #28C840;
}
.terminal-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28C840;
  animation: pulse 1.6s ease-in-out infinite;
}
.terminal-body {
  padding: 18px 16px 20px;
  height: 230px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.9;
}
.terminal-line { display: block; white-space: pre-wrap; }
.terminal-line--cmd  { color: #C8C3D4; }
.terminal-line--cmd .terminal-prompt { color: var(--purple); margin-right: 6px; }
.terminal-line--note { color: #FFFFFF; font-weight: 500; }
.terminal-line--ok   { color: #8DE79C; }
.terminal-line--ok::before { content: '✓ '; }
.terminal-line--dim  { color: #635E70; }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--purple);
  vertical-align: -2px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-2);
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator svg { opacity: 0.7; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 900px) {
  /* En pantallas angostas el personaje queda fuera de cuadro: se corre el
     encuadre y el velo pasa a ser vertical para que el texto siga legible. */
  .hero-video { object-position: 72% center; }
  .hero-video-overlay {
    /* Velo 10% menos opaco solo en móvil: deja ver un poco más el video */
    opacity: 0.9;
    background: linear-gradient(
      180deg,
      rgba(253,252,250,0.94) 0%,
      rgba(253,252,250,0.80) 45%,
      rgba(253,252,250,0.55) 100%
    );
  }
  html[data-theme="dark"] .hero-video-overlay {
    background: linear-gradient(
      180deg,
      rgba(12,11,12,0.94) 0%,
      rgba(12,11,12,0.82) 45%,
      rgba(12,11,12,0.58) 100%
    );
  }
}
@media (max-width: 768px) {
  #hero { justify-content: center; padding: 120px 24px 64px; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .hero-terminal { margin: 36px auto 0; text-align: left; }
  .terminal-body { height: 216px; font-size: 11.5px; }
}

/* ── FRANJA DE TECNOLOGÍA (marquee infinito) ── */
#tech-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.tech-strip-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 28px;
}
.tech-strip-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.tech-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: techMarquee 32s linear infinite;
}
.tech-strip-track:hover { animation-play-state: paused; }
@keyframes techMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-strip-mark {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-2);
  letter-spacing: -0.01em;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s;
}
.tech-strip-mark:hover { opacity: 1; color: var(--ink); }
@media (max-width: 768px) {
  .tech-strip-track { gap: 40px; animation-duration: 22s; }
}

/* ── PILARES ── */
#pilares {
  padding: 120px 0;
}
.pilares-header {
  text-align: center;
  margin-bottom: 64px;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pilar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.pilar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(22,21,26,0.08);
  border-color: var(--border-purple);
}
.pilar-icon {
  width: 44px; height: 44px;
  background: var(--purple-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.pilar-icon svg { width: 22px; height: 22px; color: var(--purple); }
.pilar-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pilar-desc {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.65;
}
.pilar-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}
.pilar-link svg { width: 13px; height: 13px; transition: transform 0.2s; }
.pilar-card:hover .pilar-link svg { transform: translateX(3px); }

/* ── CÓMO TRABAJAMOS ── */
#how-it-works {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
html[data-theme="dark"] #how-it-works { background: var(--bg-soft); }
.how-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.how-sticky { position: sticky; top: 120px; }
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
}
.how-step:last-child { border-bottom: 1px solid var(--border); }
.how-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple);
  padding-top: 4px;
  letter-spacing: 0.1em;
}
.how-step-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.how-step-desc {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ── PREVIEW DE PLANES ── */
#planes-preview {
  padding: 120px 0;
}
.planes-preview-header {
  text-align: center;
  margin-bottom: 56px;
}
.planes-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.plan-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(22,21,26,0.08);
}
.plan-mini-card.featured {
  border: 2px solid var(--purple);
  position: relative;
}
.plan-mini-badge {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.plan-mini-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.plan-mini-price {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 10px;
}
.plan-mini-price span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-2);
}
.plan-mini-tagline {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.6;
}

/* ── CTA FINAL ── */
#cta-final {
  padding: 100px 0 120px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 16px;
  color: var(--gray-1);
  margin-bottom: 32px;
}
.cta-email {
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray-2);
}
.cta-email a { color: var(--purple); font-weight: 600; transition: color 0.2s; }
.cta-email a:hover { color: var(--purple-dim); }

/* ── QUIÉNES SOMOS ── */
#quienes-somos {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.quienes-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.quienes-lead {
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--gray-1);
  line-height: 1.75;
  margin-bottom: 20px;
}
.quienes-lead strong { color: var(--ink); font-weight: 600; }
.quienes-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.quienes-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.quienes-stat-value {
  font-family: var(--font-headline);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 6px;
}
.quienes-stat-label {
  font-size: 13px;
  color: var(--gray-1);
  line-height: 1.5;
}
.quienes-manifesto {
  background: var(--bg-soft);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}
.quienes-manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.quienes-manifesto-quote {
  font-family: var(--font-headline);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

/* ── AUDITORÍA GRATIS (captura de email) ── */
#auditoria {
  padding: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.audit-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 0;
}
/* Espacio reservado para la imagen. Para cambiarla, ver el comentario en el HTML. */
.audit-visual {
  position: relative;
  min-height: 430px;
  background:
    radial-gradient(circle at 30% 25%, rgba(124,58,255,0.22) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(124,58,255,0.14) 0%, transparent 50%),
    linear-gradient(140deg, var(--purple-soft) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.audit-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.audit-content {
  padding: 88px 0 88px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.audit-title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.13;
  color: var(--ink);
  margin-bottom: 30px;
  max-width: 520px;
}
.audit-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}
.audit-step {
  display: flex;
  align-items: center;
  gap: 15px;
}
.audit-step-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-purple);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
}
.audit-step-text {
  font-size: clamp(15px, 1.5vw, 16.5px);
  color: var(--gray-1);
}
.audit-form {
  display: flex;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audit-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.audit-input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.audit-input:focus { outline: none; }
.audit-input::placeholder { color: var(--gray-3); }
.audit-submit {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}
.audit-submit svg { width: 15px; height: 15px; transition: transform 0.2s; }
.audit-submit:hover { background: var(--purple); }
.audit-submit:hover svg { transform: translateX(3px); }
.audit-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.audit-status {
  font-size: 14px;
  margin-top: 14px;
  min-height: 1.2em;
}
.audit-status.is-ok  { color: #16A34A; }
.audit-status.is-err { color: #DC2626; }
html[data-theme="dark"] .audit-status.is-ok  { color: #4ADE80; }
html[data-theme="dark"] .audit-status.is-err { color: #F87171; }
.audit-note {
  font-size: 12.5px;
  color: var(--gray-2);
  margin-top: 14px;
  max-width: 480px;
}

@media (max-width: 1024px) {
  .audit-wrap { grid-template-columns: 1fr; }
  .audit-visual { min-height: 240px; order: -1; }
  .audit-content { padding: 56px 0 64px; }
  .audit-title { max-width: 100%; }
}
@media (max-width: 560px) {
  .audit-form { flex-direction: column; }
  .audit-submit { justify-content: center; padding: 15px 20px; }
}

/* ══════════════════════════════════════════════
   PÁGINA SERVICIOS
   ══════════════════════════════════════════════ */
.sv-list { padding: 40px 0 100px; }
.sv-item {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.sv-item:first-child { border-top: none; }
.sv-item-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.sv-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple);
  letter-spacing: 0.1em;
}
.sv-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  display: flex; align-items: center; justify-content: center;
}
.sv-icon svg { width: 22px; height: 22px; color: var(--purple); }
.sv-name {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sv-item-body { padding-left: 64px; max-width: 760px; }
.sv-desc {
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--gray-1);
  line-height: 1.7;
}
.sv-for {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--gray-1);
}
.sv-for-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-right: 8px;
}
.sv-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.6;
}
.sv-note strong { color: var(--ink); }
.sv-cases {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.sv-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.sv-case:hover { border-color: var(--border-purple); transform: translateY(-2px); }
.sv-case-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.sv-case-desc { font-size: 13.5px; color: var(--gray-1); line-height: 1.6; }
@media (max-width: 768px) {
  .sv-item-body { padding-left: 0; }
  .sv-cases { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   PÁGINA PORTAFOLIO
   ══════════════════════════════════════════════ */
.pf-section { padding: 40px 0 100px; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.25s;
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(22,21,26,0.10);
  border-color: var(--border-purple);
}
/* Espacio reservado para el screenshot: degradado mientras no hay imagen */
.pf-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 25%, rgba(124,58,255,0.20) 0%, transparent 55%),
    linear-gradient(135deg, var(--purple-soft) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.pf-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.pf-card:hover .pf-media img { transform: scale(1.04); }
.pf-media-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-dim);
  background: var(--surface);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 5px 12px;
}
.pf-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pf-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.pf-desc { font-size: 14.5px; color: var(--gray-1); line-height: 1.6; }
.pf-disc {
  font-size: 12.5px;
  color: var(--gray-2);
  font-style: italic;
  margin-top: 10px;
}
.pf-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
}
.pf-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.pf-card:hover .pf-link svg { transform: translate(2px, -2px); }
.pf-soon {
  margin-top: 48px;
  padding: 34px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--border-purple);
  border-radius: var(--radius-lg);
}
.pf-soon p {
  font-size: 15px;
  color: var(--gray-1);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ══════════════════════════════════════════════
   PÁGINA BLOG (estado vacío)
   ══════════════════════════════════════════════ */
.bl-section { padding: 60px 0 120px; }
.bl-empty {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.bl-empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  display: flex; align-items: center; justify-content: center;
}
.bl-empty-icon svg { width: 30px; height: 30px; color: var(--purple); }
.bl-empty-title {
  font-family: var(--font-headline);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.bl-empty-sub {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 28px;
}
.bl-empty .btn-primary { justify-content: center; }

/* ══════════════════════════════════════════════
   PÁGINA LEGAL (privacidad)
   ══════════════════════════════════════════════ */
.legal { padding: 40px 0 100px; }
.legal-wrap { max-width: 760px; }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal h2:first-child { margin-top: 0; }
.legal p {
  font-size: 15.5px;
  color: var(--gray-1);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal li {
  font-size: 15.5px;
  color: var(--gray-1);
  line-height: 1.65;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--purple); font-weight: 500; }
.legal a:hover { color: var(--purple-dim); }
.legal-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── CTA: LLAMADA / WHATSAPP ── */
#cta-llamada {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.llamada-box { max-width: 680px; }

/* Variante con imagen a sangre completa (solo home) */
#cta-llamada.has-media { padding: 0; overflow: hidden; }
.llamada-box--media {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 0;
}
.llamada-box--media .llamada-copy {
  padding: 88px 72px 88px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.llamada-box--media .llamada-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}
.llamada-box--media .llamada-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1024px) {
  .llamada-box--media { grid-template-columns: 1fr; }
  .llamada-box--media .llamada-media { min-height: 240px; order: -1; }
  .llamada-box--media .llamada-copy { padding: 56px 0 64px; }
}
.llamada-title {
  font-family: var(--font-headline);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}
.llamada-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 32px;
}
.llamada-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px;
  background: #25D366;
  color: #07301A;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
}
.btn-wa:hover {
  background: #1FBE5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.32);
}
.btn-wa svg { width: 18px; height: 18px; }

/* ── BOTÓN SUBIR AL INICIO ── */
#to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 52px; height: 52px;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
#to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: var(--purple-soft); }
#to-top svg.to-top-arrow {
  width: 18px; height: 18px;
  position: relative; z-index: 2;
  transition: transform 0.2s;
}
#to-top:hover svg.to-top-arrow { transform: translateY(-2px); }
.to-top-ring {
  position: absolute; inset: -1px;
  width: 52px; height: 52px;
  transform: rotate(-90deg);
  pointer-events: none;
}
.to-top-ring circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.to-top-ring .ring-track { stroke: transparent; }
.to-top-ring .ring-progress {
  stroke: var(--purple);
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.1s linear;
}
@media (max-width: 768px) {
  #to-top { right: 16px; bottom: 16px; }
  .quienes-wrapper { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 1024px) {
  .quienes-wrapper { grid-template-columns: 1fr; gap: 48px; }
}

/* ══════════════════════════════════════════════
   PÁGINA DE PLANES
   ══════════════════════════════════════════════ */
.page-hero {
  padding: 170px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--purple-glow) 0%, transparent 55%),
    var(--bg);
}
.page-hero .section-label { justify-content: center; }

/* Header con video de fondo (solo servicios) */
.page-hero--video { position: relative; overflow: hidden; }
.page-hero--video .page-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.page-hero--video .page-hero-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 72% 82% at 50% 50%,
    rgba(253,252,250,0.92) 0%,
    rgba(253,252,250,0.74) 46%,
    rgba(253,252,250,0.34) 76%,
    rgba(253,252,250,0.10) 100%);
}
.page-hero--video > .container { position: relative; z-index: 2; }
html[data-theme="dark"] .page-hero--video .page-hero-video,
html[data-theme="dark"] .page-hero--video .page-hero-veil { display: none; }
@media (prefers-reduced-motion: reduce) {
  .page-hero--video .page-hero-video,
  .page-hero--video .page-hero-veil { display: none; }
}
.page-hero-title {
  font-family: var(--font-headline);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}
.page-hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--gray-1);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero-note {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--purple-dim);
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 8px 18px;
}

#planes-full { padding: 72px 0 110px; }

/* Planes como sección dentro del Inicio */
#planes {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px; /* deja aire bajo el navbar fijo al llegar por ancla */
}
.planes-header {
  text-align: center;
  margin-bottom: 56px;
}
.planes-header .page-hero-note { margin-top: 20px; }
#comparativa, #faq, #cta-final { scroll-margin-top: 90px; }
.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.25s;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(22,21,26,0.11);
  border-color: var(--border-purple);
}
.plan-card.featured {
  border: 2px solid var(--purple);
  box-shadow: 0 14px 40px var(--purple-glow);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.plan-tagline {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 44px;
}
.plan-price {
  font-family: var(--font-headline);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.plan-price-from {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 4px;
}
.plan-price-unit {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
}
.plan-price-note {
  font-size: 12.5px;
  color: var(--gray-2);
  margin-top: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Lista que se despliega al pasar el cursor */
.plan-features { margin-top: 22px; }
.plan-features-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 14px;
}
.plan-features-hint {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--purple);
  text-transform: none;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}
.plan-features-hint svg { width: 11px; height: 11px; transition: transform 0.35s; }
.plan-card:hover .plan-features-hint { opacity: 0; }
.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan-feature {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.55;
}
.plan-feature svg {
  width: 15px; height: 15px;
  color: var(--purple);
  margin-top: 3px;
}
/* Los items extra quedan colapsados y se abren al hacer hover en la tarjeta */
.plan-feature--extra {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: -11px;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s, margin-top 0.4s var(--ease-out);
}
.plan-card:hover .plan-feature--extra,
.plan-card:focus-within .plan-feature--extra {
  max-height: 90px;
  opacity: 1;
  margin-top: 0;
}
.plan-cta { margin-top: 26px; }
.plan-cta .btn-primary,
.plan-cta .btn-ghost {
  width: 100%;
  justify-content: center;
}
/* En pantallas tactiles no hay hover: se muestra todo desplegado */
@media (hover: none), (pointer: coarse) {
  .plan-feature--extra { max-height: 90px; opacity: 1; margin-top: 0; }
  .plan-features-hint { display: none; }
}
@media (max-width: 1024px) {
  .planes-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-tagline { min-height: 0; }
}

/* ── TABLA COMPARATIVA ── */
#comparativa {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.comparativa-header { text-align: center; margin-bottom: 48px; }
.comparativa-header .section-label { justify-content: center; }
.tabla-wrap { overflow-x: auto; }
.tabla-comparativa {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 560px;
}
.tabla-comparativa th,
.tabla-comparativa td {
  padding: 17px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.tabla-comparativa thead th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  /* Tono propio: si usa el mismo que la sección, la cabecera se pierde */
  background: var(--table-head);
  border-bottom: 1px solid var(--border-purple);
}
.tabla-comparativa thead th.col-lumyn { color: var(--purple); }

/* Marcas de check / equis */
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  margin-right: 9px;
  vertical-align: -4px;
}
.cmp-mark svg { width: 100%; height: 100%; }
.cmp-mark--yes { color: #16A34A; }
.cmp-mark--no  { color: #DC2626; }
html[data-theme="dark"] .cmp-mark--yes { color: #4ADE80; }
html[data-theme="dark"] .cmp-mark--no  { color: #F87171; }
.tabla-comparativa tbody th {
  font-weight: 600;
  color: var(--ink);
}
.tabla-comparativa td { color: var(--gray-1); }
.tabla-comparativa td.col-lumyn { color: var(--ink); font-weight: 500; }
.tabla-comparativa tr:last-child th,
.tabla-comparativa tr:last-child td { border-bottom: none; }

/* ── FAQ ── */
#faq { padding: 100px 0; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header .section-label { justify-content: center; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--purple);
  padding-top: 4px;
  flex-shrink: 0;
}
.faq-q-text { flex: 1; }
.faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gray-2);
  transition: transform 0.3s var(--ease-out), color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--purple); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-a-inner {
  padding: 0 0 24px 42px;
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.75;
}
@media (max-width: 560px) {
  .faq-a-inner { padding-left: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  #navbar { padding: 18px 32px; }
  #navbar.scrolled { padding: 12px 32px; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .how-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .how-sticky { position: static; }
  .planes-preview-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  /* En mobile solo queda el logo + hamburguesa. Los controles de tema/idioma
     y el CTA viven dentro del menú desplegable, así el navbar no se apretuja. */
  .nav-links, .nav-cta, #navbar > .nav-controls { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile .nav-controls { display: flex; }
  .pilares-grid { grid-template-columns: 1fr; }
  .tech-strip-logos { gap: 24px 32px; }
}

/* ── REDUCED MOTION ──
   Antes esto forzaba TODAS las animaciones a 0.01ms, lo que convertía los
   loops infinitos (pulso, marquee) en un titileo/parpadeo hiperrápido y dejaba
   el terminal congelado. Ahora las animaciones decorativas de marca siguen
   corriendo (Diego las quiere en móvil); solo se calma el pulso para quien
   pida menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot,
  .terminal-live-dot,
  .chat-status-dot { animation: none; opacity: 0.9; }
}

/* ══════════════════════════════════════════════
   LUMYN AGENT — widget de chat
   ══════════════════════════════════════════════ */
#lumyn-chat {
  position: fixed;
  right: 28px;
  bottom: 92px; /* deja libre el botón de volver arriba */
  /* Por encima del navbar (1000): si el panel llegara a tocarlo, se ve
     completo igual en vez de quedar cortado por debajo. */
  z-index: 1001;
}

/* Botón flotante */
.chat-toggle {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px var(--purple-glow);
  transition: transform 0.25s var(--ease-out), background 0.2s;
}
.chat-toggle:hover { transform: scale(1.06); background: var(--purple-dim); }
.chat-toggle svg {
  width: 24px; height: 24px;
  position: absolute;
  transition: opacity 0.25s, transform 0.25s;
}
.chat-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
#lumyn-chat.is-open .chat-toggle .icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
#lumyn-chat.is-open .chat-toggle .icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Puntito de aviso, solo antes de abrir por primera vez */
.chat-badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #28C840;
  border: 2px solid var(--bg);
}
#lumyn-chat.is-open .chat-badge { display: none; }

/* Panel */
.chat-panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: 380px;
  /* La altura se adapta al alto de la ventana para que el panel entre
     siempre completo: descuenta el navbar (~70px), el margen inferior
     donde vive el botón flotante (162px) y un respiro arriba. */
  height: min(540px, calc(100vh - 250px));
  min-height: 340px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(22, 21, 26, 0.20);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}
#lumyn-chat.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
html[data-theme="dark"] .chat-panel {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

/* Cabecera */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 19px; height: 19px; color: var(--purple); }
.chat-header-text { flex: 1; min-width: 0; }
.chat-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}
.chat-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-top: 4px;
}
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28C840;
  animation: pulse 2s ease-in-out infinite;
}
.chat-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--gray-2);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.chat-close:hover { background: var(--bg-soft); color: var(--ink); }
.chat-close svg { width: 16px; height: 16px; }

/* Conversación */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.chat-msg { display: flex; align-items: flex-end; gap: 9px; }
.chat-msg--user { justify-content: flex-end; }

/* Círculo con la inicial del agente */
.chat-msg-avatar {
  width: 27px; height: 27px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid var(--border-purple);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg--assistant .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* "Escribiendo…" */
.chat-typing .chat-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 16px;
}
.chat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-3);
  animation: chatDot 1.3s ease-in-out infinite;
}
.chat-dot:nth-child(2) { animation-delay: 0.18s; }
.chat-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Botón a WhatsApp dentro de un mensaje del agente */
.chat-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 17px;
  background: #25D366;
  color: #07301A;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.chat-wa:hover { background: #1FBE5A; transform: translateY(-1px); }
.chat-wa svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Sugerencias iniciales */
/* Preguntas sugeridas: rectángulos con borde, apilados a la izquierda */
.chat-suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 2px 36px;
}
.chat-suggestion {
  padding: 10px 15px;
  background: transparent;
  border: 1px solid var(--border-purple);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--purple);
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.chat-suggestion:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateX(3px);
}

/* Barra de escritura */
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input {
  flex: 1;
  min-width: 0;
  resize: none;
  height: 40px;
  max-height: 110px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.chat-input::placeholder { color: var(--gray-3); }
/* Oculta la barra de desplazamiento del campo (se veía como flechitas) */
.chat-input { overflow-y: auto; scrollbar-width: none; }
.chat-input::-webkit-scrollbar { display: none; }
.chat-send {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.chat-send:hover { background: var(--purple-dim); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-send svg { width: 17px; height: 17px; }

/* Pie: firma de marca */
.chat-foot {
  padding: 11px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray-3);
  text-align: center;
  margin: 0;
}
.chat-foot strong {
  color: var(--purple);
  font-weight: 600;
}

@media (max-width: 560px) {
  #lumyn-chat { right: 16px; bottom: 80px; }
  .chat-panel {
    position: fixed;
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: 82vh;
    max-height: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform-origin: bottom center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel { transition: opacity 0.01ms; }
}

/* ══════════════════════════════════════════════
   FOOTER — se mantiene oscuro intencionalmente
   (bloque de cierre con contraste, ver PLAN-RELANZAMIENTO.md)
   ══════════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--white);
}
.footer-sc { position: relative; z-index: 1; }

/* Fondo: video de la Tierra girando, con velo oscuro/morado para contraste */
.footer-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.footer-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
}
.footer-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(124,58,255,0.32) 0%, rgba(124,58,255,0) 70%),
    linear-gradient(180deg, rgba(12,11,12,0.35) 0%, rgba(12,11,12,0.82) 65%, #0C0B0C 100%);
}

.footer-s {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding-bottom: 0;
}

.footer-top-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 80px 0 60px;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-mail-block { display: flex; flex-direction: column; gap: 16px; }
.footer-tagline-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-gray-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 16px;
  width: fit-content;
}
.footer-mail-link {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.25s;
}
.footer-mail-link:hover { opacity: 0.7; }
.footer-download-app {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 300px;
  padding-top: 8px;
}
.footer-cta-head {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-cta-sub {
  font-size: 14px;
  color: var(--dark-gray-2);
  line-height: 1.6;
}
.main-button {
  display: inline-flex; align-items: center;
  padding: 13px 30px;
  background: var(--white);
  color: #0C0B0C;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  margin-top: 6px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}
.main-button:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.footer-middle-block {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-media-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-media-link {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.footer-media-link:last-child { border-right: none; }
.footer-media-link:hover { background: rgba(255,255,255,0.04); }
.media-link-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: clamp(18px, 2.5vw, 32px);
  line-height: 1.15;
  height: 1.15em;
}
.media-link-text {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
}
.media-link-text--orig { transform: translateY(0); }
.media-link-text--clone {
  position: absolute; top: 100%; left: 0;
  color: var(--purple);
}
.footer-media-link:hover .media-link-text--orig { transform: translateY(-100%); }
.footer-media-link:hover .media-link-text--clone { transform: translateY(-100%); }

.footer-down-block {
  padding: 60px 0 48px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-name {
  font-family: var(--font-headline);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-align: center;
  width: 100%;
  color: #FFFFFF;
  will-change: transform, opacity, filter;
}
.footer-reveal { will-change: transform, opacity, filter; }
.footer-down-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: var(--dark-gray-2);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-policy-links { display: flex; gap: 24px; }
.footer-policy-links a { transition: color 0.2s; }
.footer-policy-links a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .footer-name { font-size: clamp(40px, 8vw, 100px); }
}
@media (max-width: 768px) {
  .footer-top-block { flex-direction: column; gap: 36px; padding: 48px 0 36px; }
  .footer-download-app { max-width: 100%; }
  .footer-media-links { flex-direction: column; align-items: flex-start; }
  .footer-media-link {
    width: 100%; justify-content: flex-start;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
  }
  .footer-media-link:last-child { border-bottom: none; }
  .footer-name { font-size: clamp(36px, 12vw, 72px); }
  .footer-down-block { padding: 40px 0 36px; }
  .footer-down-info { flex-direction: column; align-items: flex-start; }
}

/* ─── Formulario de contacto (leads → Brevo) ─────────────────── */
/* Se retermina completamente al construir /contacto — placeholder mínimo */
.lead-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.lead-field { display: flex; flex-direction: column; gap: 0.4rem; }
.lead-field label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-2); font-family: var(--font-mono);
}
.lead-field input, .lead-field select, .lead-field textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1rem; font-size: 0.95rem;
  color: var(--ink); font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-glow);
}
.lead-field textarea { resize: vertical; min-height: 110px; }
.lead-consent {
  display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem;
  color: var(--gray-1); line-height: 1.45; cursor: pointer;
}
.lead-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; }
.lead-submit { width: 100%; justify-content: center; margin-top: 0.3rem; font-size: 15px; }
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-status { font-size: 0.9rem; text-align: center; margin: 0; min-height: 1.2em; }
.lead-status.is-ok { color: #1a8f5e; }
.lead-status.is-err { color: #c23a3a; }
@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } }
