/* =============================================================================
   Inmonota — estilos de toda la web (hecha a mano, fuera del motor)

   Todos los colores salen de las variables de :root. El modo oscuro es solo
   esas mismas variables redefinidas más abajo: si añades algo, usa siempre
   una variable y no un color suelto, y heredará el modo oscuro sin más.
   Letra: Schibsted Grotesk, alojada en /assets/fonts/ (nada de Google Fonts).
   Sin estilos dentro del HTML: la seguridad del navegador (_headers) los bloquea.
   ========================================================================== */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-var.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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --fondo: #ffffff;
  --fondo-2: #f4f5f8;
  --superficie: #ffffff;
  --texto: #14161c;
  --texto-2: #4a5060;
  --texto-3: #6b7180;
  --linea: #e2e4ea;
  --linea-fuerte: #c9ccd6;
  --acento: #2741c4;
  --acento-hover: #1d329d;
  --acento-texto: #ffffff;
  --acento-suave: #eceffc;
  --aviso: #b45309;
  --error: #b42318;
  --ok: #146c43;
  --ok-suave: #e7f4ec;
  --telefono-marco: #14161c;
  --sombra-telefono: 0 24px 48px -20px rgba(20, 22, 28, 0.35), 0 8px 16px -8px rgba(20, 22, 28, 0.15);

  --letra: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1120px;
  --margen: 20px;
  --radio: 10px;
  --radio-grande: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #101217;
    --fondo-2: #161920;
    --superficie: #1a1d25;
    --texto: #eceef3;
    --texto-2: #b0b5c3;
    --texto-3: #8d93a3;
    --linea: #2a2e39;
    --linea-fuerte: #3a3f4c;
    --acento: #8d9fff;
    --acento-hover: #aab8ff;
    --acento-texto: #0c0f1e;
    --acento-suave: #1d2342;
    --aviso: #f0a24a;
    --error: #ff8b7e;
    --ok: #6fd39a;
    --ok-suave: #15291f;
    --telefono-marco: #000000;
    --sombra-telefono: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--letra);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--acento);
}

::selection { background: var(--acento); color: var(--acento-texto); }

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.5rem); font-weight: 760; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

a {
  color: var(--acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--acento-hover); }

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin: 0 auto;
  padding: 0 var(--margen);
}

.solo-lectores {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--acento);
  color: var(--acento-texto);
  border-radius: var(--radio);
  font-weight: 600;
}
.saltar:focus { top: 12px; color: var(--acento-texto); }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--acento);
  border-radius: var(--radio);
  background: var(--acento);
  color: var(--acento-texto);
  font: inherit;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.boton:hover { background: var(--acento-hover); border-color: var(--acento-hover); color: var(--acento-texto); }
.boton:disabled { opacity: 0.6; cursor: progress; }

.boton--sec {
  background: transparent;
  color: var(--texto);
  border-color: var(--linea-fuerte);
}
.boton--sec:hover { background: var(--fondo-2); border-color: var(--linea-fuerte); color: var(--texto); }

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 620;
  text-decoration: none;
}
.enlace-flecha svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.enlace-flecha:hover svg { transform: translateX(3px); }

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fondo);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

/* Logo: imagen con fondo transparente (assets/img/logo.png y, en modo
   oscuro, logo-oscuro.png). Para cambiar su tamaño, toca solo "height". */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; height: 30px; width: auto; }
.pie .logo img { height: 28px; }

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--texto-2);
  text-decoration: none;
  font-weight: 540;
  font-size: 0.97rem;
}
.menu a:hover { color: var(--texto); background: var(--fondo-2); }
.menu a[aria-current="page"] { color: var(--texto); font-weight: 650; }

.cabecera__acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}
.idioma {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--texto-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.idioma:hover { color: var(--texto); background: var(--fondo-2); }
.cabecera .boton { min-height: 42px; padding: 9px 16px; font-size: 0.95rem; }

.boton-menu {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--texto);
  cursor: pointer;
}
.boton-menu span {
  display: block;
  width: 22px; height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.boton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.boton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.boton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .cabecera__fila { gap: 12px; }
  .boton-menu { display: block; }
  .cabecera__acciones { margin-left: auto; }
  .cabecera__acciones .boton { display: none; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--margen) 20px;
    background: var(--fondo);
    border-bottom: 1px solid var(--linea);
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .menu a:hover { background: transparent; }
  .menu .boton { margin-top: 16px; border-bottom: 1px solid var(--acento); padding: 12px 22px; color: var(--acento-texto); }
  .menu .boton:hover { background: var(--acento-hover); color: var(--acento-texto); }
}
@media (min-width: 901px) {
  .menu .boton { display: none; }
}

