/* generado por scripts/css-paginas.js desde styles.css 837557855e3a. No editar a mano: npm run build:css */
/* ══════════════════════════════════════════════════
   ablalo — diseño v3 (hero centrado + H animada)
   ══════════════════════════════════════════════════ */

/* DM Sans servida desde ablalo.com (fonts/), no desde Google Fonts: eran dos
   orígenes más y una hoja de estilos que bloqueaba el primer pintado (unos
   750 ms en el móvil de Lighthouse). Son los mismos ficheros que da Google
   (subconjunto latin, variable de 300 a 900 con eje de tamaño óptico), así que
   el texto se ve igual; además las páginas que pedían solo algunos grosores
   dejan de sintetizar el 600 y el 900. Cada página precarga la normal con
   <link rel="preload">. La cursiva solo se descarga si se usa. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Mientras llega DM Sans se pinta Arial ajustada a sus medidas (anchura media
   y altura de línea calculadas sobre los ficheros con fontTools). Así, cuando
   entra la fuente buena, el texto no cambia de tamaño ni empuja lo de debajo:
   era el salto de maquetación (CLS 0,13) que medía Lighthouse en el blog. */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 105.51%;
  ascent-override: 94.02%;
  descent-override: 29.38%;
  line-gap-override: 0%;
}

:root {
  --primary: #F4660F;
  --primary-rgb: 244, 102, 15;
  --primary-dark: #D95D0D;
  --accent: #FFFFFF;
  --accent-deep: #F4660F;
  --bg: #FFFAF5;
  --bg-soft: #FFF2E8;
  --text: #1C1917;
  --text-light: #44403C;
  --text-dim: #78716C;
  --light: #FED7AA;
  --color-deep: #1a120d;
  --badge: #4F46E5;
  --badge-bg: #EEF2FF;
  --border: rgba(28, 25, 23, 0.07);
  --border-strong: rgba(28, 25, 23, 0.14);

  --font: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --maxw: 1200px;
  --maxw-narrow: 900px;
  --pad: clamp(1.5rem, 5vw, 3.5rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  /* Compensa el nav fijo al saltar a un #ancla: deja 80px arriba para que el
     título de la sección no quede tapado por el header (coincide con el
     offset -80 de Lenis en script.js). Cubre cargas directas por URL
     (ablalo.com/#precios) y el fallback scrollIntoView sin Lenis. */
  scroll-padding-top: 80px;
  /* Importante: NO poner overflow-x:hidden aquí — rompe position:sticky del
     carrusel horizontal .fcar__pin. El overflow-x:hidden del body basta para
     evitar scroll horizontal global. */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

h3 {
  font-size: 1.4rem;
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

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



/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--pad);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  will-change: transform;
}

body.is-scrolled .nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.scrolling .nav {
  transform: translateY(-100%);
}

/* ═══════════ BARRA DE ANUNCIO (lanzamiento) ═══════════
   Va por encima del nav y lo empuja hacia abajo. Todo cuelga de
   body.has-promo, que pone el script del propio bloque: si se borra el
   markup del HTML, el nav y el hero vuelven solos a su sitio sin tocar
   una línea de CSS. Se oculta y reaparece con el nav, como una pieza.

   El mensaje va quieto y centrado: una cinta en movimiento obliga a
   esperar para leer y no deja mirar la cabecera con calma. */

:root {
  --promo-h: 34px;
}
body.has-promo .nav { top: var(--promo-h); }

/* Con la barra de anuncio el nav no arranca en 0, sino en --promo-h. Al
   esconderlo hay que subirlo tambien esos pixeles: con translateY(-100%)
   a secas recorre solo su propia altura y se queda una franja colgando
   arriba de la pantalla. */
body.has-promo.scrolling .nav { transform: translateY(calc(-100% - var(--promo-h))); }
body.has-promo .hero { padding-top: calc(clamp(7rem, 16vh, 10rem) + var(--promo-h)); }

/* El segundo mensaje es apoyo: se separa con un filete y es el primero
   que desaparece cuando no hay sitio. */

/* Absoluto para que no descentre el mensaje al reservarle sitio. */

@media (max-width: 560px) {
  :root { --promo-h: 32px; }
}

.nav__logo-group {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
}

/* Con seis enlaces, entre 769 y 808 px el CTA se partía en dos líneas y
   levantaba la barra a 88 px, pegándose al enlace "blog". Que no parta nunca. */
.nav__cta { white-space: nowrap; }

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__links {
  flex: 0;
  display: flex;
  justify-content: center;
  /* Hueco elástico: con seis enlaces, 2.2rem fijos desbordaban la barra
     entre 768 y ~950 px y el nav se partía en dos líneas. */
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav__links a {
  color: var(--text-light);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta-group {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav__cta span {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav__cta:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.16);
}

/* Palette Picker */

@keyframes menuEnter {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 808 px y no 768: con seis enlaces la barra se saturaba hasta ~808. */
@media (max-width: 808px) {
  .nav__links {
    display: none;
  }
}

/* ═══════════ HERO (CENTRADO) ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(7rem, 16vh, 10rem) var(--pad) clamp(3rem, 8vh, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Fondo animado */

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 60px) scale(1.08);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, -40px) scale(1.1);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-55%, -48%) scale(0.92);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

/* ═══════════ HERO TITLE (animación JS-driven) ═══════════ */

/* Wordmark animado a tamaño original GRANDE (petición del usuario): hereda el
   font-size de .hero__title (clamp 4-11rem) y su escalado responsive; aquí solo
   ajustamos el margen inferior antes del titular legal. */

/* Titular legal: tamaño MEDIANO, en una sola línea en escritorio (sin cap de
   22ch; en móvil el viewport lo hace saltar de línea solo). */

/* Subtítulo del hero: tamaño de subtítulo, en una sola línea en escritorio
   (max-width amplio; en móvil el viewport lo hace saltar de línea solo). */

/* La H — controlada por JS/GSAP, empieza oculta para evitar flash */

/* Letra A y su acento — stacked via grid */

/* El resto de la palabra */

/* Subtítulos a la derecha ("sin H", "sin teclas", "sin esfuerzo") */

/* Tagline: háblalo sin h → ablalo */

@keyframes taglineStrike {

  0%,
  30% {
    transform: scaleX(0);
  }

  50%,
  80% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* Voz wave */

@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes appsMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.35rem));
  }
}

