/* ============================================================================
   baqqo para restaurantes · landing.css — base + navegación + hero + cuerpo (variante A)
   Estructura narrativa estilo Bee, ejecutada con tokens-bq2 (Urbanist, rojo Baqqo).
   Movimiento sobrio por scroll con IntersectionObserver (sin CDN/GSAP) — ver landing.js.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* overflow-x:clip (no 'hidden'): evita scroll horizontal SIN convertir html/body en
   contenedor de scroll — 'hidden' fuerza overflow-y:auto y rompe position:sticky y el
   scroll de la página. 'clip' mantiene overflow-y:visible. */
html, body { overflow-x: clip; max-width: 100%; }

/* Override de escala tipográfica fluida (−30% aprox.) para que a zoom 100% el contenido
   entre "de una pasada" por slide. NO se toca tokens-bq2.css: estos valores pisan los
   tokens en cascada solo dentro de esta landing. */
:root {
  --bq2-fs-hero: clamp(1.9rem, 5vw, 3.7rem);
  --bq2-fs-h2:   clamp(1.4rem, 3vw, 2.3rem);
  --bq2-fs-lead: clamp(0.95rem, 1.2vw, 1.05rem);
  --bq2-pad:     clamp(16px, 4vw, 48px);
}
body {
  margin: 0;
  font-family: var(--bq2-font);
  font-size: var(--bq2-fs-body);
  line-height: 1.55;
  color: var(--bq2-ink);
  background: var(--bq2-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Sin cursor de inserción parpadeante sobre texto de lectura (aparece con la "navegación
   con cursor" del navegador, F7 en Chrome/Edge). El texto SIGUE siendo seleccionable
   (accesibilidad, copiar); solo se oculta el caret. Los campos editables lo recuperan. */
body { caret-color: transparent; }
input, textarea, select, [contenteditable] { caret-color: auto; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--bq2-maxw); margin-inline: auto; padding-inline: var(--bq2-pad); }

/* ── Botones (pills, estilo Bee/Revolut) ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; letter-spacing: -0.01em;
  padding: .7em 1.3em; border-radius: var(--bq2-r-pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--bq2-ease), background .18s, color .18s, border-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--bq2-accent); color: var(--bq2-accent-ink); }
.btn-primary:hover { background: var(--bq2-accent-deep); }
.btn-lg { padding: .85em 1.6em; font-size: .95rem; }
/* botón ghost con efecto cristal (blur + fondo translúcido) en vez de solo borde */
.btn-ghost {
  background: rgba(255,255,255,.35); color: var(--bq2-ink); border-color: var(--bq2-line);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.btn-ghost:hover { border-color: var(--bq2-ink); background: rgba(255,255,255,.5); }
/* sobre fondo oscuro: cristal claro translúcido */
.on-dark .btn-ghost {
  color: var(--bq2-on-dark); border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.on-dark .btn-ghost:hover { border-color: var(--bq2-on-dark); background: rgba(255,255,255,.2); }

/* ── Header GLASS flotante (estilo Bee) ────────────────────────────────── */
/* píldora flotante centrada con blur; al abrir el menú, scrim + panel con secciones. */
.navc { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; justify-content: center;
  padding: 16px var(--bq2-pad); pointer-events: none;
  transition: opacity .35s var(--bq2-ease), visibility .35s var(--bq2-ease); }
@media (prefers-reduced-motion: reduce) { .navc { transition: none; } }
.navc__scrim {
  position: fixed; inset: 0; z-index: -1; background: rgba(10,8,7,.55);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--bq2-ease), visibility .35s;
  backdrop-filter: blur(2px); pointer-events: auto;
}
.navc.open .navc__scrim { opacity: 1; visibility: visible; }

.nav {
  pointer-events: auto;
  /* Ancho FIJO e igual en cerrado y abierto: así la barra superior (logo, Inicio,
     Suscribirse, ✕) NO se mueve al desplegar; solo crece el panel hacia abajo.
     La barra reparte logo↔acciones (space-between), como Bee. */
  width: min(420px, calc(100vw - 2 * var(--bq2-pad)));
  display: flex; flex-direction: column;
  background: rgba(28,22,20,.42); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  /* radio FIJO (no se anima): evita el "rebote de balón". */
  border-radius: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.28);
  color: var(--bq2-on-dark);
  transition: background .35s var(--bq2-ease);
  overflow: hidden;
}
/* cuando la nav flota sobre fondo CLARO (al scrollear fuera del hero), píldora clara.
   Opacidad baja a propósito (antes .72) para dejar pasar más la luz del fondo; mismo
   nivel .42 que la píldora oscura por defecto, solo cambia el canal de color. */
.navc.on-light .nav { background: rgba(255,255,255,.42); border-color: var(--bq2-line); color: var(--bq2-ink); }
.navc.on-light .nav .btn-ghost { color: var(--bq2-ink); border-color: var(--bq2-line); }

/* barra: logo a la izquierda, acciones a la derecha (space-between) — ancho fijo de la tarjeta */
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 20px; }
.nav__logo-link { display: inline-flex; flex: 0 0 auto; }
.nav__logo { height: 20px; width: auto; }
.navc:not(.on-light) .nav__logo-dark { display: none; }
.navc.on-light .nav__logo-light { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
/* botones homogéneos: Inicio y Suscribirse con el MISMO ancho */
.nav__actions .btn { padding: .55em 1em; font-size: .9rem; min-width: 112px; }
.navc:not(.on-light) .btn-ghost { color: var(--bq2-on-dark); border-color: rgba(255,255,255,.28); }

/* botón hamburguesa / cerrar */
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent;
  background: transparent; color: inherit; cursor: pointer; flex: 0 0 auto;
  transition: background .2s;
}
.nav__burger:hover { background: rgba(127,127,127,.14); }
.nav__burger svg { width: 19px; height: 19px; }
.nav__burger .ic-close { display: none; }
.navc.open .nav__burger .ic-open { display: none; }
.navc.open .nav__burger .ic-close { display: inline; }

/* panel de secciones (se despliega bajo la barra al abrir) */
.nav__panel {
  max-height: 0; opacity: 0; overflow: hidden;
  /* visibility: cerrado, sus enlaces salen del orden de tabulación (antes se enfocaban invisibles) */
  visibility: hidden;
  transition: max-height .4s var(--bq2-ease), opacity .3s, visibility .4s;
  padding-inline: 10px;
}
.navc.open .nav__panel { max-height: 420px; opacity: 1; visibility: visible; padding-bottom: 12px; }
.nav__links { display: flex; flex-direction: column; padding: 6px; }
.nav__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--bq2-r-m); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.02em; transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(127,127,127,.12); color: var(--bq2-accent); }
.navc:not(.on-light) .nav__links a:hover { color: #e8a39d; }
.nav__links .nav__tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--bq2-r-pill);
  background: var(--bq2-accent); color: var(--bq2-accent-ink);
}

