@font-face { font-family: "Bebas"; src: url("/bebas.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* Monocromo VGolden: oscuro por defecto, claro si el sistema lo pide. */
:root {
  --fondo: #000000; --superficie: #151515; --linea: #2f2f2f; --texto: #f4f4f4; --tenue: #a3a3a3; --invertido: #000000;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --fondo: #ffffff; --superficie: #f2f2f2; --linea: #d4d4d4; --texto: #000000; --tenue: #5c5c5c; --invertido: #ffffff; color-scheme: light; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fondo); color: var(--texto);
  font: 400 1.0625rem/1.6 "Inter", system-ui, sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; }
[hidden] { display: none !important; }

.cabecera { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--linea); }
.logo { display: block; width: 40px; height: 40px; }
.logo-claro { display: none; }
@media (prefers-color-scheme: light) { .logo-oscuro { display: none; } .logo-claro { display: block; } }
.marca { font-family: "Bebas", sans-serif; font-size: 1.5rem; letter-spacing: .04em; line-height: 1; padding-top: .15em; }
.quien { margin-left: auto; color: var(--tenue); font-size: .875rem; }

main { width: 100%; max-width: 38rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; flex: 1; }
section { display: flex; flex-direction: column; gap: 1.25rem; }

.titulo { font-family: "Bebas", sans-serif; font-weight: 400; font-size: clamp(3rem, 12vw, 4.75rem); line-height: .92; letter-spacing: .01em; margin: 0; }
.pregunta { font-weight: 600; font-size: clamp(1.3rem, 4.6vw, 1.6rem); line-height: 1.3; margin: 0; }
.entrada { margin: 0; color: var(--tenue); max-width: 34rem; }
.nota { margin: 0; color: var(--tenue); font-size: .875rem; }
.contador { margin: 0; color: var(--tenue); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.aviso { margin: 0; padding: .9rem 1rem; border-left: 3px solid var(--texto); background: var(--superficie); }

.pasos { margin: 0; padding-left: 1.4rem; display: grid; gap: .6rem; }
.pasos li { padding-left: .25rem; }

.boton {
  appearance: none; border: 1px solid var(--texto); background: var(--texto); color: var(--invertido);
  font: 600 1rem/1 "Inter", sans-serif; padding: 1rem 1.5rem; border-radius: 999px; cursor: pointer;
  text-decoration: none; text-align: center; align-self: flex-start; min-height: 3.25rem;
}
.boton:disabled { opacity: .35; cursor: not-allowed; }
.boton-sec { background: transparent; color: var(--texto); }
.acciones { display: flex; gap: .75rem; justify-content: space-between; margin-top: .5rem; }

.progreso { height: 3px; background: var(--linea); }
.progreso span { display: block; height: 100%; width: 0; background: var(--texto); transition: width .25s ease; }

.opciones { display: grid; gap: .6rem; }
.opcion {
  display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; text-align: left;
  padding: 1rem; border: 1px solid var(--linea); border-radius: 14px; background: transparent; color: var(--texto);
  font: inherit; cursor: pointer;
}
.opcion .letra { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; font-weight: 600; font-size: .875rem; }
.opcion[aria-checked="true"] { border-color: var(--texto); background: var(--superficie); }
.opcion[aria-checked="true"] .letra { background: var(--texto); color: var(--invertido); border-color: var(--texto); }

.campo-edad { display: flex; align-items: baseline; gap: .75rem; }
.campo-edad input {
  width: 7rem; font: 400 3.5rem/1 "Bebas", sans-serif; color: var(--texto); background: transparent;
  border: 0; border-bottom: 2px solid var(--texto); padding: .1em 0 0;
}
.campo-edad span { color: var(--tenue); }

.abierta { display: grid; gap: .5rem; }
.enunciado-abierta { font-weight: 600; }
textarea {
  width: 100%; resize: vertical; font: inherit; color: var(--texto); background: var(--superficie);
  border: 1px solid var(--linea); border-radius: 12px; padding: .85rem 1rem;
}
textarea:focus { border-color: var(--texto); }
.cuenta { justify-self: end; color: var(--tenue); font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* El sello: lo único llamativo de la página. */
.sello {
  align-self: flex-start; font-family: "Bebas", sans-serif; font-size: 2rem; letter-spacing: .08em; line-height: 1;
  padding: .45em .7em .3em; border: 3px double var(--texto); border-radius: 6px; transform: rotate(-6deg);
  margin: .5rem 0 .75rem .25rem; animation: sellar .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.sello-no { color: var(--tenue); border-color: var(--tenue); }
@keyframes sellar { from { transform: rotate(-6deg) scale(1.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

.pie { display: flex; gap: 1.5rem; justify-content: center; padding: 1.25rem; border-top: 1px solid var(--linea); color: var(--tenue); font-size: .875rem; }

@media (prefers-reduced-motion: reduce) { .sello { animation: none; } .progreso span { transition: none; } }

/* El foco que pone el script en el título (para lectores de pantalla) no debe dibujar un recuadro. */
h1[tabindex="-1"]:focus { outline: none; }
.campo-edad input::-webkit-outer-spin-button, .campo-edad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.campo-edad input { -moz-appearance: textfield; appearance: textfield; }
.campo-edad input:focus-visible { outline: none; border-bottom-width: 3px; }
