/* Invitación virtual · estilos de las páginas públicas (invitación, entrada, 404).
   Dirección visual propia: papel de algodón, olivo y tinta, con detalles en
   dorado viejo. Tipografías libres (OFL) servidas desde el propio sitio.
   ⛔ CSP: sin estilos en línea; todo acá. Al cambiar algo, subir VERSION en
   pb_hooks/lib/sitio.js. */

@font-face { font-family: "Playfair"; src: url("/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/fonts/playfair-display-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --papel: #f6f0e6;
  --papel-2: #ede3d1;
  --papel-3: #fcf9f3;
  --tinta: #2b3527;      /* texto: 12:1 sobre el papel */
  --tinta-2: #4b5745;    /* texto secundario: 6,9:1 */
  --olivo: #5c6e4d;      /* adornos y títulos grandes */
  --salvia: #9aa98a;
  --oro: #b08d57;        /* solo líneas y adornos */
  --oro-texto: #7a5a28;  /* dorado para texto: 5,6:1 */
  --boton: #3c4a35;
  --boton-hover: #2c3727;
  --boton-texto: #fcf9f3;
  --borde: #d8c9ae;
  --noche: #232b20;
  --noche-2: #1a2018;
  --ok-fondo: #e3ead6;
  --error-fondo: #f6ddd4;
  --error-texto: #6e2413;
  --radio: 14px;
  --serif: "Playfair", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 40rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--sans);
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--boton); text-underline-offset: 3px; }
small { font-size: .85em; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--boton);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden, .saltar:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.saltar:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--papel-3); padding: .6rem 1rem; border-radius: 8px; }