/* texto del botón de login: «Iniciar sesión» en desktop, «Entrar» en móvil (DECISIÓN CERRADA 2026-11-09) */
#nav-login .t-short { display: none; }

@media (max-width: 560px) {
  .navc { padding: 10px 14px; }
  .nav__bar { padding: 7px 8px 7px 16px; gap: 10px; }
  /* el botón de login se queda en el header pero como «Entrar» (ocupa menos) */
  #nav-login .t-full { display: none; }
  #nav-login .t-short { display: inline; }
  .nav__actions .btn { padding: .5em .7em; font-size: .85rem; min-width: 92px; }
  .nav__actions { gap: 6px; }
  .nav__burger { width: 34px; height: 34px; }
  .nav__burger svg { width: 18px; height: 18px; }
  .nav__logo { height: 18px; }
}
@media (max-width: 400px) {
  .navc { padding: 8px 10px; }
  .nav__bar { gap: 8px; padding: 6px 6px 6px 12px; }
  .nav__actions .btn { padding: .46em .5em; font-size: .8rem; min-width: 78px; }
  .nav__burger { width: 32px; height: 32px; }
  .nav__logo { height: 16px; }
}

/* ── HERO (foto a sangre + scrim, texto centrado estilo eslogan Bee) ───── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--bq2-on-dark);
  background-color: var(--bq2-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; height: 100%;
  background-image: url('../assets/pictures/copas-fondo.webp');
  background-size: cover; background-position: center 35%;
}
/* hasta 760 px basta la versión de 1200 px de ancho (la mitad de peso) */
@media (max-width: 760px) { .hero__bg { background-image: url('../assets/pictures/copas-fondo-1200.webp'); } }
/* scrim uniforme (más oscuro abajo) para que el titular centrado lea bien
   sobre cualquier zona de la foto */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bq2-dark) 45%, transparent) 0%,
    color-mix(in srgb, var(--bq2-dark) 30%, transparent) 50%,
    color-mix(in srgb, var(--bq2-dark) 55%, transparent) 100%);
}
.hero__inner {
  position: relative; z-index: 2; text-align: center; padding-block: 120px 90px;
  display: flex; flex-direction: column; align-items: center;
}
/* desktop: bloque centrado (texto incluido), subido un pelín, estilo eslogan Bee */
@media (min-width: 761px) {
  .hero__inner { transform: translateY(-4vh); }
  .hero__title { margin-inline: auto; }
}
/* móvil: anclar el bloque entre el 1er y 2o tercio vertical (más arriba que el centro) */
@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero__inner { padding-block: 0; justify-content: flex-start; padding-top: 24vh; min-height: 100%; }
  /* usar la parte DERECHA de la foto (copa de tinto + botella): anclamos el borde
     derecho de la imagen al borde derecho del dispositivo y recortamos por la izquierda */
  .hero__bg { background-position: right center; }
}
.hero__eyebrow {
  display: inline-block; font-weight: 600; font-size: var(--bq2-fs-small);
  letter-spacing: .06em; text-transform: uppercase; color: var(--bq2-on-dark-soft);
  margin-bottom: 24px;
}
.hero__title {
  font-size: var(--bq2-fs-hero); max-width: 15ch; margin-bottom: 40px;
  text-wrap: balance;
}
.hero__title .accent { color: #e8a39d; } /* rojo aclarado, legible sobre oscuro */

/* ── Indicador de scroll (hero) ──────────────────────────────────────────
   Restaurado tal cual de la web anterior (owner, 2026-11-12): banda inferior con desenfoque progresivo
   (backdrop-filter + máscara en degradado: nítido arriba, más difuminado abajo) y una línea fina por la que baja un
   trazo. Entra con retardo tras el titular y se va al primer scroll. */
.scroll-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: clamp(110px, 16vh, 160px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  color: var(--bq2-on-dark-soft); text-decoration: none;
  /* OJO: NO animar opacity en este contenedor. Un ancestro con opacity < 1 crea un "backdrop root" y el
     backdrop-filter del ::before no difumina nada hasta llegar a 1 (el texto aparecía gradualmente y el degradado
     saltaba de golpe al final). Por eso cada capa anima por separado: primero el desenfoque, luego texto + línea. */
}
.scroll-hint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 85%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 85%);
  transition: backdrop-filter .35s var(--bq2-ease), -webkit-backdrop-filter .35s var(--bq2-ease);
}
.scroll-hint__label, .scroll-hint__line {
  opacity: 0; transition: opacity .3s var(--bq2-ease), transform .3s var(--bq2-ease);
}
/* entrada (JS añade .is-on al cargar): desenfoque a 1.4s, texto + línea 150ms después */
.scroll-hint.is-on::before {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition-duration: .8s; transition-delay: 1.4s;
}
.scroll-hint.is-on .scroll-hint__label,
.scroll-hint.is-on .scroll-hint__line { opacity: 1; transition-duration: .7s; transition-delay: 1.55s; }
.scroll-hint__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.scroll-hint__line { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgba(255,255,255,.22); }
.scroll-hint__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--bq2-on-dark); animation: hint-drop 1.8s var(--bq2-ease) infinite;
}
.scroll-hint:hover, .scroll-hint:focus-visible { color: var(--bq2-on-dark); }
.scroll-hint:focus-visible { outline: 2px solid var(--bq2-on-dark); outline-offset: -6px; border-radius: 8px; }
/* salida: texto + línea se van primero y el desenfoque se deshace a la vez, sin saltos */
.scroll-hint.is-gone { pointer-events: none; }
.scroll-hint.is-gone .scroll-hint__label,
.scroll-hint.is-gone .scroll-hint__line { opacity: 0; transform: translateY(8px); transition-duration: .3s; transition-delay: 0s; }
.scroll-hint.is-gone::before { backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition-duration: .35s; transition-delay: 0s; }
@keyframes hint-drop { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint.is-on::before { transition: none; }
  .scroll-hint.is-on .scroll-hint__label, .scroll-hint.is-on .scroll-hint__line { transition: none; }
  .scroll-hint__line::after { animation: none; top: 30%; }
}

