/* Sorteo Secreto */

/* ---------- Tipografías (archivos en /assets/fonts, ver tools/descargar-fuentes.sh) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Colores y medidas ---------- */
:root {
  --tinta: #17233D;
  --fondo: #F5F6F8;
  --blanco: #FFFFFF;
  --lacre: #B3122B;
  --lacre-oscuro: #8E0E22;
  --lacre-claro: #FBEAEC;
  --niebla: #E1E4EB;
  --borde: #CDD2DC;
  --grafito: #4F5868;
  --gris: #8A92A1;
  --sobre-tinta: #C9CFDB;
  --borde-tinta: #5E6A85;
  --velo: rgba(23, 35, 61, 0.62);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;

  --radio: 12px;
  --radio-boton: 14px;
  --ancho: 600px;
  --margen: 24px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--tinta); text-underline-offset: 3px; }
a:hover { color: var(--lacre); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.sobre-tinta :focus-visible, .revelacion :focus-visible { outline-color: var(--blanco); }

[hidden] { display: none !important; }

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

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

main { flex: 1 0 auto; }

/* ---------- Marca ---------- */
.cabecera { padding: 20px 0; }
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.marca:hover { color: inherit; }
.sello {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lacre);
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  padding-bottom: 2px;
}
.marca__nombre { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Tipografía ---------- */
.titulo-grande {
  font-size: clamp(38px, 9vw, 54px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.titulo {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.titulo-seccion { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.titulo-tarjeta { font-size: 19px; line-height: 1.3; font-weight: 700; }
.titulo-sorteo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.entradilla { font-size: 17px; line-height: 1.55; color: var(--grafito); }
.texto-suave { color: var(--grafito); }
.texto-pequeno { font-size: 15px; line-height: 1.5; }
.texto-mini { font-size: 14px; line-height: 1.5; }
.numero { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radio-boton);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.boton:active:not(:disabled) { transform: scale(0.985); }
.boton--grande { min-height: 60px; font-size: 18px; }
.boton--lacre { background: var(--lacre); color: var(--blanco); }
.boton--lacre:hover { background: var(--lacre-oscuro); color: var(--blanco); }
.boton--tinta { background: var(--tinta); color: var(--blanco); }
.boton--tinta:hover { background: #0F1930; color: var(--blanco); }
.boton--borde { background: var(--blanco); border-color: var(--borde); color: var(--tinta); font-weight: 600; min-height: 52px; font-size: 16px; }
.boton--borde:hover { border-color: var(--tinta); color: var(--tinta); }
.boton--texto { background: transparent; color: var(--tinta); font-weight: 600; }
.boton--texto:hover { color: var(--lacre); }
.boton--claro { background: var(--blanco); color: var(--tinta); }
.boton--claro:hover { color: var(--tinta); background: #EEF0F4; }
.boton--borde-claro { background: transparent; border-color: var(--borde-tinta); color: var(--blanco); font-weight: 600; }
.boton--borde-claro:hover { border-color: var(--blanco); color: var(--blanco); }
.boton--texto-claro { background: transparent; color: var(--blanco); font-weight: 600; }
.boton--texto-claro:hover { color: var(--sobre-tinta); }
.boton--peligro { width: auto; min-height: 48px; background: transparent; border-color: var(--lacre); color: var(--lacre); font-size: 16px; }
.boton--peligro:hover { background: var(--lacre-claro); color: var(--lacre-oscuro); }
.boton:disabled { background: #DDE1E8; border-color: #DDE1E8; color: #5E6575; }

.boton-icono {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radio);
  background: transparent;
  color: var(--tinta);
}
.boton-icono:hover { background: rgba(23, 35, 61, 0.06); color: var(--tinta); }
.boton-icono--suave { color: var(--grafito); }

.icono { flex: none; width: 20px; height: 20px; }
.icono--24 { width: 24px; height: 24px; }

.acciones { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Inicio ---------- */
.inicio__hero { padding-top: 28px; }
.inicio__hero .entradilla { margin-top: 20px; }
.inicio__cta { margin-top: 32px; }
.contador { margin-top: 18px; text-align: center; font-size: 15px; color: var(--grafito); }
.contador strong { color: var(--tinta); font-weight: 700; }

.pasos-como { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.pasos-como li { display: flex; gap: 16px; }
.pasos-como__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.pasos-como__titulo { margin-top: 4px; font-weight: 700; }
.pasos-como p:last-child { margin-top: 4px; font-size: 16px; color: var(--grafito); }

.seccion { margin-top: 88px; }
.seccion--cerca { margin-top: 56px; }

.inicio__secreto { margin-top: 28px; font-size: 16px; }
.inicio__secreto a { font-weight: 600; }

.nota {
  padding: 22px 20px;
  border-radius: 14px;
  background: var(--blanco);
  border: 1px solid var(--niebla);
  font-size: 16px;
}

/* ---------- Pie ---------- */
.pie {
  margin-top: 64px;
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--niebla);
  font-size: 15px;
}
.pie nav { display: flex; flex-direction: column; gap: 4px; }
.pie nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 500; }
.pie__donativo { margin-top: 16px; color: var(--grafito); }
.pie__donativo a { font-weight: 600; }
.pie__copyright { margin-top: 24px; font-size: 14px; color: var(--grafito); }
.pie--centrado { text-align: center; padding-top: 28px; }
.pie--centrado a { font-weight: 600; font-size: 16px; }

/* ---------- Asistente ---------- */
body.con-barra { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

.asistente__arriba { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; margin-left: -16px; }
.asistente__paso { font-size: 15px; font-weight: 600; color: var(--grafito); }
.progreso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.progreso span { height: 4px; border-radius: 2px; background: var(--niebla); transition: background-color .25s ease; }
.progreso span.activo { background: var(--tinta); }

.paso { padding-top: 32px; }
.paso .entradilla { margin-top: 10px; font-size: 16px; }

.campos { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label, .etiqueta { font-size: 15px; font-weight: 600; }
.campo__ayuda { font-size: 14px; color: var(--grafito); }
.entrada {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  font-size: 17px;
  color: var(--tinta);
  appearance: none;
  -webkit-appearance: none;
}
.entrada::placeholder { color: var(--gris); opacity: 1; }
.entrada:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(23, 35, 61, 0.12); }
input[type="date"].entrada { display: flex; align-items: center; line-height: 56px; }
input[type="date"].entrada::-webkit-date-and-time-value { text-align: left; }

.anadir { margin-top: 24px; display: flex; gap: 8px; }
.anadir .entrada { flex: 1; min-width: 0; }
.anadir .boton { width: auto; flex: none; padding: 0 18px; font-size: 16px; }
.error-campo { margin-top: 8px; font-size: 15px; color: var(--lacre-oscuro); }

.recuento { margin: 24px 0 10px; font-size: 15px; font-weight: 600; color: var(--grafito); }

.fila {
  min-height: 56px;
  padding: 4px 4px 4px 16px;
  border-radius: var(--radio);
  background: var(--blanco);
  border: 1px solid var(--niebla);
  display: flex;
  align-items: center;
  gap: 14px;
}
.fila + .fila { margin-top: 8px; }
.fila__texto { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fila__nombre { font-weight: 500; }
.fila__principal { display: block; font-weight: 600; }
.fila__detalle { display: block; margin-top: 2px; font-size: 14px; color: var(--grafito); }
.fila--exclusion { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.fila--alerta { border: 1.5px solid var(--lacre); }

.boton-anadir {
  margin-top: 12px;
  width: 100%;
  min-height: 56px;
  border-radius: var(--radio);
  border: 1.5px dashed var(--gris);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tinta);
}
.boton-anadir:hover { border-color: var(--tinta); background: var(--blanco); }

.alerta {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radio);
  background: var(--lacre-claro);
  color: var(--lacre-oscuro);
  display: flex;
  gap: 12px;
}
.alerta strong { display: block; font-size: 16px; }
.alerta p { margin-top: 4px; font-size: 15px; line-height: 1.45; }
.alerta + ul { margin-top: 12px; }

.aviso {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radio);
  background: var(--blanco);
  border: 1px solid var(--niebla);
  font-size: 15px;
}

.barra-inferior {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--fondo);
  border-top: 1px solid var(--niebla);
  padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
}
.barra-inferior .error-envio { margin-bottom: 10px; font-size: 15px; color: var(--lacre-oscuro); }

/* ---------- Hojas (diálogos) ---------- */
.hoja {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 10px var(--margen) calc(28px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--blanco);
  color: var(--tinta);
  overflow-y: auto;
}
.hoja::backdrop { background: var(--velo); }
.hoja[open] { animation: subir .28s cubic-bezier(.2, .8, .2, 1); }
.hoja__asa { display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--borde); }
.hoja__arriba { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hoja__arriba .boton-icono { margin-right: -12px; }
.hoja__titulo { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.hoja__pregunta { margin-top: 28px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hoja__texto { margin-top: 12px; color: var(--grafito); }
.hoja .acciones { margin-top: 28px; }

@media (min-width: 640px) {
  .hoja { margin: auto; border-radius: 22px; padding-bottom: 28px; }
}

.grupo-campos { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.grupo-campos legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }

.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  font-size: 16px;
  font-weight: 500;
  color: var(--tinta);
}
.ficha:hover { border-color: var(--tinta); }
.ficha[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); font-weight: 600; }
.ficha:disabled { border-style: dashed; border-color: var(--niebla); background: var(--fondo); color: var(--gris); }

.opcion {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radio);
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  cursor: pointer;
}
.opcion + .opcion { margin-top: 8px; }
.opcion:has(input:checked) { border-color: var(--tinta); background: var(--fondo); }
.opcion input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--tinta); }
.opcion__titulo { display: block; font-size: 16px; font-weight: 600; }
.opcion__detalle { display: block; margin-top: 2px; font-size: 14px; color: var(--grafito); }

/* ---------- Sorteo hecho ---------- */
.listo__resumen { margin-top: 20px; }
.listo__nombre { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.tarjeta {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--blanco);
  border: 1px solid var(--niebla);
}
.tarjeta--primera { margin-top: 28px; }
.tarjeta--tinta { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.tarjeta--tinta .texto-suave { color: var(--sobre-tinta); }
.tarjeta__cabeza { display: flex; align-items: center; gap: 10px; }
.tarjeta .texto-pequeno { margin-top: 6px; }
.tarjeta .acciones { margin-top: 16px; }
.enlace-caja {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--fondo);
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.boton-doble {
  min-height: 64px;
  padding: 10px 16px;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
}
.boton-doble span span { display: block; }
.boton-doble__detalle { margin-top: 2px; font-size: 13px; font-weight: 400; }
.boton--claro .boton-doble__detalle { color: var(--grafito); }
.boton--borde-claro .boton-doble__detalle { color: var(--sobre-tinta); }

.donativo { margin-top: 40px; text-align: center; }
.donativo p { color: var(--grafito); }
.donativo a { display: inline-block; margin-top: 4px; font-weight: 700; }

/* ---------- Grupo ---------- */
.grupo__datos { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.grupo__datos p { display: flex; align-items: center; gap: 10px; }
.grupo__datos .icono { color: var(--grafito); }
.grupo__instruccion { margin-top: 32px; font-size: 18px; font-weight: 700; }

.papeles { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .papeles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.papelito {
  min-height: 100px;
  padding: 18px 16px;
  border-radius: var(--radio);
  border: 1px solid var(--niebla);
  background: linear-gradient(225deg, var(--niebla) 0 15px, var(--blanco) 15px);
  color: var(--tinta);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.papelito:hover:not(:disabled) { border-color: var(--tinta); box-shadow: 0 6px 16px rgba(23, 35, 61, 0.08); }
.papelito:active:not(:disabled) { transform: scale(0.98); }
.papelito__nombre { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.papelito__estado { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.papelito__estado .icono { width: 16px; height: 16px; }
.papelito:disabled { background: linear-gradient(225deg, #D9DDE5 0 15px, #ECEEF2 15px); color: var(--grafito); }
.papelito:disabled .papelito__nombre { font-weight: 600; }
.papelito.es-mio { border: 1.5px solid var(--tinta); }
.papelito.es-mio .papelito__estado { color: var(--lacre); font-weight: 600; }

.mensaje-error { margin-top: 16px; padding: 14px 16px; border-radius: var(--radio); background: var(--lacre-claro); color: var(--lacre-oscuro); font-size: 15px; }

/* ---------- Revelación ---------- */
.revelacion {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: var(--tinta);
  color: var(--blanco);
}
.revelacion__dentro {
  min-height: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--margen) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.revelacion .marca { margin: 20px 0; }
.revelacion__papel { margin-top: 52px; position: relative; perspective: 900px; }
.sello--grande {
  position: absolute;
  top: -26px;
  left: 50%;
  margin-left: -26px;
  z-index: 2;
  width: 52px;
  height: 52px;
  font-size: 30px;
  box-shadow: 0 0 0 4px var(--tinta);
}
.papel {
  padding: 48px 24px 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--blanco) 0%, var(--blanco) 49.6%, #E6E9EF 50%, var(--blanco) 51.4%, var(--blanco) 100%);
  color: var(--tinta);
  text-align: center;
  transform: rotate(-1.2deg);
  transform-origin: 50% 0;
  box-shadow: 0 24px 48px rgba(5, 10, 25, 0.35);
}
.papel__para { font-size: 15px; color: var(--grafito); overflow-wrap: anywhere; }
.papel__nombre {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 18vw, 76px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.papel__raya { width: 40px; height: 1px; margin: 30px auto 0; background: var(--borde); }
.papel__sorteo { margin-top: 18px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.papel__detalles { margin-top: 4px; font-size: 15px; color: var(--grafito); }
.revelacion__nota { margin-top: 36px; text-align: center; font-size: 15px; color: var(--sobre-tinta); }
.revelacion__acciones { margin-top: auto; padding-top: 32px; }
.revelacion__acciones > p { margin-bottom: 16px; font-size: 15px; color: var(--sobre-tinta); }

/* La única animación de la web: el papel se despliega y aparece el nombre */
.revelacion.anima .papel { animation: desplegar .7s cubic-bezier(.2, .7, .2, 1) both; }
.revelacion.anima .papel > * { animation: aparecer .5s ease both; animation-delay: .55s; }
.revelacion.anima .papel__nombre { animation-duration: .9s; animation-delay: .7s; }
.revelacion.anima .sello--grande { animation: sellar .45s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: .15s; }

@keyframes desplegar {
  0% { transform: rotate(-1.2deg) rotateX(-82deg); opacity: .4; }
  100% { transform: rotate(-1.2deg) rotateX(0); opacity: 1; }
}
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes sellar { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

body.bloqueado { overflow: hidden; }

/* ---------- Organizador ---------- */
.franja-privada {
  background: var(--tinta);
  color: var(--blanco);
  font-size: 14px;
  line-height: 1.4;
}
.franja-privada .contenedor { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.franja-privada .icono { width: 18px; height: 18px; }

.org__fecha { margin-top: 8px; font-size: 15px; color: var(--grafito); }
.cabeza-dividida { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.barra-progreso { margin-top: 12px; height: 6px; border-radius: 3px; background: var(--niebla); overflow: hidden; }
.barra-progreso span { display: block; height: 100%; background: var(--tinta); width: 0; transition: width .3s ease; }
.lista-vistos { margin-top: 12px; }
.lista-vistos li {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #EEF0F4;
}
.lista-vistos li:last-child { border-bottom: 0; }
.lista-vistos__nombre { font-weight: 600; overflow-wrap: anywhere; }
.lista-vistos__estado { font-size: 14px; font-weight: 400; color: var(--grafito); }
.boton-pequeno {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  font-size: 15px;
  font-weight: 600;
  color: var(--tinta);
}
.boton-pequeno:hover { border-color: var(--tinta); }

.zona-borrar { margin-top: 16px; padding: 20px 4px 0; }
.zona-borrar h2 { font-size: 17px; font-weight: 700; }
.zona-borrar p { margin-top: 6px; }
.zona-borrar .boton { margin-top: 12px; }

/* ---------- Páginas de texto ---------- */
.articulo { padding-top: 24px; }
.articulo h1 { margin-bottom: 20px; }
.articulo h2 { margin-top: 48px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.articulo p, .articulo ol, .articulo ul { margin-top: 14px; color: #2B3548; }
.articulo .entradilla { color: var(--grafito); }
.articulo ol.lista-numerada { counter-reset: n; }
.articulo ol.lista-numerada li { counter-increment: n; position: relative; padding-left: 40px; margin-top: 12px; }
.articulo ol.lista-numerada li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--tinta);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--tinta);
}
.preguntas { margin-top: 8px; }
.preguntas details { border-bottom: 1px solid var(--niebla); }
.preguntas summary {
  min-height: 56px;
  padding: 14px 32px 14px 0;
  position: relative;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--grafito); border-bottom: 2px solid var(--grafito);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.preguntas details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.preguntas details p { margin: 0 0 18px; color: var(--grafito); }
.articulo .boton { margin-top: 32px; }

/* Privacidad: casi vacía a propósito */
body.pagina-vacia { background: var(--blanco); }
.privacidad { padding-top: 22vh; }
.privacidad h1 { font-size: 15px; font-weight: 600; color: var(--grafito); }
.privacidad p { margin-top: 16px; font-size: 19px; line-height: 1.55; max-width: 34em; }
.privacidad__pie { padding: 0 0 calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--grafito); }

/* Error */
.error-pagina { padding-top: 12vh; }
.error-pagina p { margin-top: 12px; }
.error-pagina .boton { margin-top: 32px; }

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  :root { --margen: 32px; }
  .inicio__hero { padding-top: 64px; }
  .inicio__cta { max-width: 320px; }
  .contador { text-align: left; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
