/*
 * La página de escuelademisterios.com. Los valores salen de los tokens de la aplicación
 * (plataforma/src/ui/theme.css, paleta «Noche índigo»): si allá cambia la marca, aquí se copia a mano.
 * Un solo tema, oscuro, como la aplicación.
 *
 * Dos páginas comparten este archivo: la landing (body.landing) y la de error (404.html), que usa
 * solo la base de arriba. Lo que se mueve depende de constelacion.js, que pone «con-js» en <html>:
 * sin script todo queda visible y quieto.
 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fuentes/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fuentes/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #E2CF92;
  --accent-strong: #EEDFB3;
  --accent-muted: #B5A574;
  --on-accent: #1D1808;
  --focus: #F6EBC9;
  --bg: #0F1019;
  --surface-1: #171926;
  --surface-2: #1F2233;
  --surface-3: #292D42;
  --border: #343851;
  --border-control: #8A8FB0;
  --text: #F2F0F7;
  --text-2: #C4C3D6;
  --text-3: #9D9DB7;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* La foto del muelle, con un velo que deja leer el texto encima. */
.foto,
.foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.foto {
  z-index: -2;
  overflow: hidden;
}
.foto img {
  object-fit: cover;
  object-position: 50% 70%;
}
.foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(15 16 25 / 0.55), rgb(15 16 25 / 0.5) 40%, rgb(15 16 25 / 0.85)),
    rgb(15 16 25 / 0.25);
}

main {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 54rem;
  padding: 2.5rem 1.5rem clamp(7rem, 24vh, 16rem);
  text-align: center;
}

.cuando {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* El logotipo provisional: el nombre con un punto de oro al final, que crece con la letra. */
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.punto {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--accent);
}