.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
/* botones ghost sobre fondo oscuro (hero y secciones oscuras): cristal claro translúcido.
   El cierre (.section--closing) NO va aquí: sus botones se sientan sobre fondo claro
   (--bq2-bg), así que usan el estilo por defecto (cristal oscuro sobre claro). */
.hero .btn-ghost,
.s--dark .btn-ghost,
.closing .btn-ghost {
  color: var(--bq2-on-dark); border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.hero .btn-ghost:hover,
.s--dark .btn-ghost:hover,
.closing .btn-ghost:hover {
  border-color: #fff; background: rgba(255,255,255,.2);
}

/* ── Animación de entrada por scroll (JS añade .in) ────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--bq2-ease), transform .7s var(--bq2-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ════════════════════ TIPOGRAFÍA DE SECCIÓN ════════════════════ */
.eyebrow {
  display: inline-block; font-weight: 700; font-size: var(--bq2-fs-small);
  letter-spacing: .06em; text-transform: uppercase; color: var(--bq2-accent); margin-bottom: 14px;
}
.h2 { font-size: var(--bq2-fs-h2); max-width: 24ch; text-wrap: balance; }
.lead { font-size: var(--bq2-fs-lead); font-weight: 500; color: var(--bq2-ink-soft); margin-top: 16px; max-width: 52ch; line-height: 1.5; }
.hot { color: var(--bq2-accent); font-weight: 700; }

/* Listas con check: las usa el modal de auth (.auth-feats, .plan-opt__feats). */
.plan__feats { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan__feats li { display: flex; gap: 10px; color: var(--bq2-ink-soft); }
.plan__feats li::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px;
  background: var(--bq2-accent-soft); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan__feats li.on::before { background: var(--bq2-accent); }
/* feature NO incluida: misma pastilla, icono de X (en vez de check) y en tono apagado
   para que lea como "ausente" sin gritar. */
.plan__feats li.off { color: var(--bq2-ink-faint); }
.plan__feats li.off::before {
  background: var(--bq2-ink-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7 4.3 4.3l6.3 6.3L16.9 4.3z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7 4.3 4.3l6.3 6.3L16.9 4.3z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ═══ CUERPO · variante A (2026-11-09) ═══
   Una sección por pantalla en desktop (≥1024 px), sin scroll-lock; en tablet y móvil el mismo
   contenido apilado y sin alto mínimo. Nada se oculta por ancho. Fragmentos ui-* = producto real
   en HTML (portados de los mockups), con los datos de la carta demo de El Secreto. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* saltar al contenido (visible solo al recibir foco) */
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--bq2-ink); color: var(--bq2-bg-elev);
  padding: 10px 16px; border-radius: var(--bq2-r-s); font-weight: 700; }
.skip:focus { top: 12px; }

/* foco visible en la landing (en oscuro, rojo aclarado para que contraste) */
.skip:focus-visible, .navc :focus-visible, main :focus-visible, .closing :focus-visible {
  outline: 2px solid var(--bq2-accent); outline-offset: 3px; border-radius: 10px;
}
.navc:not(.on-light) :focus-visible, .hero :focus-visible, .s--dark :focus-visible, .closing :focus-visible { outline-color: #e8a39d; }

/* lo que el JS de las demos activa (FEAT-002) sigue oculto hasta entonces, aunque su clase tenga display */
main [hidden] { display: none !important; }

/* hero: dato duro bajo los botones */
.hero__fact { margin-top: 18px; font-size: .9rem; color: var(--bq2-on-dark-soft); }

/* sección = pantalla. El padding superior ya deja sitio al header flotante (no hace falta más
   scroll-margin para las anclas del menú).
   WCAG 2.4.11 (2026-11-09): el scroll-padding-top de html evita que el header fijo tape el elemento
   enfocado al tabular (sobre todo hacia atrás); el scroll-margin-top negativo de .s lo anula para las
   anclas del menú, que siguen llevando la sección a ras del borde superior, como antes. */
html { scroll-padding-top: 96px; }
.s { position: relative; padding-block: 120px 72px; scroll-margin-top: -96px; }
@media (min-width: 1024px) {
  .s { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
.s--sunken { background: var(--bq2-bg-sunken); }
.s--dark { background: var(--bq2-dark); color: var(--bq2-on-dark); }
.s--dark .eyebrow { color: #e8a39d; }
.s--dark .lead { color: var(--bq2-on-dark-soft); }

/* ── 2 · POR QUÉ = cabecera de «Qué es baqqo» (v4, DECISIÓN CERRADA del owner 2026-11-09) ──
   Rompe a propósito la regla de una pantalla por sección: el pitch tiene su espaciado normal y da paso, sin hueco,
   a la demo viva del comensal. #que-es deja de centrarse en su propia pantalla y arranca justo debajo; su ancla del
   menú sigue cayendo bajo el header flotante (scroll-margin-top 0 + el scroll-padding-top de html). */
#por-que { min-height: 0; padding-block: 112px 0; }
#que-es { min-height: 0; padding-top: 72px; scroll-margin-top: 0; }
@media (max-width: 1023px) {
  #por-que { padding-block: 88px 0; }
  #que-es { padding-top: 56px; }
}

/* ── 2 · POR QUÉ: titular a la izquierda + 3 preguntas ── */
.why { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; align-items: start; }
.why__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; max-width: 18ch; text-wrap: balance; }
.why__item { border-top: 2px solid var(--bq2-accent); padding-top: 14px; }
.why__item h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
.why__item p { color: var(--bq2-ink-soft); font-size: .98rem; }

/* ── 3 · QUÉ ES: capacidades a la izquierda, comensal a la derecha ── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.caps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; max-width: 48ch; }
.caps li { position: relative; display: grid; grid-template-columns: 2.6em 1fr; padding: 14px 0 14px 14px;
  border-top: 1px solid var(--bq2-line); }
.caps li:last-child { border-bottom: 1px solid var(--bq2-line); }
/* barra lateral del estado .is-on (la pone la demo del comensal cuando enseña esa capacidad) */
.caps li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: var(--bq2-accent); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--bq2-ease); }
.caps__n { color: var(--bq2-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.caps b { display: block; font-size: 1.05rem; line-height: 1.3; transition: color .3s var(--bq2-ease); }
.caps li div > span { display: block; color: var(--bq2-ink-soft); font-size: .95rem; margin-top: 2px; }
.caps li.is-on::before { transform: scaleY(1); }
.caps li.is-on b { color: var(--bq2-accent); }
@media (prefers-reduced-motion: reduce) { .caps li::before, .caps b { transition: none; } }

.demo-toggle { min-height: 44px; padding: 0 18px; border-radius: var(--bq2-r-pill); border: 1px solid var(--bq2-line);
  background: var(--bq2-bg-elev); color: var(--bq2-ink-soft); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: color .2s, border-color .2s; }
.demo-toggle:hover { color: var(--bq2-ink); border-color: var(--bq2-ink-soft); }

/* ── 4 · TU PANEL: un cuadro grande con carrusel (scroll-snap nativo = swipe sin JS) ── */
.pcar { margin-top: clamp(24px, 4vh, 40px); background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line);
  border-radius: var(--bq2-r-l); box-shadow: var(--bq2-shadow); overflow: hidden; }
.pcar__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pcar__track::-webkit-scrollbar { display: none; }
main .pcar__track:focus-visible { outline-offset: -4px; border-radius: var(--bq2-r-l); }
.pcar__slide { scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); }
@media (min-width: 1024px) {
  /* alto estable entre diapositivas; tope para que la sección siga cabiendo en una pantalla */
  .pcar__slide { min-height: min(calc(100svh - 360px), 560px); }
}
.pcar__text h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; text-wrap: balance; }
.pcar__text p { margin-top: 12px; color: var(--bq2-ink-soft); max-width: 40ch; }
.pcar__stage { background: var(--bq2-bg-sunken); border-radius: var(--bq2-r-m); padding: clamp(20px, 3vw, 36px);
  display: flex; justify-content: center; align-items: center; min-height: 320px; height: 100%; min-width: 0; }
.pcar__stage .ui-panel { width: 100%; max-width: 460px; }
.pcar__nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 4px 16px 16px; }
.pcar__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bq2-line); background: var(--bq2-bg);
  color: var(--bq2-ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .2s, background .2s; }
