/* ============================================================
   LOS EXPERTOS IA — IA para clínicas dentales
   Sistema visual: cinematic-motion-design skill
   ============================================================ */

:root {
  /* Paleta "esmalte": fondo casi negro con un único acento aguamarina
     clínico — el color de la luz de gabinete y del esmalte dental, sin
     caer en el azul corporativo que usa toda la competencia. */
  --bg: #05070a;
  --bg-2: #090d12;
  --bg-3: #0d1218;
  --accent: #4fcfde;
  --accent-soft: rgba(79, 207, 222, 0.13);
  --accent-line: rgba(79, 207, 222, 0.34);
  --on-accent: #032027;
  --text: #f1f6f7;
  --muted: #97a3ab;
  --muted-dim: #65717a;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.15);

  --ui: 'Jost', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Jost es proporcional: sin cifras de ancho fijo, cualquier número que se
   anime (contadores, importes, porcentajes) baila de ancho al cambiar. */
#preloader-pct, .hud__readout, .stat__num, .calc__field-val, .calc__row-val,
.calc__total-val, .calc__total-sub, .plan__price, .plan__monthly {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }

/* ---------- Tipografía base ---------- */

.label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h2 { font-size: clamp(34px, 5.4vw, 76px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }

p { color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; }
p strong, .hl { color: var(--text); font-weight: 500; }
.accent { color: var(--accent); }

/* ============================================================
   PRELOADER
   ============================================================ */

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

#preloader .pre-mark {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

#preloader-pct {
  font-family: var(--ui);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 300;
  letter-spacing: -0.028em;
  color: var(--text);
  line-height: 1;
}

#preloader .pre-bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

#preloader .pre-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

#preloader .pre-status {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

/* ============================================================
   ATMÓSFERA
   Dos capas fijas detrás de todo el contenido. Su función es que
   la página deje de leerse como secciones apiladas y se sienta
   como un mismo espacio por el que uno avanza.
   ============================================================ */

#atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(75vw 62vh at var(--ax, 30%) var(--ay, 20%), rgba(79, 207, 222, 0.20), transparent 68%),
    radial-gradient(62vw 55vh at var(--bx, 75%) var(--by, 80%), rgba(64, 150, 200, 0.14), transparent 66%);
}

#dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

/* El contenido siempre por encima de la atmósfera */
.section, .suite, .final, .footer, .marquee, .process { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  #atmos, #dust { display: none; }
}

/* ============================================================
   ODÓMETRO
   Cada dígito es una columna del 0 al 9 que se desliza dentro de
   una ventana. La cifra no cambia de golpe: rueda.
   ============================================================ */

.od { display: inline-flex; align-items: baseline; }

/* Sólo para lectores de pantalla: la cifra real, sin las ruedas */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.od__char {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
}

.od__strip { display: block; will-change: transform; }
.od__strip span { display: block; height: 1em; line-height: 1; }

/* Separadores y símbolos no ruedan: se quedan quietos */
.od__fixed { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .od__strip { transition: none !important; }
}

/* ============================================================
   CTA FIJO EN MÓVIL
   El dentista lee esto en el móvil entre paciente y paciente.
   Obligarle a volver arriba para actuar es fricción pura.
   ============================================================ */

.stickycta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 940;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 7, 10, 0.93);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
}

.stickycta__txt {
  display: flex; flex-direction: column; line-height: 1.3;
  font-family: var(--ui); font-weight: 500;
  font-size: 10.5px; color: var(--muted-dim);
  flex: 1; min-width: 0;
}
.stickycta__txt b { font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: 0.02em; }

.stickycta__btn {
  font-family: var(--ui); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 3px;
  flex: 0 0 auto;
  /* WCAG pide 24px de área mínima; aquí quedan 40 de alto */
  min-height: 40px; display: inline-flex; align-items: center;
}

@media (max-width: 780px) { .stickycta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .stickycta { transform: none; } }

/* ============================================================
   CAPTURA AL SALIR
   Recupera entre el 10 y el 15% de quien se marcha. Un solo
   campo: a partir de cuatro la conversión cae a la mitad.
   ============================================================ */

.salida {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  padding: 20px;
}

.salida[hidden] { display: none; }

.salida__fondo {
  position: absolute; inset: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.salida__caja {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg) 75%);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
}

.salida__x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: none; background: transparent;
  color: var(--muted-dim); font-size: 13px; cursor: pointer;
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease;
}
.salida__x:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.salida__caja h3 { margin: 14px 0 12px; font-size: clamp(22px, 3.2vw, 30px); }
.salida__p { font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.salida__p b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }

.salida__row { display: flex; gap: 8px; flex-wrap: wrap; }

.salida__row input {
  flex: 1 1 180px; min-width: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 13px 15px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.25s ease;
}
.salida__row input:focus { border-color: var(--accent); }
.salida__row input::placeholder { color: var(--muted-dim); }

.salida__row button {
  font-family: var(--ui); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  border: none; border-radius: 3px;
  padding: 13px 22px; cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.salida__row button:hover { transform: translateY(-2px); }

.salida__msg {
  font-family: var(--ui); font-weight: 500;
  font-size: 11.5px; color: var(--accent);
  margin-top: 11px; min-height: 17px;
}

.salida__legal { font-size: 11.5px; color: var(--muted-dim); margin-top: 16px; line-height: 1.5; }

/* ============================================================
   PROGRESO DE SCROLL
   ============================================================ */

#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 950;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
}

#scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px var(--accent-line);
}

/* ============================================================
   FOCO QUE SIGUE AL CURSOR
   Un halo suave bajo el puntero: da profundidad a las secciones
   oscuras y hace que el fondo deje de ser plano.
   ============================================================ */

.spotlight {
  position: absolute;
  inset: 0;
  /* Detrás del contenido pero dentro del contexto de apilado de la sección.
     Antes lo resolvía forzando position:relative a todos los hermanos, y
     esa regla le pisaba el absolute a .final__glow: el resplandor pasaba a
     ocupar 810px de flujo y abría un hueco enorme antes del formulario. */
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 207, 222, 0.09),
    transparent 70%
  );
}

.has-spotlight { position: relative; }

/* ============================================================
   CURSOR CUSTOM
   ============================================================ */

#cursor-orbit, #cursor-hint {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}

#cursor-orbit { width: 34px; height: 34px; margin: -17px; }

#cursor-orbit .ring {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
}

#cursor-orbit.is-hot .ring {
  border-color: var(--accent);
  background: var(--accent-soft);
}

#cursor-hint {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 2px;
  opacity: 0;
  white-space: nowrap;
  transform: translate(18px, 18px);
}

@media (hover: none), (pointer: coarse) {
  #cursor-orbit, #cursor-hint { display: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: normal;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__brand {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav__mark {
  width: 30px;
  height: 21px;
  color: var(--accent);
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(79, 207, 222, 0.35));
}

.nav__word { white-space: nowrap; }

.nav__sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.nav__desc { color: var(--accent); white-space: nowrap; }

@media (max-width: 560px) {
  .nav__sep, .nav__desc { display: none; }
  .nav__brand { font-size: 11px; letter-spacing: 0.16em; }
}

/* ---------- Menú móvil ----------
   Debajo de 900px los enlaces desaparecían y no había nada que los
   sustituyera: el visitante de móvil se quedaba sin navegación. Y a
   360px la marca (157px) más el botón (205px) sumaban 362 en 320
   disponibles, así que la barra se salía 42px. */

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0;
  flex: 0 0 auto;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s ease;
}
.nav__burger span:nth-child(1) { width: 26px; }
.nav__burger span:nth-child(2) { width: 17px; }

.nav__burger.is-open span:nth-child(1) { width: 24px; transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { width: 24px; transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  /* Especificidad extra: la regla genérica de .btn se define más abajo
     en el fichero y con igual peso ganaría por orden. */
  .nav .btn.nav__cta { display: none; }
}

.menum {
  position: fixed;
  inset: 0;
  z-index: 930;
  background: rgba(5, 7, 10, 0.97);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 90px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}

.menum[hidden] { display: none; }

.menum__links { display: flex; flex-direction: column; gap: 4px; }

.menum__links a {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 8vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  padding: 6px 0;
}
.menum__links a:active { color: var(--accent); }

.menum__cta {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: 17px 26px;
  border-radius: 3px;
  text-align: center;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}

body.menu-abierto { overflow: hidden; }

.nav__links {
  display: flex;
  gap: 30px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links a { color: var(--muted); transition: color 0.25s ease; position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

@media (max-width: 900px) { .nav__links { display: none; } }

/* ============================================================
   BOTONES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--accent-line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:hover::before { transform: scaleY(1); }
.btn span { position: relative; z-index: 1; }

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn--solid::before { background: var(--text); }
.btn--solid:hover { color: var(--bg); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }

.btn__arrow { font-size: 13px; transition: transform 0.35s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   HERO — vídeo scrubbeado por scroll
   ============================================================ */

.hero {
  position: relative;
  height: 480vh;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-img-2 { opacity: 0; }
.hero__fallback { position: absolute; inset: 0; z-index: 1; }
/* El <picture> solo elige la fuente: no debe crear caja propia. */
.hero__fallback picture { display: contents; }

/* El vídeo no se muestra hasta que tiene fotogramas: si no, tapa en negro
   los frames de respaldo mientras carga. */
.hero__media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero__media video.is-ready { opacity: 1; }

/* Capas de tratamiento sobre el vídeo */
.hero__grade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    /* Scrim izquierdo: el titular cae sobre la zona clara de la persiana. */
    linear-gradient(to right, rgba(6, 8, 12, 0.88) 0%, rgba(6, 8, 12, 0.6) 32%, transparent 62%),
    radial-gradient(120% 80% at 50% 45%, transparent 20%, rgba(6, 8, 12, 0.55) 75%, rgba(6, 8, 12, 0.92) 100%),
    linear-gradient(to bottom, rgba(6, 8, 12, 0.75) 0%, transparent 22%, transparent 58%, rgba(6, 8, 12, 0.95) 100%);
}

.hero__grain {
  position: absolute;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(3) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

.hero__scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 5;
  background: linear-gradient(to right, transparent, var(--accent-line), transparent);
  opacity: 0;
  pointer-events: none;
}

/* Copy del hero */
/* Reservamos la franja de la nav y la del HUD para que el copy centrado
   no pueda invadirlas en portátiles de pantalla baja. */
.hero__copy {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) 88px;
}

.beat {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  max-width: 980px;
  opacity: 0;
}

/* El primer mensaje es visible sin JavaScript: si GSAP no carga, la web
   sigue vendiendo en vez de quedarse en negro. */
#beat-1 { opacity: 1; }

.beat__eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(14px, 2.4vh, 24px);
  display: block;
}

/* El vh en el clamp evita que el titular desborde en pantallas bajas. */
.beat h1 {
  font-size: clamp(38px, min(8.2vw, 13vh), 128px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2.6vh, 26px);
}

/* Máscara de línea para los titulares: el texto sube desde detrás en vez
   de aparecer con un fundido plano.

   El padding no es decorativo. Con interlineados tan cerrados (0,94-0,98)
   la mancha de la letra sobresale de su caja de línea, y como la máscara
   lleva overflow:hidden, se comía tildes y las colas de la p, la g y la j
   (18px en el h1 del hero). El margen negativo compensa el padding para
   que la maquetación no se mueva ni un píxel. */
.beat h1 .line,
.section__head h2 .line,
.final h2 .line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0;
  margin: -0.14em 0;
}