/* Scroll hint */

@keyframes scrollDot {
  0% {
    top: -50%;
  }

  100% {
    top: 110%;
  }
}

/* El indicador vive en el relleno inferior del hero. En portátiles de 720 a
   900 px de alto ese relleno se quedaba corto y la onda lo pisaba: le damos
   sitio donde el indicador se ve (fuera de móvil y de pantallas bajas). */
@media (min-width: 769px) and (min-height: 701px) and (max-height: 900px) {
  .hero { padding-bottom: 6.5rem; }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  text-align: center;
  position: relative;
  border: 1px solid transparent;
  outline: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Botón Windows — estilo referencia */
.btn--win {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  gap: 0.7rem;
  padding: 0.9rem 2rem;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.28);
  letter-spacing: 0.01em;
  border: 1px solid var(--primary);
  outline: none;
}

.btn--win:hover {
  box-shadow: 0 20px 44px rgba(var(--primary-rgb), 0.42);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
}

.btn__win-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
}



/* ═══════════ PROBLEM ═══════════ */
/* ----------- POST-ITS ----------- */

/* Pieza de cinta adhesiva arriba — discreta */

/* Fila ordenada — 4 post-its alineados en horizontal, rotaciones suaves
   uno con la cinta "despegada" para romper la rigidez */

/* Post-it 1 - extremo izquierdo */

/* Post-it 2 - el "despegado": un poco más bajo, más inclinado */

/* Su cinta cuelga del lado izquierdo (como si se hubiera despegado por la derecha) */

/* Post-it 3 - tercer hueco */

/* Post-it 4 - extremo derecho */

/* "Spoiler" — respuesta centrada al pie del arco */

@keyframes qnote-in {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(0deg) scale(0.7);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* Mantener la rotación final tras la animación */

@keyframes qnote-in-r-2 {
  0% { opacity: 0; transform: translateY(-24px) rotate(3deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-2deg); }
}
@keyframes qnote-in-r-6 {
  0% { opacity: 0; transform: translateY(-24px) rotate(3deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-6deg); }
}
@keyframes qnote-in-r1-5 {
  0% { opacity: 0; transform: translateY(-24px) rotate(-3deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(1.5deg); }
}
@keyframes qnote-in-r3 {
  0% { opacity: 0; transform: translateY(-24px) rotate(-3deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(3deg); }
}
@keyframes qnote-in-spoiler {
  0% { opacity: 0; transform: translateX(-50%) translateY(16px) rotate(0deg) scale(0.7); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) rotate(-2deg); }
}

@keyframes qnotes-arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 720px) {
  /* En móvil: pila vertical compacta, mayoría rectos y solo uno girado.
     Espacio respetado para flecha y siguiente sección. */

  /* Cancelar posicionamiento absoluto y anchos fijos del desktop */

  /* Casi todos rectos para no solaparse, solo uno girado (el "despegado") */

  /* Alternancia ligera izq/der */

  /* Spoiler: centrado al final, con margen para no chocar con la flecha */

  /* Flecha: en móvil pasa al flujo (centrada por el flex column del inner) */
}

@keyframes qnotes-arrow-bounce-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes qnote-in-straight {
  0% { opacity: 0; transform: translateY(-12px) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg); }
}

@keyframes qnote-in-tilt {
  0% { opacity: 0; transform: translateY(-12px) rotate(2deg) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-4deg); }
}

@keyframes qnote-in-spoiler-mobile {
  0% { opacity: 0; transform: translateY(12px) rotate(0deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-2deg); }
}

/* ═══════════ PRIVACIDAD (layout editorial, no tarjetas) ═══════════ */

@media (max-width: 540px) {
  /* En móviles estrechos: permitir que la frase rompa en 2 líneas si hace falta
     (a 320-380px no cabe la frase completa en una sola línea ni con clamp). */
}

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

@keyframes fillBar {
  to {
    width: var(--fill);
  }
}

/* Post-it inline dentro de la cita del problema */

/* Stats strip */

/* ═══════════ HOW ═══════════ */

.step {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.08);
}

/* Acento de familia: las dos tarjetas Pro comparten un borde superior primary.
   Dictado se queda sin franja → se diferencian de un vistazo. */

/* En modo invertido, el acento se ve aún más */

/* Número grande de fondo (decorativo) */

/* Etiqueta grande del modo */


/* ─── Cómo funciona · 3 pasos visualmente distintos ─── */


/* ═══════ Pasos: visual común ═══════ */

/* Teclas (kbd) */

/* Indicador "lado" en la tecla Alt/⌘: barra izq (Dictado) o der (Pro) */

/* Bloque de atajo — píldora compacta dentro de .step__head */

/* Las teclas dentro del shortcut son más pequeñas que las "grandes" del visual */