/* ---------- Franja de la demo ---------- */
.franja-demo {
  margin: 0; padding: .35rem 16px; text-align: center; font-size: .9rem;
  background: #f1e2b6; color: #3b2b07; border-bottom: 1px solid #dcc68a;
}
@media (max-width: 520px) { .franja-demo__sep { display: none; } .franja-demo a[data-dos] { display: block; } }
.franja-demo a { color: #3b2b07; font-weight: 700; display: inline-block; padding-block: .45rem; }
.franja-demo a:focus-visible { outline-color: #3b2b07; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.6rem; border: 1px solid var(--boton); border-radius: 999px;
  background: var(--boton); color: var(--boton-texto); font: 600 1rem/1.2 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.boton:hover { background: var(--boton-hover); }
.boton:active { transform: translateY(1px); }
.boton--borde { background: transparent; color: var(--boton); }
.boton--borde:hover { background: var(--boton); color: var(--boton-texto); }
.boton--chico { min-height: 44px; padding: .5rem 1.15rem; font-size: .95rem; }
.boton--grande { min-height: 52px; padding: .85rem 2rem; font-size: 1.05rem; width: 100%; }
.boton[disabled] { opacity: .6; cursor: progress; }
.icono { width: 22px; height: 22px; flex: none; }
.enlace { display: inline-flex; align-items: center; min-height: 44px; color: var(--boton); font-weight: 600; }

/* ---------- Portada ---------- */
.portada {
  min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  padding: 3.5rem 16px 3rem;
  background:
    radial-gradient(120% 70% at 50% 0%, #fbf7ef 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 100%, var(--papel-2) 0%, transparent 70%),
    var(--papel);
}
.portada__marco {
  position: relative; width: 100%; max-width: 27rem; text-align: center;
  padding: 4.2rem 1.5rem 2.6rem;
  background: var(--papel-3);
  border: 1px solid var(--oro);
  border-radius: 999px 999px 22px 22px / 13rem 13rem 22px 22px;
  box-shadow: inset 0 0 0 7px var(--papel-3), inset 0 0 0 8px rgba(176, 141, 87, .55), 0 24px 60px -30px rgba(43, 53, 39, .45);
}
.portada__rama { position: absolute; width: 132px; height: 132px; color: var(--olivo); pointer-events: none; }
.portada__rama--a { top: -18px; left: -26px; transform: scaleX(-1) rotate(8deg); }
.portada__rama--b { bottom: -58px; right: -30px; width: 112px; height: 112px; transform: scale(1, -1) rotate(-12deg); color: var(--salvia); }
.portada__para { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 1.6rem; }
.portada__para strong { display: block; margin-top: .35rem; font: italic 600 1.35rem/1.25 var(--serif); letter-spacing: 0; text-transform: none; color: var(--tinta); }
.portada__titulo { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro-texto); margin-bottom: .6rem; font-weight: 600; }
.portada__nombres { font: italic 600 clamp(3.1rem, 15vw, 4.6rem)/.98 var(--serif); color: var(--tinta); margin: 0 0 1.2rem; }
.portada__nombres span { display: block; }
.portada__y { font-size: .62em; color: var(--oro); margin: .12em 0; }
.portada__fecha { font-weight: 600; letter-spacing: .32em; color: var(--oro-texto); margin-bottom: 2rem; }
.boton--ingresar { padding-inline: 2.8rem; font-size: 1.05rem; letter-spacing: .08em; }
.portada__nota { margin: 1rem 0 0; font-size: .85rem; color: var(--tinta-2); }

/* ---------- Bloques ---------- */
.bloque {
  padding: 4.5rem max(16px, calc((100% - var(--ancho)) / 2));
  text-align: center;
}
.bloque--suave { background: var(--papel-2); }
.bloque h2 { font-size: clamp(2rem, 7.5vw, 2.6rem); color: var(--olivo); }
.bloque__icono { width: 56px; height: 56px; color: var(--oro); margin-bottom: .6rem; }
.texto { color: var(--tinta-2); white-space: pre-line; max-width: 34rem; margin-inline: auto; }
.texto--carta { font-size: 1.1rem; }
.destacado { font: italic 600 1.6rem/1.3 var(--serif); color: var(--tinta); }
.nota { font-size: .9rem; color: var(--tinta-2); }
.vacio { color: var(--tinta-2); font-style: italic; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1rem; margin-top: 1.6rem; }

.divisor { width: 200px; height: 20px; color: var(--oro); display: block; margin: 0 auto 1.8rem; }
.frase { font: italic 600 clamp(1.35rem, 5vw, 1.7rem)/1.45 var(--serif); color: var(--tinta); max-width: 32rem; margin: 0 auto 1.8rem; }
.bloque h2.fecha-larga, .fecha-larga { font: 600 1rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); }
.fecha-larga > span { display: block; }
.fecha-larga__hora { letter-spacing: .1em; color: var(--tinta-2); font-size: .92rem; margin-top: .2rem; }

/* Cuenta regresiva */
.cuenta { margin-top: 2rem; }
.cuenta__titulo { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: .8rem; }
.cuenta__numeros { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 26rem; }
.cuenta__numeros li {
  display: flex; flex-direction: column; align-items: center; padding: .8rem .2rem .6rem;
  background: var(--papel-3); border: 1px solid var(--borde); border-radius: 12px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2);
}
.cuenta__numeros span { font: 600 clamp(1.7rem, 8vw, 2.3rem)/1.1 var(--serif); letter-spacing: 0; color: var(--tinta); font-variant-numeric: tabular-nums; }

/* Cronograma */
.cronograma { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.momento { position: relative; padding: 0 0 2.6rem; }
.momento:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: .5rem; height: 1.6rem; border-left: 1px dashed var(--oro);
}
.momento__icono { width: 60px; height: 60px; padding: 10px; color: var(--olivo); border: 1px solid var(--oro); border-radius: 50%; background: var(--papel-3); margin-bottom: .7rem; }
.momento__hora { font-weight: 700; letter-spacing: .16em; color: var(--oro-texto); margin-bottom: .2rem; }
.momento__titulo { font-size: 1.55rem; margin-bottom: .3rem; }
.momento__lugar { font-weight: 600; margin-bottom: .1rem; }
.momento__dir { color: var(--tinta-2); font-size: .95rem; margin-bottom: .9rem; }

/* Dress code */
.paleta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; padding: 0; margin: 1.4rem 0 0; }
.paleta svg { width: 52px; height: 52px; display: block; filter: drop-shadow(0 2px 3px rgba(43, 53, 39, .2)); }