.beat h1 .line > span,
.section__head h2 .line > span,
.final h2 .line > span { display: block; }

.beat p {
  font-size: clamp(16px, 1.5vw, 22px);
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

.beat__cta { margin-top: clamp(20px, 3.6vh, 38px); display: flex; gap: 16px; flex-wrap: wrap; }

/* HUD del hero */
.hero__hud {
  position: absolute;
  z-index: 7;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.hud__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud__track {
  width: clamp(90px, 16vw, 200px);
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.hud__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
}

.hud__readout {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.hud__readout b { color: var(--accent); font-weight: 400; }

@media (max-width: 700px) {
  .hud__readout { display: none; }
}

/* En móvil cuatro pantallas de hero se hacen largas: acortamos el recorrido
   sin perder la transformación completa del plano. */
@media (max-width: 780px) {
  .hero { height: 340vh; }
  .beat__cta { margin-top: 26px; }
  .beat__cta .btn { padding: 13px 20px; }
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */

.section {
  position: relative;
  padding: clamp(90px, 12vh, 170px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section--full { max-width: none; }

.section__head { max-width: 900px; margin-bottom: clamp(48px, 7vh, 88px); }
.section__head h2 { margin: 22px 0 22px; }
.section__head p { max-width: 640px; }

.divider { height: 1px; background: var(--line); width: 100%; }

/* ============================================================
   CIFRAS
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--sans);
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 14px;
  /* La cifra y su unidad no se separan nunca: "6.000 €" partía el símbolo
     a una segunda línea y descuadraba la fila. */
  white-space: nowrap;
}

.stat__num .unit { color: var(--accent); }

.stat__label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.source-note {
  font-family: var(--ui);
  font-weight: 500;
  /* 12px es el suelo: por debajo la guía lo marca como antipatrón. */
  font-size: 12px;
  max-width: 64ch;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  margin-top: 26px;
  line-height: 1.7;
}

/* ============================================================
   CALCULADORA
   ============================================================ */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 70%);
  padding: clamp(28px, 4vw, 56px);
}

@media (max-width: 940px) { .calc { grid-template-columns: 1fr; } }

.calc__field { margin-bottom: 34px; }

.calc__field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.calc__field-label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc__field-val {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* El tramo recorrido se pinta con el acento y el resto queda apagado.
   WebKit no expone un pseudo-elemento para la parte inferior del recorrido,
   así que lo resolvemos con un degradado duro y una variable que actualiza
   el JS en cada cambio. */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  /* La altura describe la barra en sí; el padding de la versión táctil se
     suma por fuera. Con border-box el relleno se comería la barra entera. */
  box-sizing: content-box;
  height: 3px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--fill, 0%),
    var(--line-strong) var(--fill, 0%),
    var(--line-strong) 100%
  );
}

input[type=range]:focus-visible {
  outline: 1px solid var(--accent-line);
  outline-offset: 6px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 207, 222, 0.16), 0 0 18px rgba(79, 207, 222, 0.5);
  transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.25); }

input[type=range]::-moz-range-thumb {
  width: 15px; height: 15px; border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 207, 222, 0.16);
}

.calc__out {
  border-left: 1px solid var(--accent-line);
  padding-left: clamp(22px, 3vw, 40px);
}

/* Al apilarse en móvil, el filete que separaba las dos columnas se queda
   colgando a la izquierda y desplaza el resultado 22px respecto a los
   controles de arriba. Ahí el separador tiene que ser horizontal. */
@media (max-width: 900px) {
  .calc__out {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--accent-line);
    padding-top: 26px;
    margin-top: 4px;
  }
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.calc__row-label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.calc__row-val {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.calc__total { padding-top: 30px; }

.calc__total-label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.calc__total-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 82px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(79, 207, 222, 0.35);
}

.calc__total-sub {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

/* ============================================================
   SUITE — scroll horizontal
   ============================================================ */

.suite { position: relative; height: 340vh; }

/* El titular va en flujo, no absoluto: en absoluto se montaba encima de
   las tarjetas en cuanto el viewport no era muy alto. */
.suite__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* flex-start, no center: si el contenido no cabe, centrar lo desborda
     hacia arriba y el titular se mete debajo de la nav. */
  justify-content: flex-start;
  gap: clamp(20px, 4vh, 48px);
  overflow: hidden;
  padding-top: clamp(104px, 14vh, 148px);
  padding-bottom: clamp(20px, 4vh, 56px);
}