/* Mostrar atajo según OS detectado (por defecto Win; Mac si body.is-mac) */

/* Ejemplo voz → resultado */

/* Campo fake con caret animado */

/* Variante "documento con selección" para el caso Reescribir.
   Simula un párrafo de texto con la frase clave resaltada como si
   el usuario la hubiera marcado con el ratón. */

/* La "selección" — highlight estilo SO + texto en color normal */

/* Caret parpadeante al final de la selección, como si acabara de soltar */

@keyframes step-doc-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Variante "email": ignora la altura fija de 60px, permite multilinea
   con asunto y cuerpo formateado. */

/* Visual contenedor: una sola columna interna, altura fija para simetría */

/* Móvil: shortcut un poco más apretado */

/* Inverted (dark) variant */

/* Documento con selección en dark mode */

/* ═══════════ FEATURES · catálogo editorial ═══════════ */

/* Head asimétrico */

/* Lista numerada sin tarjetas */

/* Franja lateral al hover */

/* Demo column */

/* Accent feature (privacidad) */

/* ─── DEMO 01 · atajos de teclado ─── */

/* ─── DEMO 02 · servidores madrid ─── */

@keyframes mapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes mapDot {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* ─── DEMO 03 · acentos ─── */

/* ─── DEMO 04 · offline ─── */

@keyframes offDot {
  50% {
    opacity: 0.3;
  }
}

@keyframes offWave {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ─── DEMO 05 · voice edit ─── */

/* ─── DEMO 06 · glosario ─── */

/* ─── DEMO 07 · speed ─── */

@keyframes spGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ─── DEMO 08 · contexto ─── */

/* ═══════════ ANYWHERE ═══════════ */

/* El contenido sigue centrado y con el ancho máximo del sitio */

/* ── Texto claro sobre el fondo marrón ── */

/* Texto inferior "funciona también en la app…" sobre marrón */
.anywhere .dl-inline--center {
  color: rgba(255, 255, 255, 0.72) !important;
}

.anywhere .dl-inline--center .dl-link {
  color: var(--primary) !important;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ═══════════ WORDPLAY BIG ═══════════ */

/* ═══════════ WHO · mosaico tipográfico ═══════════ */

/* Mosaico asimétrico 4×3 */

.voice {
  position: relative;
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--bg-soft);
  border-radius: 4px;
  border-left: 2px solid var(--border-strong);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}

.voice:hover {
  border-left-color: var(--primary);
  background: #fff;
}

/* Layout asimétrico: tamaños desiguales */

/* Acentos visuales rotativos */
.voice:nth-child(odd) {
  border-left-color: var(--border-strong);
}

.voice:nth-child(3n) {
  border-left-color: var(--primary);
  background: #fff;
}

/* Responsive: colapsa a 6→3→1 columnas */

@media (max-width: 640px) {

  .voice {
    grid-column: span 1;
  }
}

/* ═══════════ COMPARE ═══════════ */

/* ═══════════ PRICING ═══════════ */
.pricing {
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.pricing h2 {
  margin-bottom: 3rem;
}

.plan {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.plan:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.08);
}

.plan h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* "+ IVA" va en su propio span porque el script reescribe .js-period al
   cambiar mensual/anual; sin margen extra, el hueco del flex basta. */

/* 2 planes (Pro + Enterprise): centrados y sin estirar */

/* Sello de prueba en el plan Pro */

/* billing toggle */

/* ═══════════ TESTIMONIOS ═══════════ */

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

/* Estrellas de valoración (JS rellena con 5 <span>) */

/* ═══════════ FAQ ═══════════ */
.faq {
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad);
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}

.faq h2 {
  margin-bottom: 3rem;
}

/* ═══════════ CTA FINAL ═══════════ */
.final {
  background: var(--primary);
  color: #fff;
  padding: clamp(3.5rem, 8vh, 5rem) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.final h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  line-height: 0.95;
}

.final p:not(.final__note) {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ═══════════ GET STARTED ═══════════ */

/* ═══════════ FOOTER ═══════════ */
.foot {
  padding: 4rem var(--pad) 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.foot__top {
  margin-bottom: 3rem;
}

.foot__logo {
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  display: inline-block;
}

.foot__tag {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

/* Títulos de columna del pie. Eran <h4> justo detrás de un <h2>, un salto
   de nivel en todas las páginas; son etiquetas de navegación, no encabezados
   del documento. Se conserva h4 por si queda alguno. */
.foot__cols h4,
.foot__titulo {
  line-height: 1.1;
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.foot__cols a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}

.foot__cols a:hover {
  color: var(--text);
}

.foot__bottom {
  font-size: 12px;
  color: var(--text-light);
}

/* ═══════════ RESPONSIVO ═══════════ */
@media (max-width: 700px) {
  :root {
    --pad: 1.5rem;
  }

  .nav {
    padding: 0.8rem var(--pad);
  }

  .nav__logo {
    font-size: 1.2rem;
  }

  h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .final h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════ ADDED BY ANTIGRAVITY ═══════════ */

/* Aspecto Startup - Invertidos (similar a CTA final) */

/* Número grande de fondo en modo oscuro */

/* Modo en blanco para Dictado (la 02/03 ya tienen .step--pro → primary) */

/* Update app-whatsapp */

/* Upgrade aesthetics to look more Startup-like */
body {
  background: var(--bg-soft);
}

.nav {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.step,
.plan,
.window {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.step:hover,
.plan:hover {
  box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.12);
}


.final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* Fix GSAP ScrollTrigger issue with sections below marquee */
.faq,
.final {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Mobile-first refinements */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: clamp(6.25rem, 13vh, 8rem);
  }
}

@media (max-width: 768px) {
  :root {
    --pad: clamp(1rem, 4vw, 1.25rem);
  }

  .nav {
    gap: 0.6rem;
    padding: 0.75rem var(--pad);
  }

  .nav__cta {
    padding: 0.55rem 0.85rem;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    padding: 6.5rem var(--pad) 2.75rem;
  }

  
  .btn--win {
    padding: 0.9rem 1.2rem;
  }

  .step,
  .plan {
    padding: 1.35rem;
  }

  .window {
    width: min(320px, 90vw);
  }

  .foot {
    padding: 3rem var(--pad) 1.75rem;
  }

  .foot__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav__cta {
    padding: 0.5rem 0.7rem;
    font-size: 11px;
  }

  .foot__cols {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ ANYWHERE DEMO (grabadora + laptop con pestañas) ═══════════ */

@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes rec-wave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50%      { height: 22px; opacity: 1; }
}

/* Laptop mockup */

@keyframes lp-caret {
  50% { opacity: 0; }
}

/* ═══════════ WHO (para quién) en modo inverted ═══════════ */

/* ══════════════════════════════════════════════════
   FCAR · carrusel horizontal de funcionalidades
   scroll-jacking pinned section
   ══════════════════════════════════════════════════ */

/* ── topbar (label · progress · counter) ── */

@keyframes fcarPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15); }
  50%      { box-shadow: 0 0 0 7px rgba(var(--primary-rgb), 0.05); }
}

/* ── viewport + track ── */

/* ── hint ── */

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

/* ══════════════ CARDS ══════════════ */

/* ── per-card accent palette ── */

/* ────── 01 · keys/translate ────── */

/* ────── 02 · privacy shield ────── */

/* ────── 03 · voice edit ────── */

/* ────── 04 · vocab pills ────── */

/* ────── 05 · voice commands terminal ────── */
@keyframes fctBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fctType { 0%, 70% { border-color: var(--fcc-accent); } 71%, 100% { border-color: transparent; } }

/* ────── 06 · modes ────── */

/* ────── 07 · offline ────── */

/* ══════════════ MOBILE FALLBACK ══════════════ */

/* ═══════════════════════════════════════════
   DESCARGA · alt-link + picker modal
═══════════════════════════════════════════ */

#dl-picker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: dlpFadeIn .18s ease-out;
}
.dl-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .55);
  backdrop-filter: blur(4px);
}
.dl-picker__card {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border-radius: 18px;
  padding: 28px 26px 24px;
  width: min(420px, 100%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  animation: dlpScaleIn .2s ease-out;
}
.dl-picker__card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-picker__hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.dl-picker__hint a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dl-picker__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.dl-picker__close:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.dl-picker__opts {
  display: grid;
  gap: 10px;
}
.dl-picker__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.dl-picker__opt:hover {
  border-color: var(--accent-deep);
  background: #fff;
  transform: translateY(-1px);
}
.dl-picker__opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text);
}
.dl-picker__opt-icon svg {
  width: 22px;
  height: 22px;
}
.dl-picker__opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dl-picker__opt strong {
  font-size: 15px;
  font-weight: 600;
}
.dl-picker__opt-text > span {
  font-size: 12px;
  color: var(--text-dim);
}
.dl-picker__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}
.dl-picker__foot em { font-style: italic; color: var(--text-light); }