.pcar__btn:hover { border-color: var(--bq2-ink-soft); background: var(--bq2-bg-elev); }
.pcar__btn[disabled] { opacity: .4; cursor: default; }
.pcar__btn svg { width: 20px; height: 20px; }
.pcar__pos { min-width: 4ch; text-align: center; font-size: .9rem; font-weight: 700; color: var(--bq2-ink-soft); font-variant-numeric: tabular-nums; }
.pcar__dots { display: flex; }
.pcar__dot { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.pcar__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--bq2-r-pill); background: var(--bq2-ink-faint);
  transition: width .25s var(--bq2-ease), background .25s; }
.pcar__dot[aria-current="true"]::before { width: 22px; background: var(--bq2-accent); }
@media (prefers-reduced-motion: reduce) { .pcar__track { scroll-behavior: auto; } .pcar__dot::before { transition: none; } }

/* ── 5 · CÓMO EMPEZAR: foto + 6 pasos (entran escalonados con .reveal dN) ── */
.steps-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; margin-top: 32px; }
.steps-photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: left center; border-radius: var(--bq2-r-l); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; align-content: center; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3em 1fr; padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.steps li::before { content: counter(s, decimal-leading-zero); color: #e8a39d; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps small { display: block; font-weight: 500; color: var(--bq2-on-dark-soft); font-size: .92rem; margin-top: 2px; }

/* ── 6 · PRECIOS ── */
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center .h2, .center .lead { margin-inline: auto; }
#precios .wl-landing { background: var(--bq2-accent-soft); border-color: transparent; color: var(--bq2-accent-deep); }
.m-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 860px; margin: 40px auto 0; text-align: left; }
.m-plan { background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: var(--bq2-r-l);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: var(--bq2-shadow); }
.m-plan.is-featured { border-color: var(--bq2-accent); box-shadow: 0 0 0 2px var(--bq2-accent-soft), var(--bq2-shadow-lg); }
.m-plan__name { font-weight: 700; color: var(--bq2-ink-soft); }
.m-plan__badge { position: absolute; top: -12px; left: 24px; background: var(--bq2-accent); color: var(--bq2-accent-ink);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: var(--bq2-r-pill); }
.m-plan__price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-plan__price small { font-size: .95rem; font-weight: 600; color: var(--bq2-ink-soft); letter-spacing: 0; }
.m-plan__extra { font-size: .92rem; color: var(--bq2-ink-soft); }
.m-plan__extra b { color: var(--bq2-ink); }
.m-plan__save { font-size: .92rem; font-weight: 700; color: var(--bq2-ok); }
.m-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.m-feats li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.m-feats li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--bq2-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }
.m-plan .btn { margin-top: auto; width: 100%; min-height: 48px; }
.m-note { margin-top: 20px; font-size: .85rem; color: var(--bq2-ink-soft); }