/* Las tarjetas ocupan el alto que sobra, nunca más. */
.suite__track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  flex: 1 1 auto;
  min-height: 0;
  will-change: transform;
  /* Necesario para que el giro 3D de las tarjetas tenga perspectiva */
  perspective: 1400px;
}

.scard {
  flex: 0 0 clamp(290px, 30vw, 420px);
  height: 100%;
  max-height: 560px;
  transform-style: preserve-3d;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.scard::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scard:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.scard:hover::after { transform: scaleX(1); }

.scard__idx {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ============================================================
   MICRO-ESCENAS DE LAS TARJETAS
   Cada tarjeta representa lo que hace, no lo cuenta sólo con
   texto. Ocupan el hueco libre que dejaba el margin auto.
   ============================================================ */

.scard__viz {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--ui);
  font-weight: 500;
  overflow: hidden;
}

/* --- 01 · conversación de WhatsApp --- */

.vz-phone {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 12px 10px 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.vz-phone__notch {
  position: absolute;
  top: 6px; left: 50%;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  transform: translateX(-50%);
}

.vz-bub {
  font-size: 10.5px;
  line-height: 1.3;
  padding: 6px 9px;
  border-radius: 10px;
  max-width: 88%;
  opacity: 0;
}

.vz-bub--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border-bottom-left-radius: 3px;
}

.vz-bub--out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 3px;
}

.vz-typing { display: flex; gap: 4px; align-self: flex-start; padding: 2px; opacity: 0; }
.vz-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-dim); }

.vz-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 9px;
  padding: 8px 10px;
  opacity: 0;
}

.vz-slot__check {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.vz-slot__txt { font-size: 10px; color: var(--muted); display: flex; flex-direction: column; line-height: 1.3; }
.vz-slot__txt b { color: var(--text); font-size: 11.5px; letter-spacing: 0.04em; }

/* --- 02 · cualificación --- */

.vz-ask {
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 10px;
  opacity: 0;
}

.vz-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.vz-tag {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 4px 9px;
  color: var(--muted-dim);
  opacity: 0;
}

.vz-tag--on { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.vz-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  opacity: 0;
}

.vz-price__lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-dim); }
.vz-price__val, .vz-price__cur {
  font-family: var(--sans); font-weight: 800; font-size: 22px;
  color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.vz-price__cur { color: var(--accent); }
.vz-price__fin { font-size: 9.5px; color: var(--muted-dim); width: 100%; }

/* --- 03 · el hueco se rellena --- */

.vz-agenda { display: flex; flex-direction: column; gap: 5px; }

.vz-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  opacity: 0;
}

.vz-row__h { color: var(--muted-dim); letter-spacing: 0.06em; flex: 0 0 auto; }
.vz-row__b { color: var(--muted); }
.vz-row--cancel .vz-row__b { color: var(--muted-dim); }

/* Estado cancelado: tiene que verse de un vistazo, no leerse */
.vz-row--hueco { position: relative; }
.vz-row__badge {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.vz-row.is-cancel { border-color: rgba(255, 138, 138, 0.4); background: rgba(255, 138, 138, 0.07); }
.vz-row.is-cancel .vz-row__b { color: #ff8a8a; text-decoration: line-through; opacity: 0.75; }
.vz-row.is-cancel .vz-row__badge { background: rgba(255, 138, 138, 0.16); color: #ff8a8a; }

.vz-row.is-filled { border-color: var(--accent-line); background: var(--accent-soft); }
.vz-row.is-filled .vz-row__b { color: var(--accent); text-decoration: none; opacity: 1; }
.vz-row.is-filled .vz-row__badge { background: var(--accent); color: var(--on-accent); }

.vz-wait {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dim); opacity: 0;
}
.vz-wait__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* --- 04 · reactivación --- */

/* Reactivación: ficha dormida -> le escribimos -> vuelve.
   La versión anterior sólo encendía un punto y nadie entendía qué pasaba. */

.vz-ficha {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  opacity: 0;
}

.vz-ficha__ini {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-dim);
  display: grid; place-items: center;
  font-size: 10px; letter-spacing: 0.04em;
  flex: 0 0 auto;
  transition: background 0.4s ease, color 0.4s ease;
}

.vz-ficha__txt {
  display: flex; flex-direction: column; line-height: 1.3;
  font-size: 9.5px; color: var(--muted-dim); flex: 1; min-width: 0;
}
.vz-ficha__txt b { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.vz-ficha__tag {
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 2px 7px;
  flex: 0 0 auto;
}

.vz-ficha.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.vz-ficha.is-on .vz-ficha__ini { background: var(--accent); color: var(--on-accent); }
.vz-ficha.is-on .vz-ficha__txt b { color: var(--text); }

.vz-flecha {
  text-align: center;
  font-size: 11px;
  color: var(--accent);
  line-height: 0.8;
  opacity: 0;
}

.vz-envio {
  font-size: 10px;
  line-height: 1.4;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 10px;
  border-bottom-right-radius: 3px;
  padding: 8px 10px;
  margin-left: 20%;
  opacity: 0;
}

.vz-vuelta {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 10px;
  opacity: 0;
}

.vz-vuelta__check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 10px;
  flex: 0 0 auto;
}

.vz-vuelta__txt {
  display: flex; flex-direction: column; line-height: 1.3;
  font-size: 9.5px; color: var(--muted);
}
.vz-vuelta__txt b { font-size: 11.5px; color: var(--accent); font-weight: 500; }

/* --- 05 · reseñas --- */

.vz-stars { display: flex; gap: 5px; }
.vz-star { font-size: 19px; color: var(--muted-dim); opacity: 0; line-height: 1; }
.vz-star.is-on { color: var(--accent); }

.vz-review { font-size: 10.5px; color: var(--muted); line-height: 1.45; opacity: 0; }

.vz-score { display: flex; align-items: baseline; gap: 6px; opacity: 0; }
.vz-score__val {
  font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--text);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.vz-score__max { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dim); }