/* ═══════════════════════════════════════════
   AVISO WINDOWS SmartScreen (tras iniciar descarga)
═══════════════════════════════════════════ */
/* Bloque de la videollamada de primeros pasos (dentro del aviso post-descarga). */
/* CTA secundario: instalación guiada por videollamada. */

/* ═══════════════════════════════════════════
   PANEL DE RESERVA · calendario incrustado
   Abre el calendario de Cal sobre la propia página.
═══════════════════════════════════════════ */
body.cal-modal-open { overflow: hidden; }
.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;              /* por encima del aviso de instalación */
  display: grid;
  place-items: center;
  padding: 20px;
  animation: dlpFadeIn .18s ease-out;
}
.cal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .62);
  backdrop-filter: blur(6px);
}
.cal-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  height: min(800px, 92vh);
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06);
  animation: dlpScaleIn .2s ease-out;
}
/* Barra mínima: el resto del contexto (duración, descripción, zona horaria)
   ya lo muestra la propia página de Cal dentro del iframe. */
.cal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
/* Con contexto de vuelta, la cabecera lleva tres piezas: volver, título y
   cerrar. El título se queda con el hueco sobrante para no bailar. */
.cal-modal__head-title { flex: 1 1 auto; min-width: 0; }
.cal-modal__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -8px;
  padding: 7px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cal-modal__back:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--primary);
}
.cal-modal__intro a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cal-modal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
.cal-modal__close:hover { background: var(--bg); color: var(--text); }
/* Explica por qué no ha empezado ninguna descarga. Sin esto, el usuario que
   pulsa "Descargar" y no recibe archivo cree que la web está rota. */
.cal-modal__intro {
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(var(--primary-rgb), .06);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}
.cal-modal__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
/* Detrás del iframe: cuando el calendario pinta, lo tapa. Sin temporizadores. */
.cal-modal__loading {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
}
.cal-modal__loading a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cal-modal__iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .cal-modal { padding: 0; }
  .cal-modal__panel { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-modal, .cal-modal__panel { animation: none; }
}