/* Regalos */
.cuenta-banco { margin: 1.6rem auto 0; max-width: 26rem; }
.cuenta-banco > summary { list-style: none; }
.cuenta-banco > summary::-webkit-details-marker { display: none; }
.cuenta-banco[open] > summary { background: var(--boton); color: var(--boton-texto); }
.cuenta-banco__datos {
  margin: 1rem 0 0; padding: 1.1rem 1.2rem; text-align: left;
  background: var(--papel-3); border: 1px solid var(--borde); border-radius: var(--radio);
}
.cuenta-banco__datos > div { padding: .45rem 0; border-bottom: 1px dashed var(--borde); }
.cuenta-banco__datos > div:last-child { border-bottom: 0; }
.cuenta-banco__datos dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
.cuenta-banco__datos dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; font-weight: 600; }
.dato { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copiar {
  min-height: 44px; padding: .3rem 1rem; border: 1px solid var(--boton); border-radius: 999px;
  background: transparent; color: var(--boton); font: 600 .9rem var(--sans); cursor: pointer;
}
.copiar:hover { background: var(--boton); color: var(--boton-texto); }
.cuenta-banco__aviso { margin: .8rem 0 0; font-size: .88rem; font-weight: 600; color: var(--error-texto); }
.cuenta-banco__estado { margin: .5rem 0 0; min-height: 1.4em; font-size: .9rem; color: var(--olivo); font-weight: 600; }

/* Los novios */
.novios__foto { margin: 0 auto 1.6rem; max-width: 22rem; padding: 8px; background: var(--papel-3); border: 1px solid var(--borde); border-radius: 999px 999px 16px 16px / 10rem 10rem 16px 16px; }
.novios__foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: inherit; }
.firma-novios { font: italic 600 1.7rem var(--serif); color: var(--olivo); margin-top: 1.2rem; }

/* Galería */
.galeria { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.galeria__foto { display: block; border-radius: 10px; overflow: hidden; background: var(--papel-3); }
.galeria img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.galeria__foto:hover img { transform: scale(1.04); }
@media (min-width: 600px) { .galeria { grid-template-columns: repeat(3, 1fr); } }

/* Formularios */
.formulario { margin: 1.6rem auto 0; max-width: 30rem; text-align: left; display: grid; gap: 1rem; }
.formulario--fila .boton, .formulario--foto .boton { justify-self: center; }
.campo { display: grid; gap: .35rem; }
.campo > span { font-weight: 600; font-size: .95rem; }
.campo small { font-weight: 400; color: var(--tinta-2); }
.campo input[type="text"], .campo textarea, .campo input[type="file"] {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  border: 1px solid #b9a88a; border-radius: 10px; background: var(--papel-3); color: var(--tinta);
  font: inherit;
}
.campo textarea { resize: vertical; min-height: 6rem; }
.campo input[type="file"] { padding: .55rem .6rem; cursor: pointer; }
.campo input::placeholder { color: #6f7869; }
.formulario__estado { margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; color: var(--olivo); }
.formulario__estado.es-error { color: var(--error-texto); }
.trampa { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mis-pedidos { margin: 1.8rem auto 0; max-width: 30rem; text-align: left; padding: 1rem 1.2rem; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--papel-3); }
.mis-pedidos h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.mis-pedidos ul { margin: 0; padding-left: 1.2rem; }

.aviso { margin: 1.2rem auto; max-width: 30rem; padding: .9rem 1.1rem; border-radius: 10px; text-align: left; font-weight: 600; }
.aviso--ok { background: var(--ok-fondo); border-left: 4px solid var(--olivo); }
.aviso--error { background: var(--error-fondo); border-left: 4px solid var(--error-texto); color: var(--error-texto); }

/* Confirmar asistencia */
.bloque--rsvp { background: var(--papel-2); }
.estado-rsvp { max-width: 30rem; margin: 0 auto 1rem; padding: .8rem 1rem; border: 1px dashed var(--oro); border-radius: 10px; color: var(--tinta-2); }
.rsvp__cupo { margin: 0; text-align: center; font-weight: 600; color: var(--oro-texto); }
.persona { margin: 0; padding: 1rem 1rem 1.1rem; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--papel-3); display: grid; gap: .8rem; }
.persona legend { padding: 0 .4rem; font: italic 600 1.3rem var(--serif); color: var(--tinta); }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.opcion {
  display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem .8rem;
  border: 1px solid #b9a88a; border-radius: 10px; cursor: pointer; font-weight: 600; background: #fff;
}
.opcion input { width: 22px; height: 22px; margin: 0; accent-color: var(--boton); flex: none; }
.opcion:has(input:checked) { border-color: var(--boton); background: var(--ok-fondo); box-shadow: inset 0 0 0 1px var(--boton); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--boton); outline-offset: 2px; }
.persona.no-va .campo--restriccion { display: none; }
.rsvp-cerrado { max-width: 30rem; margin: 0 auto; padding: 1.2rem; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--papel-3); }
.rsvp-cerrado ul { text-align: left; }