/* --- 06 · panel --- */

.vz-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 62px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.vz-bar {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: bottom;
}

.vz-bar--on { background: var(--accent); box-shadow: 0 0 14px var(--accent-line); }

.vz-kpi { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; opacity: 0; }
.vz-kpi__val, .vz-kpi__cur {
  font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--text);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.vz-kpi__cur { color: var(--accent); }
.vz-kpi__lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dim); width: 100%; }

/* Sin animación: mostramos la escena ya resuelta */
@media (prefers-reduced-motion: reduce) {
  .vz-bub, .vz-slot, .vz-ask, .vz-tag, .vz-price, .vz-row,
  .vz-wait, .vz-ficha, .vz-flecha, .vz-envio, .vz-vuelta,
  .vz-star, .vz-review, .vz-score, .vz-kpi { opacity: 1; }
  .vz-bar { transform: scaleY(1); }
  .vz-typing { display: none; }
}

.scard h3 { margin-bottom: 16px; max-width: 15ch; }
.scard p { font-size: 15.5px; line-height: 1.6; }

.scard__metric {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  line-height: 1.6;
}

.scard__metric b { color: var(--accent); font-weight: 400; }

.suite__intro {
  padding: 0 var(--gutter);
  flex: 0 0 auto;
  pointer-events: none;
}

.suite__intro h2 { font-size: clamp(28px, min(4.4vw, 7vh), 60px); margin-top: 14px; }

/* Portátiles de pantalla baja: comprimimos la tarjeta para que quepa
   entera en el espacio que deja la nav. */
@media (max-height: 720px) {
  .scard { padding: 24px 22px; }
  .scard h3 { font-size: clamp(17px, 2.6vh, 22px); margin-bottom: 10px; }
  .scard p { font-size: 14.5px; line-height: 1.5; }
  .scard__idx { margin-bottom: 18px; }
  .scard__metric { margin-top: 16px; padding-top: 14px; font-size: 10px; }
  .suite__intro h2 { font-size: clamp(24px, 5.2vh, 40px); }
}

@media (max-width: 780px) {
  .suite { height: auto; }
  .suite__stage { position: relative; height: auto; padding: 70px 0 0; display: block; }
  .suite__track { flex-direction: column; transform: none !important; padding: 0 var(--gutter); }
  .scard { flex: 1 1 auto; height: auto; max-height: none; }
  /* En vertical la tarjeta crece con su contenido, así que la escena
     no puede seguir repartiéndose un espacio sobrante que ya no existe.
     Y sin altura fija tampoco hay nada contra lo que recortar. */
  .scard__viz { flex: 0 0 auto; height: auto; margin-bottom: 22px; overflow: visible; }
  .suite__intro { margin-bottom: 40px; }
}

/* ============================================================
   INTEGRACIONES — marquee
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  position: relative;
}

.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee__track { display: flex; gap: 56px; width: max-content; will-change: transform; }

.marquee__item {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.marquee__item::after { content: '/'; color: var(--accent); opacity: 0.5; }

/* ============================================================
   PROCESO — línea que se dibuja
   ============================================================ */

.process { position: relative; }

.process__line {
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.process__line-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.pstep {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 34px;
  padding-bottom: 54px;
  position: relative;
}

.pstep:last-child { padding-bottom: 0; }

.pstep__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  position: relative;
  z-index: 2;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.pstep.is-on .pstep__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(79, 207, 222, 0.12), 0 0 22px rgba(79, 207, 222, 0.5);
}