/* ═══════════════════════════════════════════
   PANEL POSTERIOR A LA DESCARGA
   Sale detrás del binario (nunca lo bloquea): guía de instalación animada,
   email para la newsletter si el visitante aún no está apuntado y sesión de
   onboarding gratuita.
═══════════════════════════════════════════ */
.pdl {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  animation: dlpFadeIn .18s ease-out;
}
.pdl__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .62);
  backdrop-filter: blur(6px);
}
.pdl__panel {
  position: relative;
  width: min(640px, 100%);
  margin: auto;
  padding: 30px 30px 26px;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06);
  animation: dlpScaleIn .2s ease-out;
}
.pdl__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
.pdl__close:hover { background: var(--bg-soft); color: var(--text); }

/* El relleno lateral deja sitio a la × en pantallas estrechas. */
.pdl__head { padding: 0 30px; text-align: center; }

/* Flecha hacia el botón de descargas del navegador. El texto va pegado a la
   derecha y la flecha sale por su izquierda hacia arriba: a la derecha del
   botón de descargas el navegador pone el perfil, el modo incógnito o el aviso
   de actualizar, y la punta tiene que quedar a la izquierda de todo eso. Va
   antes del panel en el DOM y sin z-index: si alguna vez coinciden, el panel
   queda por encima. */