/* ── 7 · CIERRE + PIE (fuera de main) ── */
.closing { display: grid; grid-template-rows: 1fr auto; background: var(--bq2-dark); color: var(--bq2-on-dark); }
@media (min-width: 1024px) { .closing { min-height: 100svh; } }
.closing__cta { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--bq2-pad) 48px; }
.closing__cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 18ch; text-wrap: balance; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.foot { border-top: 1px solid rgba(255, 255, 255, .12); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 16px; flex-wrap: wrap; }
.foot__logo { height: 20px; width: auto; }
.closing__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; color: var(--bq2-on-dark-soft); font-size: var(--bq2-fs-small); }
/* 12 px arriba y abajo: objetivo táctil de 44 px */
.closing__legal a, .closing__legal span { padding-block: 12px; }
.closing__legal a { text-decoration: underline; text-underline-offset: 3px; }
.closing__legal a:hover { color: var(--bq2-on-dark); }

/* ── Fragmentos de producto real (vista del comensal y panel), portados de los mockups ── */
/* La pantalla se estira con flex, NO con height:100%: en Safari iOS un hijo con height:100% de una caja cuyo alto sale
   de aspect-ratio no resuelve el porcentaje, la pantalla crece con el contenido y el marco recorta la caja de texto
   por abajo (lo vio el owner en el iPhone, 2026-11-12). Con flex + min-height:0 el chat absorbe el sobrante. */
.ui-phone { width: 300px; max-width: 100%; aspect-ratio: 300 / 610; background: var(--bq2-bg); border-radius: 40px; padding: 10px;
  box-shadow: 0 0 0 1px var(--bq2-line), var(--bq2-shadow-lg); position: relative; overflow: hidden; font-size: 13px; color: var(--bq2-ink);
  display: flex; flex-direction: column; }
.ui-phone__screen { flex: 1 1 0; min-height: 0; border-radius: 31px; overflow: hidden; background: var(--bq2-bg);
  display: flex; flex-direction: column; border: 1px solid var(--bq2-line); }
.ui-phone__screen > .ui-input, .ui-phone__screen > .ui-rest, .ui-phone__screen > .ui-tabs { flex: none; }
.ui-panel { background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: var(--bq2-r-m);
  box-shadow: var(--bq2-shadow); font-size: 13px; color: var(--bq2-ink); overflow: hidden; }
.ui-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--bq2-line); font-weight: 700; font-size: 14px; }
.ui-panel__head small { font-weight: 500; color: var(--bq2-ink-soft); font-size: 12px; }
.ui-panel__head--sub { border-top: 1px solid var(--bq2-line); }
/* comensal: cabecera + pestañas */
.ui-rest { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.ui-rest img { height: 26px; width: auto; }
.ui-rest__agent { margin-left: auto; text-align: right; line-height: 1.2; }
.ui-rest__agent b { display: block; font-size: 13px; }
.ui-rest__agent span { font-size: 11px; color: var(--bq2-ink-soft); }
.ui-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 12px 8px; padding: 4px;
  background: var(--bq2-bg-sunken); border-radius: var(--bq2-r-pill); }
.ui-tabs span { text-align: center; padding: 6px 0; border-radius: var(--bq2-r-pill); font-weight: 700; font-size: 12px; color: var(--bq2-ink-soft); }
.ui-tabs span.on { background: var(--bq2-bg-elev); color: var(--bq2-ink); box-shadow: var(--bq2-shadow); }
/* comensal: chat */
.ui-chat { flex: 1; min-height: 0; overflow: hidden; padding: 4px 12px; display: flex; flex-direction: column; gap: 8px; }
.ui-msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; line-height: 1.4; }
.ui-msg--bot { background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-bottom-left-radius: 6px; }
.ui-msg--me { align-self: flex-end; background: var(--bq2-accent); color: var(--bq2-accent-ink); border-bottom-right-radius: 6px; }
.ui-wine { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: 14px; padding: 8px 10px; }
.ui-wine.is-top { border-color: var(--bq2-accent); box-shadow: 0 0 0 2px var(--bq2-accent-soft); }
.ui-wine img { width: 34px; height: 46px; object-fit: contain; background: var(--bq2-photo-bg); border-radius: 6px; }
.ui-wine b { display: block; font-size: 12.5px; line-height: 1.2; }
.ui-wine small { color: var(--bq2-ink-soft); font-size: 11px; }
.ui-wine__price { text-align: right; font-weight: 800; font-size: 13px; }
.ui-wine__price small { display: block; font-weight: 600; color: var(--bq2-accent); }
.ui-input { margin: 8px 12px 12px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: var(--bq2-r-pill); color: var(--bq2-ink-soft); font-size: 12px; }
.ui-input i { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bq2-accent);
  display: grid; place-items: center; color: var(--bq2-accent-ink); font-style: normal; }