/* ---------- Secciones ---------- */

.seccion { padding: clamp(64px, 9vw, 112px) 0; }
.seccion--gris { background: var(--fondo-2); }
.seccion--borde { border-top: 1px solid var(--linea); }

.seccion__cabeza { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.seccion__cabeza p { margin-top: 16px; color: var(--texto-2); font-size: 1.1rem; }
.seccion__pie { margin-top: 40px; }

/* ---------- Portada ---------- */

.portada { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.portada__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.portada h1 { max-width: 15ch; }
.portada__sub {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--texto-2);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}
.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.estado {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--texto-2);
  font-size: 0.95rem;
  font-weight: 560;
}
.estado::before {
  content: '';
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--aviso);
}

@media (max-width: 900px) {
  .portada__rejilla { grid-template-columns: 1fr; }
  .portada h1 { max-width: 18ch; }
}
@media (max-width: 520px) {
  .portada__acciones .boton { width: 100%; }
}

/* ---------- Teléfono dibujado (maqueta de la app) ---------- */

.telefono {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: var(--telefono-marco);
  box-shadow: var(--sombra-telefono);
}
.telefono__pantalla {
  overflow: hidden;
  border-radius: 35px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 0.82rem;
  line-height: 1.4;
}
.telefono__barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 26px 6px;
  font-size: 0.72rem;
  font-weight: 650;
}
.telefono__isla {
  width: 84px; height: 22px;
  border-radius: 12px;
  background: var(--telefono-marco);
}
.telefono__app { padding: 10px 16px 20px; }
.telefono__titulo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linea);
}
.telefono__titulo strong { font-size: 1rem; letter-spacing: -0.01em; }
.telefono__marca {
  color: var(--aviso);
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}
.telefono__persona { padding: 12px 0 8px; }
.telefono__persona strong { display: block; font-size: 1.05rem; }
.telefono__persona span { color: var(--texto-3); font-size: 0.76rem; }
.telefono dl { margin: 0; }
.telefono dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--linea);
}
.telefono dt { color: var(--texto-3); }
.telefono dd { margin: 0; font-weight: 560; }
.telefono__interes { color: var(--ok); }
.telefono__ia {
  margin: 8px 0 0;
  color: var(--acento);
  font-size: 0.74rem;
  font-weight: 620;
}
.telefono__siguiente {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--acento-suave);
}
.telefono__siguiente span { display: block; color: var(--texto-3); font-size: 0.72rem; }
.telefono__siguiente strong { font-weight: 620; }
.telefono__boton {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--acento);
  color: var(--acento-texto);
  text-align: center;
  font-weight: 650;
}

/* ---------- Lista de problemas ---------- */

.dos-columnas {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.dos-columnas .seccion__cabeza { margin-bottom: 0; }
@media (max-width: 860px) {
  .dos-columnas { grid-template-columns: 1fr; }
}

.lista-raya { margin: 0; padding: 0; list-style: none; }
.lista-raya li {
  padding: 22px 0;
  border-top: 1px solid var(--linea-fuerte);
}
.lista-raya li:last-child { border-bottom: 1px solid var(--linea-fuerte); }
.lista-raya h3 { margin-bottom: 6px; }
.lista-raya h2 { margin-bottom: 6px; font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.3; }
.lista-raya p { color: var(--texto-2); }

/* ---------- Pasos ---------- */

.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.pasos li {
  position: relative;
  padding-top: 64px;
  counter-increment: paso;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--acento);
  border-radius: 50%;
  color: var(--acento);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pasos li::after {
  content: '';
  position: absolute;
  top: 20px; left: 56px; right: -8px;
  height: 1px;
  background: var(--linea-fuerte);
}
.pasos li:last-child::after { display: none; }
.pasos h3 { margin-bottom: 8px; }
.pasos p { color: var(--texto-2); }
@media (max-width: 760px) {
  .pasos { grid-template-columns: 1fr; gap: 0; }
  .pasos li { padding: 0 0 32px 60px; }
  .pasos li::after { top: 48px; bottom: 6px; left: 20px; right: auto; width: 1px; height: auto; }
  .pasos li:last-child { padding-bottom: 0; }
  .pasos h3 { padding-top: 8px; }
}

/* ---------- Ejemplo: nota, ficha y mensaje ---------- */

.aviso-ejemplo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--aviso);
  font-weight: 600;
  font-size: 0.95rem;
}
.aviso-ejemplo svg { width: 18px; height: 18px; flex: none; }