.pdl__aqui {
  position: fixed;
  top: 6px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: #fff;
  pointer-events: none;
  animation: pdlAqui 1.1s ease-in-out infinite alternate;
}
.pdl__aqui-txt {
  margin-bottom: 4px;
  padding: 7px 13px;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.pdl__aqui-flecha { flex: 0 0 auto; }
@keyframes pdlAqui {
  from { transform: translate(0, 0); }
  to   { transform: translate(-3px, -6px); }
}
.pdl__title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.pdl__alt {
  margin: 14px 0 0;
  text-align: center;
  font-size: .76rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.pdl__alt a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Guía: lista de pasos a la izquierda, escena animada a la derecha ── */
.pdl__guia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}
.pdl__pasos {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pdl__paso {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease;
}
@media (hover: hover) {
  .pdl__paso:hover { background: var(--bg-soft); }
}
.pdl__paso.is-activo { background: rgba(var(--primary-rgb), .08); }
.pdl__paso-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pdl__paso.is-activo .pdl__paso-num {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.pdl__paso strong {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-dim);
  transition: color .2s ease;
}
.pdl__paso.is-activo strong { color: var(--text); }

/* La escena mide siempre 280×210: las coordenadas de las animaciones (el
   cursor sobre cada botón) son en píxeles. */
.pdl__demo {
  position: relative;
  width: 280px;
  height: 210px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  user-select: none;
}
/* Solo se ve la escena del paso activo. Al pasar de display:none a block las
   animaciones arrancan de cero, así que cada vuelta se ve entera. */
.pdl__esc { position: absolute; inset: 0; display: none; }
.pdl__guia[data-paso="1"] .pdl__esc--1,
.pdl__guia[data-paso="2"] .pdl__esc--2,
.pdl__guia[data-paso="3"] .pdl__esc--3 { display: block; }

/* Cursor: la punta de la flecha está en el (3,2) del SVG. */
.pdl-cur {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  margin: -2px 0 0 -3px;
  transform-origin: 3px 2px;
}
.pdl-cur__svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

/* Barras de ventana (navegador y apps). */
.pdl-nav,
.pdl-win__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border-strong);
}
.pdl-nav > i,
.pdl-win__bar > i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}
.pdl-win__bar { height: 24px; background: var(--bg-soft); }
.pdl-win__bar > i:nth-child(1) { background: #FF5F57; }
.pdl-win__bar > i:nth-child(2) { background: #FEBC2E; }
.pdl-win__bar > i:nth-child(3) { background: #28C840; }
.pdl-win__bar span {
  flex: 1;
  margin-right: 30px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

/* Escena 1 · el navegador y su botón de descargas */
.pdl-nav { height: 30px; background: var(--bg); }
.pdl-nav__url {
  flex: 1;
  margin: 0 8px 0 6px;
  padding: 3px 8px;
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-soft);
  border-radius: 999px;
}
.pdl-nav__dl {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  animation: pdlDl 4.6s ease both;
}
.pdl-nav__web {
  position: absolute;
  top: 46px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 8px;
}
.pdl-nav__web i { display: block; height: 7px; border-radius: 4px; background: var(--border-strong); }
.pdl-nav__web i:nth-child(1) { width: 55%; height: 13px; }
.pdl-nav__web i:nth-child(2) { width: 92%; }
.pdl-nav__web i:nth-child(3) { width: 80%; }
.pdl-nav__web i:nth-child(4) { width: 64%; }
.pdl-nav__menu {
  position: absolute;
  top: 36px;
  right: 8px;
  width: 222px;
  padding: 8px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  animation: pdlMenu 4.6s ease both;
}
.pdl-nav__menu-tit {
  display: block;
  padding: 0 4px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}
.pdl-nav__fila {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 7px;
  animation: pdlFila 4.6s ease both;
}
.pdl-nav__fila svg { flex: none; color: var(--primary); }
.pdl-nav__fila > span { display: flex; flex-direction: column; min-width: 0; }
.pdl-nav__fila b {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdl-nav__fila small { font-size: 9.5px; color: var(--text-dim); }
.pdl-cur--1 { animation: pdlC1 4.6s ease-in-out both; }

@keyframes pdlC1 {
  0%        { left: 120px; top: 170px; transform: scale(1); }
  30%       { left: 261px; top: 16px;  transform: scale(1); }
  35%       { left: 261px; top: 16px;  transform: scale(.8); }
  40%       { left: 261px; top: 16px;  transform: scale(1); }
  62%       { left: 150px; top: 84px;  transform: scale(1); }
  67%       { left: 150px; top: 84px;  transform: scale(.8); }
  72%, 100% { left: 150px; top: 84px;  transform: scale(1); }
}
@keyframes pdlDl {
  0%, 33%   { color: var(--text); background: transparent; }
  37%, 100% { color: var(--primary); background: rgba(var(--primary-rgb), .16); }
}
@keyframes pdlMenu {
  0%, 37%   { opacity: 0; visibility: hidden; transform: translateY(-6px); }
  45%, 100% { opacity: 1; visibility: visible; transform: none; }
}
@keyframes pdlFila {
  0%, 65%   { background: transparent; }
  70%, 100% { background: rgba(var(--primary-rgb), .14); }
}

/* Escena 2 (Windows) · el asistente de instalación, en minimalista. Sigue sus
   pantallas reales: bienvenida, tipo de instalación, instalando y la última,
   con "Ejecutar ablalo" ya marcado. La escena mide 278×208 por dentro (el
   borde de .pdl__demo se come 1px por lado). */
.pdl-ins { background: #fff; }
.pdl-ins__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-strong);
}
.pdl-ins__ico {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
}
.pdl-ins__x { margin-left: auto; font-size: 13px; }

/* Cada pantalla ocupa el hueco entre la barra y el pie, y se funden entre sí. */
.pdl-ins__pant {
  position: absolute;
  top: 24px;
  bottom: 36px;
  left: 0;
  right: 0;
  background: #fff;
}
.pdl-ins__pant--1 { animation: pdlInsP1 5.6s ease both; }
.pdl-ins__pant--2 { animation: pdlInsP2 5.6s ease both; }
.pdl-ins__pant--3 { animation: pdlInsP3 5.6s ease both; }
.pdl-ins__pant--4 { animation: pdlInsP4 5.6s ease both; }

/* Primera y última pantalla: franja naranja con el logo. */
.pdl-ins__lado {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(165deg, #F59E5B 0%, var(--primary) 50%, #C2410C 100%);
}
.pdl-ins__logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  box-shadow: 0 0 0 3px #fff;
}
.pdl-ins__marca {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.pdl-ins__txt {
  position: absolute;
  top: 14px;
  left: 98px;
  right: 14px;
  display: grid;
  gap: 7px;
}
.pdl-ins__txt b { font-size: 11.5px; line-height: 1.3; font-weight: 700; color: var(--text); }
.pdl-ins__txt i { display: block; height: 5px; border-radius: 3px; background: var(--border-strong); }
.pdl-ins__txt i:nth-of-type(1) { margin-top: 4px; width: 92%; }
.pdl-ins__txt i:nth-of-type(2) { width: 78%; }
.pdl-ins__txt i:nth-of-type(3) { width: 58%; }
.pdl-ins__check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text);
}
.pdl-ins__check::before {
  content: '\2713';
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: #0067C0;
  border-radius: 2px;
}

/* Pantallas intermedias: cabecera blanca con la marca y cuerpo gris. */
.pdl-ins__cab {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-strong);
}
.pdl-ins__cab em {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary);
}
.pdl-ins__cab b { font-size: 10.5px; font-weight: 700; color: var(--text); }
.pdl-ins__cuerpo {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 18px;
  background: #F3F3F3;
}
.pdl-ins__cuerpo small { font-size: 9.5px; color: var(--text); }
.pdl-ins__cuerpo i {
  display: block;
  width: 70%;
  height: 5px;
  margin: -2px 0 5px 15px;
  border-radius: 3px;
  background: var(--border-strong);
}
.pdl-ins__radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text);
}
.pdl-ins__radio::before {
  content: '';
  flex: none;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid #8A8A8A;
  border-radius: 50%;
}
.pdl-ins__radio--si::before { border: 3px solid #0067C0; }
.pdl-ins__barra {
  position: relative;
  display: block;
  height: 9px;
  overflow: hidden;
  background: #E3E3E3;
  border: 1px solid #CFCFCF;
}
.pdl-ins__barra::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #168A16;
  transform-origin: left;
  animation: pdlInsBarra 5.6s ease both;
}

.pdl-ins__pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 10px;
  background: #F3F3F3;
  border-top: 1px solid var(--border-strong);
}
.pdl-ins__btn {
  display: grid;
  place-items: center;
  width: 62px;
  height: 22px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}
.pdl-ins__btn em { grid-area: 1 / 1; font-style: normal; }
.pdl-ins__btn--sig { animation: pdlInsBtn 5.6s ease both; }
.pdl-ins__sig  { animation: pdlInsSig 5.6s ease both; }
.pdl-ins__term { animation: pdlInsTerm 5.6s ease both; }
.pdl-cur--2w { animation: pdlC2w 5.6s ease-in-out both; }