.ui-input i svg { width: 14px; height: 14px; }
/* comensal: demo viva (js/landing-demos.js; sin JS o con reduced-motion no se usa nada de esto) */
#diner-demo.is-live .ui-chat { justify-content: flex-end; }
.ui-msg.is-new, .ui-wine.is-new { animation: bq-msg-in .35s var(--bq2-ease) both; }
@keyframes bq-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ui-typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.ui-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bq2-ink-soft); animation: bq-dot 1s ease-in-out infinite; }
.ui-typing i:nth-child(2) { animation-delay: .15s; }
.ui-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bq-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.ui-input__t.is-filled { color: var(--bq2-ink); }
.ui-add { display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: var(--bq2-r-pill); border: 1px solid var(--bq2-accent);
  color: var(--bq2-accent); font-size: 11px; font-weight: 700; transition: background .2s, color .2s, transform .15s var(--bq2-ease); }
.ui-add.is-pressed { transform: scale(.9); }
.ui-add.is-added { background: var(--bq2-accent); color: var(--bq2-accent-ink); }
.ui-selbar { margin: 4px 12px 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px;
  background: var(--bq2-accent-soft); color: var(--bq2-ink); font-size: 11.5px; line-height: 1.3; animation: bq-msg-in .35s var(--bq2-ease) both; }
.ui-selbar b { color: var(--bq2-accent); white-space: nowrap; }
.ui-carta__list { display: flex; flex-direction: column; gap: 6px; }
.ui-carta .ui-wine { padding: 6px 10px; }
#diner-demo.is-paused * { animation-play-state: paused !important; }
/* comensal: carta (la enseña la demo animada) */
.ui-carta { padding: 4px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow: hidden; }
.ui-carta h4 { margin: 6px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bq2-accent); }
/* panel: estadísticas */
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bq2-line); }
.ui-kpi { background: var(--bq2-bg-elev); padding: 12px 16px; min-width: 0; }
.ui-kpi small { display: block; color: var(--bq2-ink-soft); font-size: 11.5px; }
.ui-kpi b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-bars { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 10px; }
.ui-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center; }
.ui-bars span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-bars em { font-style: normal; text-align: right; color: var(--bq2-ink-soft); font-variant-numeric: tabular-nums; }
.ui-bars .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--bq2-bg-sunken); overflow: hidden; }
.ui-bars .bar::before { content: ""; display: block; height: 100%; width: var(--v); background: var(--bq2-accent); border-radius: 3px; }
/* panel: copa / botella, carta y disponibilidad */
.ui-serve { list-style: none; margin: 0; padding: 6px 16px 12px; }
.ui-serve li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--bq2-line); }
.ui-serve li:last-child { border-bottom: 0; }
.ui-serve img { width: 30px; height: 40px; object-fit: contain; }
.ui-serve b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-serve small { color: var(--bq2-ink-soft); font-size: 11px; }
.ui-serve li.is-off img, .ui-serve li.is-off b { opacity: .5; }
.ui-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.ui-pill { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--bq2-r-pill);
  border: 1px solid var(--bq2-line); color: var(--bq2-ink-soft); white-space: nowrap; }
.ui-pill.on { background: var(--bq2-accent-soft); border-color: transparent; color: var(--bq2-accent); }
.ui-pill--off { background: var(--bq2-bg-sunken); border-color: transparent; color: var(--bq2-danger); }
/* panel: maridajes plato → vino */
.ui-pairs { list-style: none; margin: 0; padding: 4px 16px 10px; }
.ui-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--bq2-line); }
.ui-pairs li:last-child { border-bottom: 0; }
.ui-pairs span { color: var(--bq2-ink-soft); }
.ui-pairs b { font-size: 12.5px; }
.ui-pairs i { position: relative; height: 1.5px; background: var(--bq2-accent); border-radius: 1px; }
.ui-pairs i::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px;
  border-top: 1.5px solid var(--bq2-accent); border-right: 1.5px solid var(--bq2-accent); transform: translateY(-50%) rotate(45deg); }
/* panel: marca y equipo */
.ui-brand { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.ui-brand img { height: 28px; width: auto; }
.ui-brand small { display: block; color: var(--bq2-ink-soft); font-size: 11.5px; }
.ui-brand b { font-size: 16px; }
.ui-staff { list-style: none; margin: 0; padding: 4px 16px 12px; }
.ui-staff li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--bq2-line); }
.ui-staff li:last-child { border-bottom: 0; }
/* cartel de mesa con QR (el QR real lo pinta js/landing-demos.js con js/qr.js) */
.tents { display: flex; gap: 16px; justify-content: center; }
.tents .ui-tent:nth-child(2) { transform: translateY(18px); }
.ui-tent { background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: var(--bq2-r-m);
  padding: 18px; text-align: center; box-shadow: var(--bq2-shadow); width: 200px; max-width: 100%; }
.ui-tent img { height: 22px; width: auto; margin: 0 auto 10px; }
.ui-qr { display: block; width: 100%; aspect-ratio: 1; background: var(--bq2-photo-bg); border-radius: 8px; overflow: hidden; }
.ui-qr:empty { background: var(--bq2-bg-sunken); }
.ui-qr svg { display: block; width: 100%; height: auto; }
.ui-tent b { display: block; margin-top: 10px; font-size: 15px; }
.ui-tent small { color: var(--bq2-ink-soft); font-size: 12px; }