.ejemplo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ejemplo__columna { display: grid; gap: 20px; }
@media (max-width: 860px) {
  .ejemplo { grid-template-columns: 1fr; }
}

.panel {
  border: 1px solid var(--linea);
  border-radius: var(--radio-grande);
  background: var(--superficie);
  overflow: hidden;
}
.panel__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--linea);
  font-weight: 650;
}
.panel__cabeza h3 { font-size: 1rem; letter-spacing: 0; }
.panel__cabeza span { color: var(--texto-3); font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.panel__cuerpo { padding: 20px; }

.nota-voz {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.nota-voz__icono {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--acento-suave);
  color: var(--acento);
}
.nota-voz__icono svg { width: 18px; height: 18px; }
.nota-voz__onda { flex: 1; height: 28px; color: var(--linea-fuerte); }
.nota-voz__onda svg { width: 100%; height: 100%; }

.cita { margin: 0; color: var(--texto); font-size: 1.02rem; }
.cita p::before { content: '«'; }
.cita p::after { content: '»'; }

.ficha { margin: 0; }
.ficha div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 11px 20px;
  border-top: 1px solid var(--linea);
}
.ficha div:first-child { border-top: 0; }
.ficha dt { color: var(--texto-3); }
.ficha dd { margin: 0; font-weight: 560; }

.mensaje {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.mensaje p + p { margin-top: 0.8em; }
.mensaje__nota {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  color: var(--texto-3);
  font-size: 0.9rem;
}

/* ---------- Bloques de texto y listas ---------- */

.texto { max-width: 68ch; }
.texto p, .texto li { color: var(--texto-2); }
.texto strong { color: var(--texto); }
.texto h2 { margin: 56px 0 16px; }
.texto h2:first-child { margin-top: 0; }
.texto h3 { margin: 32px 0 10px; }
.texto ul, .texto ol { margin: 14px 0; padding-left: 1.25em; }
.texto li + li { margin-top: 6px; }
.texto li::marker { color: var(--texto-3); }

.lista-check { margin: 0; padding: 0; list-style: none; }
.lista-check li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--texto-2);
}
.lista-check li::before {
  content: '';
  position: absolute;
  left: 2px; top: 15px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--acento);
  border-bottom: 2px solid var(--acento);
  transform: rotate(-45deg);
}
.lista-check strong { color: var(--texto); }

.destacado {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radio-grande);
  background: var(--acento-suave);
}
.destacado h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.destacado p { margin-top: 14px; color: var(--texto-2); font-size: 1.08rem; }
.destacado p:first-of-type { color: var(--texto); font-size: 1.2rem; font-weight: 560; line-height: 1.5; }

.proximamente { margin: 0; padding: 0; list-style: none; }
.proximamente li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--linea);
}
.proximamente li:last-child { border-bottom: 1px solid var(--linea); }
.proximamente span { color: var(--texto-3); font-size: 0.92rem; white-space: nowrap; }

/* ---------- Precio ---------- */

.precio {
  border: 1px solid var(--linea);
  border-radius: var(--radio-grande);
  background: var(--superficie);
}
.precio__fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--linea);
}
.precio__fila:first-child { border-top: 0; }
.precio__fila h3 { font-size: 1.08rem; }
.precio__fila p { color: var(--texto-2); font-size: 0.95rem; margin-top: 2px; }
.precio__valor {
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.precio__valor small { font-size: 0.9rem; font-weight: 500; color: var(--texto-2); }
.precio__nota {
  margin-top: 16px;
  color: var(--texto-3);
  font-size: 0.95rem;
}

/* ---------- Preguntas frecuentes ---------- */

.preguntas { border-top: 1px solid var(--linea-fuerte); }
.preguntas details { border-bottom: 1px solid var(--linea-fuerte); }
.preguntas summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  font-weight: 640;
  font-size: 1.08rem;
  list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::before,
.preguntas summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--texto-2);
  transition: transform 0.2s ease;
}
.preguntas summary::after { transform: rotate(90deg); }
.preguntas details[open] summary::after { transform: rotate(0deg); }
.preguntas summary:hover { color: var(--acento); }
.preguntas details > div { padding: 0 44px 22px 0; color: var(--texto-2); max-width: 68ch; }