/* Siguiente, Siguiente, instalando… y Terminar. */
@keyframes pdlC2w {
  0%        { left: 110px; top: 130px; transform: scale(1); }
  10%       { left: 170px; top: 190px; transform: scale(1); }
  12%       { left: 170px; top: 190px; transform: scale(.8); }
  14%, 28%  { left: 170px; top: 190px; transform: scale(1); }
  31%       { left: 170px; top: 190px; transform: scale(.8); }
  33%       { left: 170px; top: 190px; transform: scale(1); }
  44%, 68%  { left: 205px; top: 150px; transform: scale(1); }
  80%       { left: 170px; top: 190px; transform: scale(1); }
  85%       { left: 170px; top: 190px; transform: scale(.8); }
  89%, 100% { left: 170px; top: 190px; transform: scale(1); }
}
@keyframes pdlInsP1    { 0%, 14% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes pdlInsP2    { 0%, 14% { opacity: 0; } 17%, 33% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes pdlInsP3    { 0%, 33% { opacity: 0; } 36%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pdlInsP4    { 0%, 64% { opacity: 0; } 67%, 100% { opacity: 1; } }
@keyframes pdlInsBarra { 0%, 38% { transform: scaleX(0); } 63%, 100% { transform: scaleX(1); } }
@keyframes pdlInsSig   { 0%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pdlInsTerm  { 0%, 65% { opacity: 0; } 67%, 100% { opacity: 1; } }
@keyframes pdlInsBtn {
  0%, 9%    { opacity: 1;   border-color: var(--primary); background: #fff; }
  12%       { opacity: 1;   border-color: var(--primary); background: rgba(var(--primary-rgb), .12); }
  15%, 28%  { opacity: 1;   border-color: var(--primary); background: #fff; }
  31%       { opacity: 1;   border-color: var(--primary); background: rgba(var(--primary-rgb), .12); }
  35%, 64%  { opacity: .45; border-color: var(--border-strong); background: #fff; }
  67%, 83%  { opacity: 1;   border-color: var(--primary); background: #fff; }
  86%, 100% { opacity: 1;   border-color: var(--primary); background: rgba(var(--primary-rgb), .12); }
}

/* Escena 2 (Mac) · arrastrar a Aplicaciones */
.pdl-dmg { background: var(--bg); }
.pdl-dmg__app {
  position: absolute;
  z-index: 2;
  left: 44px;
  top: 76px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 13px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
  animation: pdlDmgApp 4.2s ease-in-out both;
}
.pdl-dmg__flecha {
  position: absolute;
  top: 102px;
  left: 112px;
  right: 112px;
  border-top: 2px dashed var(--border-strong);
}
.pdl-dmg__flecha::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -1px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--border-strong);
}
.pdl-dmg__dir {
  position: absolute;
  top: 70px;
  right: 40px;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #5AA9F0;
  animation: pdlDmgDir 4.2s ease both;
}
.pdl-dmg__dir span { font-size: 9.5px; color: var(--text-dim); }
.pdl-cur--2m { animation: pdlC2m 4.2s ease-in-out both; }

@keyframes pdlC2m {
  0%        { left: 150px; top: 175px; transform: scale(1);   opacity: 1; }
  22%       { left: 76px;  top: 106px; transform: scale(1); }
  28%       { left: 76px;  top: 106px; transform: scale(.85); }
  66%       { left: 213px; top: 93px;  transform: scale(.85); }
  72%       { left: 213px; top: 93px;  transform: scale(1);   opacity: 1; }
  78%, 100% { left: 213px; top: 93px;  transform: scale(1);   opacity: 0; }
}
@keyframes pdlDmgApp {
  0%, 28%   { left: 44px;  top: 76px; transform: scale(1);  opacity: 1; }
  66%       { left: 182px; top: 63px; transform: scale(.9); opacity: .9; }
  74%, 100% { left: 182px; top: 63px; transform: scale(.3); opacity: 0; }
}
@keyframes pdlDmgDir {
  0%, 68%   { transform: scale(1); }
  74%       { transform: scale(1.15); }
  80%, 100% { transform: scale(1); }
}

/* Escena 3 · la primera pantalla de la app: "Iniciar sesión" lleva al
   navegador. */
.pdl-app { background: #F5ECE3; }
.pdl-app__marca {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.pdl-app__lema {
  position: absolute;
  top: 44px;
  left: 20px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}
.pdl-app__lema span { color: var(--primary); }
.pdl-app__sub { position: absolute; top: 80px; left: 20px; font-size: 9.5px; color: var(--text-dim); }
.pdl-app__btn {
  position: absolute;
  top: 136px;
  left: 20px;
  width: 190px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 7px;
  animation: pdlAppBtn 4.4s ease both;
}
.pdl-app__nota { position: absolute; top: 172px; left: 20px; font-size: 8.5px; color: var(--text-dim); }
.pdl-app__ok {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  background: #F5ECE3;
  animation: pdlAppOk 4.4s ease both;
}
.pdl-app__ok span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}
.pdl-cur--3 { animation: pdlC3 4.4s ease-in-out both; }

@keyframes pdlAppBtn {
  0%, 53%   { transform: scale(1); }
  57%       { transform: scale(.96); }
  61%, 100% { transform: scale(1); }
}
@keyframes pdlAppOk {
  0%, 70%   { opacity: 0; visibility: hidden; }
  76%, 100% { opacity: 1; visibility: visible; }
}
@keyframes pdlC3 {
  0%, 28%   { left: 230px; top: 190px; transform: scale(1); opacity: 1; }
  50%       { left: 118px; top: 152px; transform: scale(1); }
  55%       { left: 118px; top: 152px; transform: scale(.8); }
  60%       { left: 118px; top: 152px; transform: scale(1); opacity: 1; }
  68%, 100% { left: 118px; top: 152px; transform: scale(1); opacity: 0; }
}

/* Una sola raya separa la guía de lo de abajo (newsletter y sesión). Si ya
   estaba apuntado no hay formulario, y la raya la lleva la sesión. */
.pdl__form,
.pdl__alt + .pdl__cal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.pdl__row { display: flex; gap: 8px; }
.pdl__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 13px;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pdl__input:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
}
.pdl__submit {
  flex: 0 0 auto;
  padding: 11px 18px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s ease;
}
.pdl__submit:hover { background: var(--primary-dark); }
.pdl__submit:disabled { opacity: .6; cursor: default; }

.pdl__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  font-size: .74rem;
  line-height: 1.55;
  color: var(--text-dim);
  cursor: pointer;
}
.pdl__consent input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--primary); }
.pdl__consent a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdl__status { margin-top: 9px; font-size: .78rem; line-height: 1.5; }
.pdl__status--err { color: #B91C1C; }

.pdl__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.pdl__ok-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .12);
  border-radius: 50%;
}

.pdl__cal { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.pdl__cal-txt { flex: 1 1 auto; min-width: 0; font-size: .86rem; color: var(--text-dim); }
.pdl__cal-btn {
  flex: 0 0 auto;
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pdl__cal-btn:hover { background: var(--light); border-color: var(--primary); }

/* Sin barra de descargas a la vista (móvil, tablet) o sin sitio para la
   flecha sin pisar el panel: fuera. */
@media (max-width: 900px), (pointer: coarse) {
  .pdl__aqui { display: none; }
}
/* Sin sitio para la escena: quedan los pasos, que son lo que cuenta. */
@media (max-width: 680px) {
  .pdl__guia { grid-template-columns: 1fr; }
  .pdl__demo { display: none; }
  .pdl__cal { flex-direction: column; align-items: stretch; gap: 14px; }
  .pdl__cal-btn { width: 100%; }
}
@media (max-width: 480px) {
  .pdl { padding: 12px; }
  .pdl__panel { padding: 26px 18px 22px; }
  .pdl__paso { padding: 9px 8px; }
  .pdl__row { flex-direction: column; }
  .pdl__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pdl, .pdl__panel, .pdl__aqui { animation: none; }
  /* Cada escena se ve directamente en su estado final. */
  .pdl__demo *,
  .pdl__demo *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}

/* ═══════════════════════════════════════════
   CTAs INLINE · frases con link subrayado
═══════════════════════════════════════════ */
.dl-inline {
  margin: 2.5rem auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-light);
  text-align: center;
}
.dl-inline--center { text-align: center; }
.dl-link {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 102, 15, .35);
  transition: text-decoration-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.dl-link:hover {
  text-decoration-color: var(--accent-deep);
  color: var(--accent-deep);
}

/* ═══════════════════════════════════════════
   CTAs · botones secundarios y banner
═══════════════════════════════════════════ */
.dl-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.dl-row__line {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-light);
}
.dl-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.dl-cta:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}
.dl-cta .btn__win-icon {
  display: inline-flex;
  align-items: center;
  width: 18px;
  height: 18px;
}
.dl-cta--solid {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  padding: 15px 26px;
  font-size: 16px;
}
.dl-cta--solid:hover {
  background: #d65605;
  border-color: #d65605;
  color: #fff;
}

.dl-banner {
  margin: 3rem auto 0;
  padding: 1.8rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.dl-banner__line {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dl-faq-close {
  margin: 2.5rem auto 0;
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: center;
}
.dl-faq-close .dl-link { color: var(--accent-deep); }

@media (max-width: 600px) {
  .dl-inline, .dl-faq-close { padding: 0 1.2rem; }
  .dl-banner { margin-left: 1rem; margin-right: 1rem; }
  .dl-link { white-space: normal; }
}

@keyframes dlpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dlpScaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #dl-picker, .dl-picker__card { animation: none; }
}

/* ══════════════════════════════════════════════════
   BANNER DE COOKIES (consentimiento RGPD · ver consent.js)
   ══════════════════════════════════════════════════ */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(28, 18, 13, 0.97);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.cookie-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-bar__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-bar__link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar__btns {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-bar__btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
/* El botón "Configurar" es un <a>: que no se vea subrayado ni con color de enlace */
a.cookie-bar__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-bar__btn--primary {
  background: var(--primary);
  color: #fff;
}
.cookie-bar__btn--primary:hover { background: var(--primary-dark); }
.cookie-bar__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
}
.cookie-bar__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
/* ── Panel desplegable de configuración (dentro del propio banner) ── */
.cookie-bar__panel {
  flex-basis: 100%;
  width: 100%;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cookie-bar__panel[hidden] { display: none; }
.cookie-bar__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-bar__opt-info { display: flex; flex-direction: column; }
.cookie-bar__opt-info strong { font-size: 0.85rem; font-weight: 700; color: #fff; }
.cookie-bar__opt-info span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.cookie-bar__save { align-self: flex-start; margin-top: 0.2rem; }

/* Interruptor compacto del banner */
.cookie-switch { position: relative; display: inline-block; width: 40px; height: 23px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255, 255, 255, 0.25); border-radius: 23px; transition: 0.25s;
}
.cookie-switch__slider::before {
  content: ""; position: absolute; height: 17px; width: 17px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.25s;
}
.cookie-switch input:checked + .cookie-switch__slider { background: var(--primary); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(17px); }
.cookie-switch input:disabled + .cookie-switch__slider { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  /* En columna, el eje principal es vertical: sin esto, flex-basis reservaría
     ese ancho como ALTO y dejaría un hueco enorme bajo el texto. */
  .cookie-bar__text { flex: 0 0 auto; }
  .cookie-bar__btns { justify-content: stretch; }
  .cookie-bar__btns .cookie-bar__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: opacity 0.2s; transform: translateY(0); }
}