/* Cierre y pie */
.cierre { background: var(--noche); color: #efe8da; text-align: center; padding: 4rem 16px 3rem; }
.cierre__rama { width: 110px; height: 110px; color: var(--salvia); }
.cierre__texto { font-size: 1.05rem; max-width: 30rem; margin: .6rem auto 1rem; white-space: pre-line; }
.cierre__nombres { font: italic 600 clamp(2rem, 9vw, 2.8rem) var(--serif); color: #e8d6b3; margin: 0; }
.pie-dos { background: var(--noche-2); }
.firma-dos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .45rem; margin: 0; padding: .9rem 16px calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem; color: #b9b3a5;
}
.firma-dos img { display: block; width: auto; height: 22px; opacity: .9; }
.firma-dos__marca { display: inline-flex; align-items: center; gap: inherit; white-space: nowrap; }
.firma-dos__slogan em { font-style: normal; color: #F0997B; }

/* Botón de la música */
.boton-musica {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: var(--boton); color: var(--boton-texto); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(26, 32, 24, .6);
}
.boton-musica svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.boton-musica__pausa { display: none; }
.boton-musica[aria-pressed="true"] .boton-musica__play { display: none; }
.boton-musica[aria-pressed="true"] .boton-musica__pausa { display: block; }

/* Foto ampliada (la arma invitacion.js con un <dialog>) */
.ampliada { padding: 0; border: 0; background: transparent; max-width: min(92vw, 60rem); max-height: 92vh; }
.ampliada::backdrop { background: rgba(26, 32, 24, .88); }
.ampliada img { display: block; max-width: 100%; max-height: 84vh; border-radius: 10px; margin: 0 auto; }
.ampliada__cerrar { display: block; margin: .6rem auto 0; min-height: 44px; padding: .4rem 1.4rem; border-radius: 999px; border: 1px solid #efe8da; background: transparent; color: #efe8da; font: 600 1rem var(--sans); cursor: pointer; }

/* ---------- Página de entrada (la demo) ---------- */
.entrada { padding-bottom: 3rem; }
.entrada__cabeza { position: relative; overflow: hidden; text-align: center; padding: 4.5rem max(16px, calc((100% - 44rem) / 2)) 3rem; background: radial-gradient(100% 80% at 50% 0%, #fbf7ef, transparent 75%), var(--papel); }
.entrada__rama { position: absolute; width: 150px; height: 150px; color: var(--salvia); opacity: .8; pointer-events: none; }
.entrada__rama--izq { top: -16px; left: -40px; transform: scaleX(-1); }
.entrada__rama--der { top: -16px; right: -40px; }
.entrada__antetitulo { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro-texto); font-weight: 700; }
.entrada h1 { font-size: clamp(2.1rem, 8vw, 3.3rem); color: var(--tinta); }
.entrada h1 em { display: block; color: var(--olivo); }
.entrada__bajada { color: var(--tinta-2); font-size: 1.1rem; max-width: 36rem; margin-inline: auto; }
.entrada__bloque { padding: 2.5rem max(16px, calc((100% - 44rem) / 2)); }
.entrada__bloque h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); color: var(--olivo); }
.entrada__ejemplos { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
@media (min-width: 700px) { .entrada__ejemplos { grid-template-columns: repeat(3, 1fr); } }
.tarjeta-ejemplo {
  display: grid; gap: .2rem; height: 100%; padding: 1.2rem 1.3rem; text-decoration: none; color: var(--tinta);
  background: var(--papel-3); border: 1px solid var(--borde); border-radius: var(--radio);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tarjeta-ejemplo:hover { border-color: var(--oro); transform: translateY(-2px); box-shadow: 0 12px 30px -20px rgba(43, 53, 39, .5); }
.tarjeta-ejemplo__nombre { font: italic 600 1.4rem var(--serif); }
.tarjeta-ejemplo__detalle { color: var(--tinta-2); font-size: .95rem; }
.tarjeta-ejemplo__abrir { margin-top: .5rem; font-weight: 700; color: var(--boton); }
.entrada__nota { font-size: .92rem; color: var(--tinta-2); }
.entrada__lista { padding-left: 1.2rem; display: grid; gap: .7rem; }
.entrada__lista strong { color: var(--tinta); }

/* ---------- Página simple (404) ---------- */
.simple { min-height: 70vh; display: grid; place-items: center; padding: 3rem 16px; text-align: center; }
.simple__caja { max-width: 30rem; }
.simple__ramita { width: 110px; height: 110px; color: var(--olivo); }
.simple h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

/* ---------- Aviso de la demo (WhatsApp) — lo arma js/aviso-demo.js ---------- */
.aviso-demo {
  width: min(28rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 0;
  border-top: 5px solid #25a35a; border-radius: var(--radio); background: var(--papel-3); color: var(--tinta);
  box-shadow: 0 18px 48px rgba(26, 32, 24, .35);
}
.aviso-demo::backdrop { background: rgba(26, 32, 24, .6); }
.aviso-demo__caja { position: relative; padding: 1.4rem 1.4rem 1.2rem; }
.aviso-demo__titulo { margin: 0 2.8rem .7rem 0; font-weight: 700; line-height: 1.45; }
.aviso-demo__sub { margin: 0 0 .4rem; font-size: .9rem; color: var(--tinta-2); }
.aviso-demo__mensaje { margin: 0 0 1.1rem; padding: .8rem 1rem; border-radius: var(--radio); border-bottom-left-radius: 4px; background: #dcf8c6; color: #1d2b1a; overflow-wrap: anywhere; white-space: pre-line; }
.aviso-demo__acciones { margin: 0; }
.aviso-demo__enlace { display: flex; width: 100%; }
.aviso-demo__cerrar { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--tinta); font: inherit; font-size: 1.2rem; cursor: pointer; }
.aviso-demo__cerrar:hover { background: var(--papel-2); }

/* ---------- Movimiento: aparición suave al bajar y entrada de la portada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-mueve [data-aparecer] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
  .js-mueve [data-aparecer].visible { opacity: 1; transform: none; }
  .portada__marco > * { animation: subir .9s ease both; }
  .portada__marco > :nth-child(4) { animation-delay: .1s; }
  .portada__marco > :nth-child(5) { animation-delay: .2s; }
  .portada__marco > :nth-child(6) { animation-delay: .3s; }
  .portada__marco > :nth-child(7) { animation-delay: .45s; }
  .portada__rama { animation: aparecer-rama 1.4s ease both; }
  .aviso-demo[open], .ampliada[open] { animation: subir .2s ease-out; }
}
@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
@keyframes aparecer-rama { from { opacity: 0; } }

/* Menos movimiento: todo quieto (red de seguridad) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.simple__antetitulo { font: italic 600 1.5rem var(--serif); color: var(--olivo); margin-bottom: .4rem; }
/* Páginas cortas (404, «terminó»): la firma queda abajo de todo */
body.pagina-simple { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.pagina-simple > main { flex: 1; }