/* ---------- Formulario de acceso anticipado ---------- */

.acceso {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.acceso .seccion__cabeza { margin-bottom: 0; }
@media (max-width: 860px) {
  .acceso { grid-template-columns: 1fr; }
}

.formulario {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--linea);
  border-radius: var(--radio-grande);
  background: var(--superficie);
}
.campos { display: grid; gap: 20px; }
.campo { display: grid; gap: 6px; }
.campo label, .campo legend {
  padding: 0;
  font-weight: 620;
  font-size: 0.97rem;
}
.campo label span, .campo legend span { color: var(--texto-3); font-weight: 450; }
.campo input[type="text"],
.campo input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--texto);
  font: inherit;
  font-size: 1rem;
}
.campo input::placeholder { color: var(--texto-3); opacity: 1; }
.campo input:focus { outline: 2px solid var(--acento); outline-offset: 0; border-color: var(--acento); }
.campo input[aria-invalid="true"] { border-color: var(--error); }
.campo__error { min-height: 0; color: var(--error); font-size: 0.9rem; font-weight: 520; }
.campo__error:empty { display: none; }

fieldset.campo { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.campo legend { margin-bottom: 8px; }
.opciones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 420px) {
  .opciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opcion { position: relative; }
.opcion input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.opcion span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--texto);
  font-weight: 560;
  font-size: 0.95rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opcion input:hover + span { border-color: var(--texto-3); }
.opcion input:checked + span {
  border-color: var(--acento);
  background: var(--acento-suave);
  color: var(--acento);
  font-weight: 680;
}
.opcion input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }

.casilla {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.97rem;
  color: var(--texto-2);
}
.casilla input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--acento);
}
.casilla input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.trampa {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.turnstile { min-height: 65px; }

.formulario__enviar { width: 100%; }
.formulario__aviso { font-size: 0.97rem; font-weight: 540; }
.formulario__aviso:empty { display: none; }
.formulario__aviso--error { color: var(--error); }

.gracias {
  padding: 8px 0;
}
.gracias h3 { font-size: 1.3rem; color: var(--ok); }
.gracias p { margin-top: 10px; color: var(--texto-2); }
.formulario.enviado .campos { display: none; }
.formulario:not(.enviado) .gracias { display: none; }

.letra-pequena { margin-top: 18px; color: var(--texto-3); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Páginas interiores ---------- */

.cabeza-pagina { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.cabeza-pagina h1 { max-width: 20ch; }
.cabeza-pagina p { max-width: 40rem; margin-top: 18px; color: var(--texto-2); font-size: 1.15rem; }

.cierre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--linea);
  border-radius: var(--radio-grande);
  background: var(--superficie);
}
.cierre h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
.cierre p { margin-top: 6px; color: var(--texto-2); }

.pendiente {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--acento-suave);
  color: var(--aviso);
  font-weight: 620;
}

.legal { padding-bottom: clamp(64px, 9vw, 112px); }
.legal .texto h2 { font-size: 1.35rem; margin-top: 40px; }
.legal .texto p, .legal .texto li { font-size: 1rem; }
.fecha-legal { color: var(--texto-3); font-size: 0.95rem; }

/* ---------- Pie ---------- */

.pie {
  padding: 48px 0 40px;
  border-top: 1px solid var(--linea);
  color: var(--texto-2);
  font-size: 0.95rem;
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}
.pie__marca p { margin-top: 12px; max-width: 30ch; }
.pie nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pie__titulo { margin-bottom: 12px; font-size: 0.95rem; font-weight: 680; color: var(--texto); }
.pie a { color: var(--texto-2); text-decoration: none; }
.pie a:hover { color: var(--acento); text-decoration: underline; }
.pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--linea);
  color: var(--texto-3);
  font-size: 0.9rem;
}

/* ---------- 404 ---------- */

.no-existe { padding: clamp(80px, 14vw, 160px) 0; }
.no-existe p { margin-top: 16px; color: var(--texto-2); max-width: 36rem; }
.no-existe .portada__acciones { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.parrafo-intro { margin: 16px 0 12px; color: var(--texto-2); font-size: 1.1rem; max-width: 40rem; }
.lista-raya.seccion__pie { margin-top: 40px; }

/* Qué hace la IA y qué haces tú */
.reparto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.reparto .lista-check { margin: 0; padding: 12px 20px 16px; }
@media (max-width: 760px) {
  .reparto { grid-template-columns: 1fr; }
}