/* ── Tablet y móvil: mismo contenido, apilado; nada se oculta ── */
@media (max-width: 1100px) {
  .why { grid-template-columns: repeat(3, 1fr); }
  .why__title { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 1023px) {
  .s { padding-block: 96px 64px; }
  .split, .steps-wrap { grid-template-columns: 1fr; }
  .pcar__slide { grid-template-columns: 1fr; align-items: start; }
  .steps-photo { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .closing__cta { padding-top: 96px; }
}
@media (max-width: 640px) {
  .why { grid-template-columns: 1fr; gap: 24px; }
  .pcar__slide { padding: 20px; gap: 20px; }
  .pcar__stage { padding: 16px 12px; min-height: 0; }
  .pcar__dots { order: 3; width: 100%; justify-content: center; }
  .tents { gap: 12px; }
  .tents .ui-tent { width: 46%; padding: 12px; }
  .ui-serve li { grid-template-columns: 30px minmax(0, 1fr); }
  .ui-serve .ui-pills { grid-column: 2; }
  .ui-staff li { grid-template-columns: minmax(0, 1fr) auto; }
  .ui-staff li b { grid-column: 1 / -1; }
  .m-plans { grid-template-columns: 1fr; }
  .hero__buttons, .cta-row { flex-direction: column; width: 100%; }
  .hero__buttons .btn, .cta-row .btn { width: 100%; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ════════════ MODAL DE AUTH (registro / login) sobre la landing ════════════ */
/* No es una página: se proyecta sobre la landing con el fondo difuminado. */
.auth-ov {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(14,10,9,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--bq2-ease), visibility .3s;
}
.auth-ov.open { opacity: 1; visibility: visible; }
.auth-modal {
  width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); border-radius: var(--bq2-r-l);
  box-shadow: var(--bq2-shadow-lg); padding: clamp(26px, 5vw, 40px); position: relative;
  transform: translateY(16px) scale(.98); transition: transform .32s var(--bq2-ease);
}
.auth-ov.open .auth-modal { transform: none; }
.auth-modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; z-index: 1;
  border: 1px solid var(--bq2-line); background: var(--bq2-bg); color: var(--bq2-ink-soft);
  cursor: pointer; font-size: 1rem; display: grid; place-items: center;
}
.auth-modal__close:hover { color: var(--bq2-ink); border-color: var(--bq2-ink); }
.auth-modal h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; padding-right: 44px; }
.auth-modal .sub { color: var(--bq2-ink-soft); margin: 0 0 24px; font-size: .95rem; }

.auth-modal .field { margin-bottom: 15px; }
.auth-modal .field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 7px; color: var(--bq2-ink-soft); }
.auth-modal .field input {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--bq2-r-s);
  border: 1.5px solid var(--bq2-line); background: var(--bq2-bg-sunken); color: var(--bq2-ink); outline: none;
  transition: border-color .18s, background .18s;
}
.auth-modal .field input:focus { border-color: var(--bq2-accent); background: var(--bq2-bg-elev); }
.auth-modal .btn-block { width: 100%; margin-top: 4px; }

/* foco visible en botones/enlaces del modal (los inputs ya marcan foco con el borde) */
.auth-modal :focus-visible { outline: 2px solid var(--bq2-accent); outline-offset: 2px; }
.auth-modal h1:focus { outline: none; }
.auth-eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 11px; border-radius: var(--bq2-r-pill);
  background: var(--bq2-accent-soft); color: var(--bq2-accent-deep);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* bullets del modal de demo: mismo lenguaje que las tarjetas de precio (pastilla con check) */
.auth-modal .auth-feats { margin: -6px 0 22px; gap: 7px; }
.auth-modal .auth-feats li { font-size: .95rem; }

/* error inline junto al campo */
.auth-modal .field__err { margin: 6px 0 0; color: var(--bq2-danger); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.auth-modal .field.is-invalid input,
.auth-modal .field.is-invalid .tel__prefix { border-color: var(--bq2-danger); }

/* teléfono con prefijo +34 fijo (no editable) pegado al input */
.tel { display: flex; align-items: stretch; }
.tel__prefix { display: flex; align-items: center; padding: 0 12px; flex: 0 0 auto;
  border: 1.5px solid var(--bq2-line); border-right: 0; border-radius: var(--bq2-r-s) 0 0 var(--bq2-r-s);
  background: var(--bq2-bg); color: var(--bq2-ink-soft); font-weight: 700; transition: border-color .18s; }
.auth-modal .tel input { min-width: 0; border-radius: 0 var(--bq2-r-s) var(--bq2-r-s) 0; }
.tel:focus-within .tel__prefix { border-color: var(--bq2-accent); }

/* ── Suscripción paso 1 · tarjetas de plan seleccionables (radio-cards) ──
   El radio va oculto pero enfocable; su label tiene un ::after que cubre toda la tarjeta,
   así cualquier clic en ella selecciona el plan. Estado y foco se pintan sobre ese ::after. */
.plan-pick { display: flex; flex-direction: column; gap: 12px; }
.plan-opt { position: relative; padding: 16px 18px; border-radius: var(--bq2-r-m);
  background: var(--bq2-bg-elev); border: 1px solid var(--bq2-line); }
.plan-opt__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.plan-opt__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; cursor: pointer; }
.plan-opt__head::after { content: ""; position: absolute; inset: -1px; border-radius: var(--bq2-r-m);
  border: 1.5px solid transparent; transition: border-color .18s, box-shadow .18s; }
.plan-opt__radio:checked ~ .plan-opt__head::after { border-color: var(--bq2-accent); box-shadow: 0 0 0 3px var(--bq2-accent-soft); }
.plan-opt__radio:focus-visible ~ .plan-opt__head::after { outline: 2px solid var(--bq2-accent); outline-offset: 3px; }
.plan-opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bq2-ink-faint);
  display: grid; place-items: center; transition: border-color .18s; }