.pstep__num {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.pstep h3 { margin-bottom: 12px; }
.pstep p { max-width: 620px; }

@media (max-width: 640px) {
  .pstep { grid-template-columns: 30px 1fr; gap: 0 20px; }
}

/* ============================================================
   PRECIOS
   ============================================================ */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

@media (max-width: 940px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.45s ease;
}

.plan:hover { background: var(--bg-2); }

.plan--featured { background: linear-gradient(170deg, rgba(79, 207, 222, 0.07), var(--bg) 55%); }

.plan__tag {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: 6px 12px;
}

.plan__name {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.plan__price {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.plan__price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.plan__monthly {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

.plan__for {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.plan__list { list-style: none; margin-bottom: 32px; flex: 1; }

.plan__list li {
  font-size: 14px;
  color: var(--muted);
  padding: 9px 0 9px 24px;
  position: relative;
  line-height: 1.5;
}

.plan__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 9px; height: 1px;
  background: var(--accent);
}

.plan__list li.is-off { color: var(--muted-dim); opacity: 0.45; }
.plan__list li.is-off::before { background: var(--muted-dim); }

.guarantee {
  margin-top: 34px;
  border: 1px solid var(--accent-line);
  background: rgba(79, 207, 222, 0.05);
  padding: 26px 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.guarantee__mark {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 3px;
}

.guarantee p { font-size: 16px; color: var(--text); max-width: 52ch; }

/* ============================================================
   ANCLAJE DE PRECIO
   Valor antes que precio: el importe no significa nada hasta
   que está al lado de lo que cuesta no hacer nada.
   ============================================================ */

.anchor {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(165deg, var(--bg-2), var(--bg) 75%);
}

.anchor__title {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.anchor__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.anchor__row:last-child { border-bottom: none; padding-bottom: 4px; }

.anchor__lbl {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  color: var(--text);
  flex: 1 1 260px;
}

.anchor__lbl small {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted-dim);
  line-height: 1.5;
  max-width: 46ch;
}

.anchor__val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 26px);
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.anchor__val--bad { color: #ff8a8a; }
.anchor__val--good { color: var(--accent); }

.anchor__row--us .anchor__lbl { font-weight: 500; }

@media (max-width: 620px) {
  .anchor__row { flex-direction: column; gap: 6px; padding: 16px 0; }
  /* Al pasar la fila a columna, el eje principal es el vertical y el
     `flex: 1 1 260px` del rótulo dejaba de ser anchura mínima para
     convertirse en 260px de altura forzada: el texto arriba, un hueco
     enorme en medio y la cifra pegada abajo. */
  .anchor__lbl { flex: 0 0 auto; }
  .anchor__val { font-size: 22px; }
}

/* ============================================================
   COMPARATIVA
   ============================================================ */

/* La comparativa va DESPUÉS de los precios. Antes estaba entre el titular
   que promete cifras y las cifras, y ahí sólo estorbaba. */
.vs-intro {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 54px 0 18px;
}

.vs {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.vs__row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr;
  border-bottom: 1px solid var(--line);
}
.vs__row:last-child { border-bottom: none; }

.vs__cell {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.vs__cell--k {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* La columna propia va resaltada de arriba abajo: es la que debe leerse */
.vs__cell--us {
  background: var(--accent-soft);
  border-left: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  color: var(--text);
}
.vs__cell--us b { color: var(--accent); font-weight: 500; }

.vs__row--head .vs__cell {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding-top: 13px;
  padding-bottom: 13px;
}
.vs__row--head .vs__cell--us { color: var(--accent); }

@media (max-width: 720px) {
  .vs__row { grid-template-columns: 1fr; }
  .vs__cell { padding: 10px 16px; }
  .vs__cell--k { padding-top: 16px; padding-bottom: 4px; }
  .vs__cell--us { border-left: 2px solid var(--accent); border-right: none; }
  .vs__row--head { display: none; }
  /* Sin cabecera de columnas hay que decir de quién es cada dato */
  .vs__cell--us::before { content: 'Nosotros: '; color: var(--muted-dim); margin-right: 6px; }
  .vs__cell:last-child::before { content: 'Lo habitual: '; color: var(--muted-dim); margin-right: 6px; }
}

/* ============================================================
   CAPTURA DEL CÁLCULO
   El momento de mayor interés de la página: acaba de ver su
   cifra. Pedimos el email justo ahí, no tres secciones después.
   ============================================================ */

.calc__capture {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.calc__capture-lbl {
  display: block;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.calc__capture-row { display: flex; gap: 9px; flex-wrap: wrap; }

.calc__capture-row input {
  flex: 1 1 190px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease;
}
.calc__capture-row input:focus { border-color: var(--accent-line); }
.calc__capture-row input::placeholder { color: var(--muted-dim); }

.calc__capture-row button {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  flex: 0 0 auto;
}
.calc__capture-row button:hover { background: var(--accent); color: var(--on-accent); }

.calc__capture-msg {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 11px;
  min-height: 17px;
}

/* ============================================================
   DEMO EN VIVO
   ============================================================ */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

.demo__phone {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(170deg, var(--bg-2), var(--bg) 70%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.demo__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 800; font-size: 14px;
  flex: 0 0 auto;
}

.demo__who {
  display: flex; flex-direction: column;
  font-family: var(--ui); font-weight: 500;
  font-size: 10.5px; color: var(--muted-dim); line-height: 1.35;
  flex: 1;
}
.demo__who b { color: var(--text); font-size: 13px; letter-spacing: 0.02em; }

.demo__tag {
  font-family: var(--ui); font-weight: 500;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  padding: 3px 9px;
}

.demo__log {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  max-height: 340px;
  scrollbar-width: thin;
}

.demo__msg {
  font-size: 13.5px;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 82%;
  word-break: break-word;
}

.demo__msg--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.demo__msg--out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.demo__typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.demo__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* Selector de caso: sustituye a la entrada de texto. Una demo escrita
   por el visitante siempre acaba encontrando un hueco del guion; tres
   conversaciones cerradas se ven perfectas siempre. */
.demo__pie {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo__pie-lbl {
  font-family: var(--ui); font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dim);
  flex: 0 0 auto;
}

.demo__casos { display: flex; gap: 6px; flex-wrap: wrap; }

.demo__caso {
  font-family: var(--ui); font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 6px 13px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.demo__caso:hover { color: var(--text); border-color: var(--accent-line); }
.demo__caso.is-on {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.demo__caso:disabled { opacity: 0.4; cursor: default; }


/* --- Panel lateral: la maquinaria --- */

.demo__side-title {
  font-family: var(--ui); font-weight: 500;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.demo__steps { display: flex; flex-direction: column; gap: 1px; margin-bottom: 22px; }

.demo__step {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui); font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
}

.demo__step-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  margin-top: 5px;
  flex: 0 0 auto;
}
.demo__step b { color: var(--text); font-weight: 500; }

.demo__note { font-size: 12.5px; color: var(--muted-dim); line-height: 1.6; }
.demo__note b { color: var(--muted); font-weight: 500; }

/* El panel crece mucho con las piezas visuales: lo dejamos con scroll
   propio para que no estire la sección entera. */
.demo__steps {
  max-height: 470px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}

/* ---------- Piezas visuales de cada paso ---------- */

.wg { margin-top: 10px; }

/* Reloj de apertura: enseña que el mensaje entra con la clínica cerrada */
.wg-horario { display: flex; gap: 2px; align-items: flex-end; height: 30px; }
.wg-horario span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.09);
  height: 45%;
}
.wg-horario span.abierto { background: var(--line-strong); height: 100%; }
.wg-horario span.ahora { background: #ff8a8a; height: 62%; box-shadow: 0 0 10px rgba(255,138,138,.5); }
.wg-pie {
  display: flex; justify-content: space-between;
  font-size: 8.5px; letter-spacing: 0.08em; color: var(--muted-dim); margin-top: 5px;
}

/* Etiquetas de clasificación */
.wg-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wg-tag {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 3px 8px; color: var(--muted-dim);
}
.wg-tag.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

/* Catálogo de precios */
.wg-lista { display: flex; flex-direction: column; gap: 3px; }
.wg-fila {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 10px; color: var(--muted-dim);
  padding: 5px 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.wg-fila.on { background: var(--accent-soft); color: var(--accent); }
.wg-fila b { font-weight: 500; }

/* EL CALENDARIO: la semana llena, sólo libres los huecos ofrecidos */
.wg-cal { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.wg-cal__dias, .wg-cal__fila { display: grid; grid-template-columns: 42px repeat(5, 1fr); }
.wg-cal__dias { background: rgba(255, 255, 255, 0.04); }
.wg-cal__d {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dim); padding: 6px 3px; text-align: center;
}
.wg-cal__h {
  font-size: 9px; color: var(--muted-dim);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line);
}
.wg-cel {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 5px 5px;
  min-height: 38px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1px;
  overflow: hidden;
}
.wg-cel b {
  font-size: 10px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-cel i {
  font-size: 9px; font-style: normal; color: var(--muted-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wg-cel.libre {
  background: rgba(79, 207, 222, 0.18);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 14px rgba(79, 207, 222, 0.25);
}
.wg-cel.libre i { color: rgba(79, 207, 222, 0.75); }
/* Las ocupadas se apagan para que sólo destaquen las libres */
.wg-cel:not(.libre) { opacity: 0.55; }
.wg-cel.libre b { color: var(--accent); }

/* Ficha de paciente y profesional */
.wg-card {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
}
.wg-card__ini {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 9px; flex: 0 0 auto;
}
.wg-card__t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.wg-card__t b { font-size: 10.5px; color: var(--text); font-weight: 500; }
.wg-card__t span { font-size: 9px; color: var(--muted-dim); }

/* Cuenta atrás del hueco retenido */
.wg-reloj {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 800;
  font-size: 17px; color: var(--accent); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wg-reloj small {
  font-family: var(--ui); font-weight: 500; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim);
}

/* Confirmación con tic */
.wg-ok {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 6px; padding: 7px 9px;
}
.wg-ok span {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 8px; flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .wg-cel, .wg-tag, .wg-fila { opacity: 1 !important; }
}

/* ============================================================
   MÓDULO ADICIONAL (voz)
   ============================================================ */

.addon {
  margin-top: clamp(28px, 4vh, 46px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), var(--bg) 70%);
  padding: clamp(26px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 940px) { .addon { grid-template-columns: 1fr; } }

.addon__head h3 { margin-top: 16px; max-width: 16ch; }
.addon__body p + p { margin-top: 16px; }

.addon__price {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-line);
}

.addon__price-setup {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.addon__price-setup small {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.addon__price-monthly {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.addon__price-note {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 12px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 28px 60px 28px 0;
  cursor: pointer;
  position: relative;
  font-family: var(--sans);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s ease;
}

.faq__q:hover { color: var(--accent); }

.faq__q::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ui);
  font-size: 22px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(135deg); }

.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding: 0 60px 30px 0; }

/* El signo + vive en right:8px; reservarle 60px en una pantalla de 390
   se comía el 17% del ancho útil de cada pregunta. */
@media (max-width: 620px) {
  .faq__q { padding-right: 38px; }
  .faq__a-inner { padding-right: 8px; }
}
/* Ojo con ch: mide el ancho del "0", más ancho que la letra media en esta
   fuente, así que 68ch daban 96 caracteres reales. 50ch aterriza en ~70. */
.faq__a-inner p { max-width: 50ch; }

/* ============================================================
   CTA FINAL
   ============================================================ */

.final {
  position: relative;
  padding: clamp(90px, 14vh, 180px) var(--gutter);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* El padding inferior del FAQ y el superior del CTA se sumaban: hasta
   350px de vacío, el doble del ritmo normal entre secciones. Repartimos
   para que el hueco sea el mismo que entre dos secciones cualesquiera. */
.section:has(+ .final) { padding-bottom: clamp(45px, 6vh, 85px); }
.final:has(+ .footer),
.section + .final { padding-top: clamp(45px, 7vh, 90px); }

.final__glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 120vw;
  height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(79, 207, 222, 0.13) 0%, transparent 62%);
  pointer-events: none;
}

.final__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 80px); align-items: start; }

@media (max-width: 940px) { .final__inner { grid-template-columns: 1fr; } }

.final h2 { font-size: clamp(36px, 5.6vw, 82px); margin: 22px 0 26px; }

.form { display: flex; flex-direction: column; gap: 18px; }

.form__field { position: relative; }

.form__field label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 9px;
}

.form__field input, .form__field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.35s ease;
}

.form__field select option { background: var(--bg-2); color: var(--text); }
.form__field input:focus, .form__field select:focus { border-bottom-color: var(--accent); }
.form__field input::placeholder { color: var(--muted-dim); }

.form__legal { font-family: var(--ui);
  font-weight: 500; font-size: 12px; color: var(--muted-dim); line-height: 1.7;
  margin-top: 4px; max-width: 57ch; }

.form__msg {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  min-height: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.footer a:hover { color: var(--accent); }

/* ============================================================
   UTILIDADES
   ============================================================ */

[data-reveal], [data-reveal-group] > * { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .beat { position: relative; opacity: 1 !important; }
}


/* ============================================================
   AJUSTES DE MÓVIL
   Auditado a 360px, que es el ancho de la mayoría de Android.
   ============================================================ */

@media (max-width: 560px) {
  /* Las etiquetas de interfaz a 10-11px se leen mal en la mano.
     Subimos sólo en móvil: en escritorio funcionaban bien. */
  .eyebrow, .label, .beat__eyebrow, .calc__field-label,
  .calc__row-label, .plan__name, .scard__idx, .hud__scroll,
  .demo__pie-lbl, .vs__cell--k, .stat__label { font-size: 12px; }

  .source-note, .form__legal { font-size: 12px; }
  .scard__metric, .demo__note { font-size: 13px; }

  /* Zona de toque cómoda en los enlaces del pie */
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* El pulgar no acierta en una barra de 3px: en táctil la engordamos
   sin tocar el aspecto en escritorio. */
@media (hover: none), (pointer: coarse) {
  /* 6px de barra + 17px de padding arriba y abajo = 40px de zona útil.
     El box-sizing es content-box a propósito (ver la regla base): con
     border-box el padding se comería la barra y el relleno de marca
     desaparecía, que es justo lo que pasaba. */
  input[type=range] { height: 6px; padding: 17px 0; background-clip: content-box; }
  input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type=range]::-moz-range-thumb { width: 26px; height: 26px; }

  /* Los tres botones de la demo medían 31px: por debajo del mínimo con
     el que el pulgar acierta sin apuntar. */
  .demo__caso { min-height: 40px; padding-top: 0; padding-bottom: 0; }
  .nav__brand { display: inline-flex; align-items: center; min-height: 44px; }

  /* Sin cursor no hay hover: los estados activos se ven al tocar */
  .demo__caso:active { background: var(--accent); color: var(--on-accent); }
  .btn:active { transform: scale(0.98); }
}

/* Debajo de 400px el aire lateral se come el contenido */
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .plan, .addon, .calc, .anchor { padding-left: 20px; padding-right: 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(n) { border-right: none; border-bottom: 1px solid var(--line); }
}

/* Bloque de confianza: tres columnas, pero desde CSS para que las
   media queries puedan colapsarlo. En línea ganaba siempre y a 360px
   metía tres columnas en 324px de ancho. */
.stats--tres { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .stats--tres { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .stats--tres { grid-template-columns: 1fr; } }


/* ============================================================
   SUITE EN VENTANAS BAJAS
   El carrusel horizontal es lo que hace especial esta sección, así
   que no se toca: lo que se comprime es la tarjeta, para que la
   micro-escena siga cabiendo sin cambiar de formato.
   ============================================================ */

@media (min-width: 781px) and (max-height: 900px) {
  .suite__stage { padding-top: clamp(88px, 12vh, 120px); padding-bottom: 18px; gap: 16px; }
  .suite__intro h2 { font-size: clamp(24px, 4.6vh, 38px); margin-top: 8px; }
  .suite__intro .eyebrow { font-size: 10px; }

  .scard { padding: 22px 20px; }
  .scard__idx { margin-bottom: 12px; font-size: 10px; }
  .scard__viz { margin-bottom: 14px; gap: 6px; }
  .scard h3 { font-size: clamp(17px, 2.3vh, 21px); margin-bottom: 8px; }
  .scard p { font-size: 13px; line-height: 1.45; }
  .scard__metric { margin-top: 12px; padding-top: 11px; font-size: 9.5px; }
}

@media (min-width: 781px) and (max-height: 760px) {
  /* Aquí ya no cabe todo: la escena manda y el párrafo se recorta a
     tres líneas, que es lo que el ojo lee en una tarjeta de todos modos. */
  .scard p {
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .scard__metric { display: none; }
}
