/* Noto Sans Display (SIL OFL 1.1), servida desde aquí: no se pide nada a Google. */
@font-face {
  font-family: 'Noto Sans Display';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  src: url('fuentes/noto-sans-display-latin-wdth-normal.woff2') format('woff2');
}

:root {
  --navy: #081b2d;
  --navy-2: #0f2a47;
  --navy-3: #16395f;
  --borde: #2a4a70;
  --oro: #f2bc3a;
  --rojo: #e34a43;
  --blanco: #f7f4ec;
  --gris: #9fb0c6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: radial-gradient(120% 60% at 50% 0%, var(--navy-3) 0%, var(--navy) 70%) var(--navy);
  color: var(--blanco);
  font-family: 'Noto Sans Display', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Hasta que llegan los textos, nada parpadea vacío. */
body:not(.listo) main { visibility: hidden; }

main { max-width: 560px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }

.logo { display: block; width: 190px; height: auto; margin: 0 auto 22px; }

h1, h2, h3 { font-stretch: 62.5%; font-weight: 900; text-transform: uppercase; line-height: 0.95; }
h1 { margin: 0 0 12px; font-size: clamp(42px, 12vw, 62px); text-align: center; }
h2 { margin: 0 0 6px; font-size: 34px; }
h3 { margin: 0 0 4px; font-size: 26px; }
.clave { color: var(--oro); }

.entradilla { margin: 0 auto 18px; max-width: 30em; text-align: center; color: var(--gris); font-size: 18px; }
.somos { margin: 10px 0 0; text-align: center; font-weight: 700; }
.somos[hidden] { display: none; }

.boton {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px;
  padding: 12px 18px; border-radius: 14px; border: 2px solid var(--borde); background: var(--navy-2);
  color: var(--blanco); font: inherit; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease;
}
.boton:active { transform: scale(0.98); }
.boton:focus-visible, input:focus-visible, textarea:focus-visible, .idiomas button:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.boton.principal { background: var(--oro); border-color: var(--oro); color: var(--navy); }
.boton[disabled] { opacity: 0.6; cursor: default; }

.animacion { display: block; width: 100%; height: auto; margin: 24px 0 8px; border-radius: 20px; border: 3px solid var(--navy-3); }
.pie-foto { margin: 0 0 22px; text-align: center; font-size: 13px; color: var(--gris); }

.lista { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.lista li {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 14px; background: var(--navy-2); font-size: 16px;
}
.lista span[aria-hidden] { font-size: 22px; line-height: 1.2; }
.lista b { color: var(--oro); font-weight: 800; }

.tarjeta { padding: 20px 16px; border-radius: 20px; background: rgba(15, 42, 71, 0.7); border: 2px solid var(--oro); scroll-margin-top: 16px; }
.ayuda { margin: 0 0 14px; color: var(--gris); font-size: 15px; }

form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; font-weight: 700; }
input[type='email'], input[type='text'], textarea {
  width: 100%; padding: 14px; border-radius: 12px; border: 2px solid var(--borde);
  background: var(--navy); color: var(--blanco); font: inherit; font-size: 17px;
}
textarea { resize: vertical; font-size: 15px; }
::placeholder { color: #6f82a0; }
.casilla { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--gris); }
.casilla input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--oro); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(227, 74, 67, 0.15); border: 1px solid var(--rojo); font-weight: 700; }
.error[hidden], [hidden] { display: none !important; }
.micro { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--gris); }

.puesto { margin: 4px 0 6px; font-size: 22px; font-weight: 700; }
.puesto .clave { font-stretch: 62.5%; font-weight: 900; font-size: 34px; }
.invitados { margin: 0 0 12px; font-weight: 700; color: var(--oro); }
.enlace { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 10px; }
.enlace input { font-size: 14px; padding: 12px; }
.enlace .boton { width: auto; min-height: 0; font-size: 15px; }
.ya-estabas { margin: 0; font-size: 18px; font-weight: 700; }

.encuesta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--borde); }
#encuesta-preguntas { display: grid; gap: 18px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; font-weight: 700; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; }
.opcion span {
  display: inline-block; padding: 9px 13px; border-radius: 999px; border: 2px solid var(--borde);
  background: var(--navy); font-size: 14px; cursor: pointer;
}
.opcion input:checked + span { border-color: var(--oro); background: #2a2410; color: var(--oro); font-weight: 700; }
.opcion input:focus-visible + span { outline: 3px solid var(--oro); outline-offset: 2px; }
.gracias { font-weight: 700; color: var(--oro); }

.privacidad { margin-top: 28px; font-size: 13px; color: var(--gris); }
.privacidad h3 { font-size: 18px; color: var(--blanco); }
.privacidad p { margin: 0; }

footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--gris); }
footer a { color: var(--oro); font-weight: 700; }
.idiomas { display: flex; justify-content: center; gap: 8px; }
.idiomas button {
  min-width: 44px; min-height: 36px; border-radius: 999px; border: 2px solid var(--borde);
  background: transparent; color: var(--gris); font: inherit; font-weight: 800; cursor: pointer;
}
.idiomas button[aria-pressed='true'] { border-color: var(--oro); color: var(--oro); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