.plan-opt__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bq2-accent);
  transform: scale(0); transition: transform .18s var(--bq2-ease); }
.plan-opt__radio:checked ~ .plan-opt__head .plan-opt__dot { border-color: var(--bq2-accent); }
.plan-opt__radio:checked ~ .plan-opt__head .plan-opt__dot::before { transform: scale(1); }
.plan-opt__name { font-weight: 800; color: var(--bq2-ink); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.plan-opt__price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.plan-opt__price small { font-size: .78rem; font-weight: 600; color: var(--bq2-ink-faint); }
.plan-opt .save { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bq2-accent); color: #fff; padding: 3px 8px; border-radius: var(--bq2-r-pill); }
.auth-modal .plan-opt__feats { margin: 12px 0 0 30px; gap: 5px; }
.auth-modal .plan-opt__feats li { font-size: .88rem; line-height: 1.4; }
.auth-modal .plan-opt__feats li::before { margin-top: 1px; }
.auth-modal .plan-opt__feats li.plan-opt__save { color: var(--bq2-ok); font-weight: 700; }
.auth-modal .plan-opt__feats li.plan-opt__save::before { background: var(--bq2-ok); }
/* ink-soft (no ink-faint): es la letra pequeña de la condición comercial (199€), necesita AA */
.plan-pick__note { margin: 12px 0 18px; color: var(--bq2-ink-soft); font-size: .8rem; line-height: 1.45; }

/* ── Suscripción paso 2 · resumen del plan elegido ── */
.plan-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -8px 0 20px; padding: 10px 8px 10px 16px; border-radius: var(--bq2-r-m);
  background: var(--bq2-bg-sunken); border: 1px solid var(--bq2-line); }
.plan-sum__info { display: flex; flex-direction: column; min-width: 0; }
.plan-sum__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bq2-ink-faint); }
.plan-sum__name { font-weight: 800; }
.plan-sum__name small { margin-left: 4px; font-size: .8rem; font-weight: 600; color: var(--bq2-ink-faint); }
.link-btn { flex: 0 0 auto; min-height: 44px; padding: 0 10px; border: 0; background: none; font: inherit;
  font-size: .9rem; font-weight: 700; color: var(--bq2-accent); cursor: pointer; border-radius: var(--bq2-r-s); }
.link-btn:hover { color: var(--bq2-accent-deep); text-decoration: underline; }

/* ── Demo · confirmación ── */
.auth-done { text-align: center; }
.auth-done h1 { padding-right: 0; }
.auth-done__mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 8px auto 16px;
  border-radius: 50%; background: var(--bq2-accent-soft); }
.auth-done__mark::before { content: ""; width: 26px; height: 26px; background: var(--bq2-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.auth-done .sub strong { color: var(--bq2-ink); overflow-wrap: anywhere; }

.auth-modal .demo-hint { margin-top: 14px; padding: 11px 14px; border-radius: var(--bq2-r-m);
  background: var(--bq2-accent-soft); color: var(--bq2-accent-deep); font-size: .84rem; font-weight: 600; text-align: center; }
.auth-modal .alt { margin-top: 10px; text-align: center; color: var(--bq2-ink-soft); font-size: .9rem; }
/* enlaces del pie con área táctil de 44px */
.auth-modal .alt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--bq2-accent); font-weight: 700; cursor: pointer; border-radius: var(--bq2-r-s); }

/* vistas y pasos: solo se ve el activo; entrada suave al cambiar */
.auth-pane, .auth-step { display: none; }
.auth-pane.on, .auth-step.on { display: block; }
.auth-pane.on { animation: auth-fade .24s var(--bq2-ease) both; }
.auth-step.on { animation: auth-step-in .3s var(--bq2-ease) both; }
@keyframes auth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .auth-pane.on, .auth-step.on { animation: none; }
  .auth-ov, .auth-modal, .plan-opt__head::after, .plan-opt__dot::before { transition: none; }
}

/* ── Captación (lista de espera / solicitud de demo) ── */
/* label.check: gana a «.auth-modal .field label» (display:block, negrita), que antes anulaba este flex (F6). */
.auth-modal .check, .auth-modal .field label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; font-weight: 500; line-height: 1.4; color: var(--bq2-ink-soft); cursor: pointer; margin-bottom: 0; }
.auth-modal .check a { color: var(--bq2-accent); text-decoration: underline; text-underline-offset: 2px; }
.auth-modal .check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--bq2-accent); cursor: pointer; }
.auth-modal .field--check { margin-top: 4px; }
.auth-modal .field.is-invalid .check { color: var(--bq2-danger); }
.auth-modal .opt { font-weight: 500; color: var(--bq2-ink-faint, #8a8480); }
/* campo trampa para bots: fuera de pantalla, nunca visible ni enfocable */
.auth-modal .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-modal .form-err { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--bq2-r-m); background: #fdecea; color: #8b1d16;
  font-size: .86rem; font-weight: 600; line-height: 1.4; }
.auth-modal .btn[disabled] { opacity: .6; cursor: progress; }
.auth-modal .wl-note { margin: 12px 0 0; padding: 11px 14px; border-radius: var(--bq2-r-m); background: var(--bq2-accent-soft);
  color: var(--bq2-accent-deep); font-size: .86rem; line-height: 1.45; }
.auth-modal .wl-note strong { font-weight: 800; }
.wl-landing { margin: 16px auto 0; max-width: 560px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28); font-size: .95rem; line-height: 1.45; }
.wl-landing strong { font-weight: 800; }
.auth-modal .auth-done .btn { text-decoration: none; }