.frase {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  /* El texto claro, no el secundario: sobre la niebla de la foto, el secundario no llegaba a 4.5. */
  color: var(--text);
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  text-wrap: pretty;
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.875rem;
}
footer p {
  margin: 0;
  max-width: 48rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------------------------------------------------------------------------
 * La landing
 * --------------------------------------------------------------------------------------------- */

body.landing {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.piezas {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* La portada: el cielo ocupa la pantalla; la foto del muelle queda muy al fondo. */
.portada {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
  text-align: center;
}
.portada .foto::after {
  background:
    radial-gradient(ellipse at 50% 38%, rgb(15 16 25 / 0.35), rgb(15 16 25 / 0.82) 70%),
    linear-gradient(to bottom, rgb(15 16 25 / 0.6), rgb(15 16 25 / 0.55) 45%, var(--bg));
}
.cielo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.portada-dentro {
  width: 100%;
  max-width: 46rem;
}

/* La constelación: un cuadro con la flor y, encima, los seis botones en los centros de sus círculos.
   Las posiciones salen del viewBox de la flor (-48 a 48): (x + 48) / 96. Con un mínimo de 15rem, para
   que en un teléfono acostado las estrellas no se encimen. */
.constelacion {
  position: relative;
  width: min(19rem, 66vw, max(13rem, 38vh));
  width: min(19rem, 66vw, max(13rem, 38svh));
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
}
.flor {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgb(226 207 146 / 0.22));
}
.flor-fuera circle {
  stroke: var(--text-2);
  stroke-width: 0.7;
  opacity: 0.6;
  transition: stroke 0.8s ease, opacity 0.8s ease, stroke-width 0.8s ease;
}
.flor-fuera circle.encendido {
  stroke: var(--accent);
  stroke-width: 0.9;
  opacity: 1;
}
.flor-dentro {
  stroke: var(--accent);
  stroke-width: 0.9;
}
.hilos line {
  stroke: var(--accent-strong);
  stroke-width: 0.5;
  opacity: 0;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: opacity 0.6s ease, stroke-dashoffset 1.2s ease;
}
.hilos line.encendido {
  opacity: 0.9;
  stroke-dashoffset: 0;
}
.estrellas-fijas use {
  fill: var(--accent-strong);
  stroke: none;
  opacity: 0.75;
}
.con-js .estrellas-fijas {
  display: none;
}

/* Completa: la flor entera se ilumina en oro. */
.constelacion.completa .flor {
  filter: drop-shadow(0 0 18px rgb(226 207 146 / 0.55));
}
.constelacion.completa .flor-fuera circle {
  stroke: var(--accent-strong);
}

.estrellas {
  position: absolute;
  inset: 0;
}
.estrella {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Apagada, la estrella late despacio para llamar la mano; encendida, crece, gira y brilla quieta. */
.estrella::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--accent-strong);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.estrella::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgb(246 235 201 / 0.5);
  box-shadow: 0 0 14px 6px rgb(238 223 179 / 0.35);
  transition: box-shadow 0.6s ease;
}
.estrella[aria-pressed="false"]::before,
.estrella[aria-pressed="false"]::after {
  animation: latido 2.6s ease-in-out infinite;
}
.estrella[data-estrella="1"]::before, .estrella[data-estrella="1"]::after { animation-delay: -0.4s; }
.estrella[data-estrella="2"]::before, .estrella[data-estrella="2"]::after { animation-delay: -0.9s; }
.estrella[data-estrella="3"]::before, .estrella[data-estrella="3"]::after { animation-delay: -1.3s; }
.estrella[data-estrella="4"]::before, .estrella[data-estrella="4"]::after { animation-delay: -1.8s; }
.estrella[data-estrella="5"]::before, .estrella[data-estrella="5"]::after { animation-delay: -2.2s; }
@keyframes latido {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
/* Con la portada fuera de la vista, nada late. */
.portada.quieta .estrella::before,
.portada.quieta .estrella::after {
  animation-play-state: paused;
}
.estrella:hover::before {
  transform: scale(1.3);
}
.estrella[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1.7) rotate(45deg);
}
.estrella[aria-pressed="true"]::after {
  box-shadow: 0 0 26px 12px rgb(238 223 179 / 0.55);
}
.estrella:focus-visible {
  outline-offset: 0;
  border-radius: 50%;
}
.estrella[data-estrella="0"] { left: 50%; top: 27.083%; }
.estrella[data-estrella="1"] { left: 69.847%; top: 38.542%; }
.estrella[data-estrella="2"] { left: 69.847%; top: 61.458%; }
.estrella[data-estrella="3"] { left: 50%; top: 72.917%; }
.estrella[data-estrella="4"] { left: 30.153%; top: 61.458%; }
.estrella[data-estrella="5"] { left: 30.153%; top: 38.542%; }

.portada h1 {
  font-size: clamp(2.4rem, 8vw, 4.25rem);
}
.portada .frase {
  margin-top: 1.1rem;
  max-width: 38rem;
}
/* La pista y el desenlace guardan su lugar aunque cambien: así la portada no salta al completar la flor. */
.pista {
  margin: 1rem auto 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.pista.apagada {
  visibility: hidden;
}
.desenlace {
  min-height: 1.7em;
  margin: 0.35rem auto 0;
  max-width: 30rem;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.desenlace.visible {
  opacity: 1;
}
/* En el teléfono la portada se aprieta para que el botón principal se vea sin desplazarse. */
@media (max-width: 30rem) {
  .portada {
    padding-top: 2rem;
  }
  .portada .cuando {
    margin-bottom: 0.75rem;
  }
  .constelacion {
    width: min(56vw, max(12rem, 34vh));
    width: min(56vw, max(12rem, 34svh));
    margin-bottom: 0.75rem;
  }
  .portada .frase {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }
  .pista {
    margin-top: 0.6rem;
  }
  .acciones {
    margin-top: 0.4rem;
  }
}
/* En pantallas bajas (teléfono acostado) la portada se aprieta para que las acciones se vean. */
@media (max-height: 34rem) {
  .portada {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .portada .cuando {
    margin-bottom: 0.5rem;
  }
  .constelacion {
    margin-bottom: 0.5rem;
  }
  .portada .frase {
    margin-top: 0.6rem;
  }
  .desenlace {
    min-height: 1.7em;
  }
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}
.boton {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.4s ease;
}
.boton:focus-visible,
.formulario button:focus-visible {
  border-radius: 999px;
}
.boton:hover {
  background: var(--accent-strong);
  box-shadow: 0 0 24px 2px rgb(226 207 146 / 0.35);
}
.enlace {
  padding: 0.6rem 0.25rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration-color: var(--accent-muted);
}
.enlace:hover {
  color: var(--accent-strong);
}

/* Los tramos de abajo, sobre el fondo índigo. */
.landing main {
  display: block;
  max-width: none;
  padding: 0;
}
.tramo {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  text-align: center;
}
.tramo h2 {
  margin: 0 auto;
  max-width: 36rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  text-wrap: balance;
}
.entrada {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Los seis caminos: arcanos con forma de portal. El borde es un degradado de oro (truco de dos fondos:
   el de adentro recorta el de afuera), y una segunda línea fina dibuja el portal por dentro. */
.arcanos {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 34rem) {
  .arcanos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 60rem) {
  .arcanos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}
.arcano {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 1.5rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px 999px 1.25rem 1.25rem / 11rem 11rem 1.25rem 1.25rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(226 207 146 / 0.1), transparent 60%) padding-box,
    linear-gradient(to bottom, var(--surface-2), var(--surface-1)) padding-box,
    linear-gradient(165deg, rgb(226 207 146 / 0.7), rgb(52 56 81 / 0.9) 38%, rgb(52 56 81 / 0.9) 70%, rgb(226 207 146 / 0.45)) border-box;
  transition: box-shadow 0.8s ease, transform 0.6s ease;
}
.arcano::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgb(226 207 146 / 0.16);
  border-radius: 999px 999px 0.85rem 0.85rem / 10.5rem 10.5rem 0.85rem 0.85rem;
  pointer-events: none;
}
.arcano:hover,
.arcano.encendida {
  box-shadow: 0 0 40px -8px rgb(226 207 146 / 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .arcano:hover {
    transform: translateY(-4px);
  }
}
.numeral {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.medallon {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin: 1rem 0 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(226 207 146 / 0.14), rgb(15 16 25 / 0.6) 70%);
  box-shadow:
    inset 0 0 0 1px rgb(226 207 146 / 0.55),
    0 0 0 5px var(--surface-2),
    0 0 0 6px rgb(226 207 146 / 0.22);
  transition: box-shadow 0.8s ease;
}
/* Los símbolos son de trazo; los puntos de la tetractys y la estrella del libro se rellenan con
   currentColor desde el propio SVG (el relleno de un <use> se hereda a todas sus formas). */
.medallon svg {
  width: 3.4rem;
  height: 3.4rem;
  color: var(--accent);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arcano.encendida .medallon {
  box-shadow:
    inset 0 0 0 1px var(--accent-strong),
    0 0 0 5px var(--surface-2),
    0 0 0 6px rgb(226 207 146 / 0.6),
    0 0 30px 6px rgb(226 207 146 / 0.3);
}
.arcano h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.arcano > p {
  margin: 0.6rem 0 0;
  max-width: 17rem;
  color: var(--text-2);
  font-size: 1rem;
  text-wrap: pretty;
}
.arcano .guia {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* En el teléfono, el arcano se vuelve horizontal: medallón a la izquierda y texto a la derecha, para
   que los seis caminos no alarguen la página de más. */
@media (max-width: 33.99rem) {
  .arcanos {
    gap: 0.9rem;
  }
  .arcano {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "medallon numeral"
      "medallon titulo"
      "medallon texto"
      "medallon guia";
    column-gap: 1.1rem;
    align-items: start;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    border-radius: 999px 1.25rem 1.25rem 999px / 999px 1.25rem 1.25rem 999px;
    text-align: left;
  }
  .arcano::before {
    border-radius: 999px 0.85rem 0.85rem 999px / 999px 0.85rem 0.85rem 999px;
  }
  .arcano .numeral { grid-area: numeral; }
  .arcano .medallon {
    grid-area: medallon;
    align-self: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
  }
  .arcano .medallon svg {
    width: 2.6rem;
    height: 2.6rem;
  }
  .arcano h3 { grid-area: titulo; font-size: 1.2rem; }
  .arcano > p { grid-area: texto; max-width: none; margin-top: 0.3rem; font-size: 0.95rem; }
  .arcano .guia { grid-area: guia; padding-top: 0.6rem; }
}
.sello {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-muted);
  box-shadow: 0 0 8px 2px rgb(226 207 146 / 0.35);
}

/* Las frases. */
.frases {
  display: grid;
  gap: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 48rem;
}
.grande {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.2;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent-strong) 70%, var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cómo funciona. */
.pasos {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .pasos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.paso svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgb(226 207 146 / 0.5));
}
.paso h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.paso p {
  margin: 0.4rem auto 0;
  max-width: 18rem;
  color: var(--text-2);
  font-size: 1rem;
}

/* El regalo y la lista de espera, juntos: el cierre de la página. */
.regalo-dentro {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  text-align: left;
}
@media (min-width: 52rem) {
  .regalo-dentro {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }
}
.oferta {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid transparent;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 85% 15%, rgb(226 207 146 / 0.2), transparent 45%) padding-box,
    linear-gradient(150deg, #2A2616, var(--surface-1) 60%) padding-box,
    linear-gradient(150deg, rgb(226 207 146 / 0.8), rgb(226 207 146 / 0.15) 50%, rgb(226 207 146 / 0.5)) border-box;
}
/* El sello de la flor queda detrás del texto: lo que sigue es «relative», y por orden se pinta encima. */
.sello-flor {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: clamp(7rem, 22vw, 10rem);
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
  opacity: 0.22;
}
.oferta > :not(.sello-flor) {
  position: relative;
}
.oferta h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  background: linear-gradient(100deg, var(--accent-strong), var(--accent) 60%, var(--focus));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.oferta-texto {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--text);
}
.incluye {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text-2);
  font-size: 1rem;
}
.incluye li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.nota {
  margin: 1rem 0 0;
  color: var(--text-3);
  font-size: 0.85rem;
}
.incluye li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: translateY(-0.05rem) scale(1.4);
}

.formulario {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface-1);
}
.formulario fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.titulo-form {
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.formulario label[for="correo"] {
  font-weight: 600;
}
.formulario input[type="email"] {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.formulario input::placeholder {
  color: var(--text-3);
}
.formulario button {
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.casilla {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.casilla input {
  margin-top: 0.3rem;
  accent-color: var(--accent);
}
fieldset:disabled input,
fieldset:disabled button,
fieldset:disabled .casilla {
  cursor: not-allowed;
  opacity: 0.55;
}
.aviso {
  margin: 1.1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent-muted);
  border-radius: 0.75rem;
  background: rgb(48 44 27 / 0.6);
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.landing footer {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

/* Lo que aparece al desplazarse: solo con el script, y sin movimiento si así se pide. */
.con-js .aparece {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.8s ease;
}
.con-js .aparece.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .con-js .aparece {
    opacity: 1;
    transform: none;
  }
}
