/* =========================================================
   Web de boda · "Escrito en las estrellas"
   Un solo mundo visual (noche + oro viejo + ocaso): no hay tema claro a propósito.
   ========================================================= */

:root {
  --noche: #060a1c;
  --noche-2: #0c1330;
  --noche-3: #151e47;
  --indigo: #2a3570;
  --oro: #e7c98d;
  --oro-claro: #f6e3b4;
  --oro-hondo: #a88646;
  --marfil: #f5eedf;
  --bruma: #aeb6d8;
  --ocaso: #dc9076;
  --ciruela: #3b2957;
  --si: #a5dcb9;
  --no: #f2a897;

  --f-titulo: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  --f-texto: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;

  --margen: clamp(1.15rem, 5vw, 3rem);
  --ancho: 1080px;
  --suave: cubic-bezier(.22, .8, .24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  background: var(--noche);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--noche);
  color: var(--marfil);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
a { color: var(--oro); text-underline-offset: .2em; }
a:hover { color: var(--oro-claro); }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--oro-claro);
  outline-offset: 3px;
}

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

/* ---------- Piezas pequeñas que se repiten ---------- */

.estrella {
  display: inline-block;
  width: 16px;
  aspect-ratio: 1;
  background: var(--oro);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.estrella--grande { width: 28px; }

.punto {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 .55em .18em;
  background: var(--oro);
  transform: rotate(45deg);
}

.sobretitulo {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--oro);
}

.titulo {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 6.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--marfil);
}

.texto-suave { color: var(--bruma); }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 54px;
  padding: .4rem 1.7rem;
  border: 1px solid var(--oro);
  background: transparent;
  color: var(--oro-claro);
  font-family: var(--f-texto);
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .35s var(--suave), color .35s var(--suave), border-color .35s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.boton:hover { background: rgba(231, 201, 141, .12); color: var(--oro-claro); }
.boton:active { transform: scale(.98); }
.boton--oro {
  background: linear-gradient(135deg, var(--oro-claro), var(--oro) 55%, #d2ad69);
  color: #1a1505;
  border-color: transparent;
  font-weight: 500;
}
.boton--oro::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .9s var(--suave);
}
.boton--oro:hover { background: linear-gradient(135deg, #fff1cf, var(--oro-claro) 55%, var(--oro)); color: #1a1505; }
.boton--oro:hover::after { transform: translateX(120%); }
.boton--grande { width: 100%; min-height: 60px; font-size: .86rem; }
.boton--mini { min-height: 46px; padding-inline: 1.1rem; font-size: .72rem; }
.boton[disabled] { opacity: .55; cursor: progress; }

.enlace {
  border: 0; background: none; padding: .6rem .3rem; margin: -.6rem 0;
  color: var(--bruma); font-size: .88rem; text-decoration: underline; text-underline-offset: .2em;
  cursor: pointer;
}
.enlace:hover { color: var(--oro-claro); }

/* ---------- Cielo de fondo (canvas fijo) ---------- */

.cielo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#pagina, .pie { position: relative; z-index: 1; }

/* =========================================================
   Sobre de bienvenida
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vh, 2.4rem);
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) var(--margen) max(1.5rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(42, 53, 112, .35), transparent 70%);
  transition: opacity 1s ease, transform 1.2s var(--suave);
}
html.con-intro .intro, .intro.saliendo { display: flex; }
.intro.saliendo { opacity: 0; transform: scale(1.18); pointer-events: none; }

html.con-intro { overflow: hidden; }
html.con-intro #pagina,
html.con-intro .barra,
html.con-intro .pie { opacity: 0; pointer-events: none; }
#pagina, .barra, .pie { transition: opacity 1.4s ease .2s; }

.intro__para {
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.25rem, 4.6vw, 1.7rem);
  color: var(--bruma);
  animation: subir .9s var(--suave) both;
}
.intro__para strong { display: block; font-weight: 400; color: var(--marfil); font-size: 1.35em; line-height: 1.2; overflow-wrap: anywhere; }

.intro__pista {
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--oro);
  animation: latir 2.4s ease-in-out infinite;
  transition: opacity .4s;
}
.intro.abriendo .intro__pista,
.intro.abriendo .intro__saltar,
.intro.abriendo .intro__para { animation: none; opacity: 0; }

.intro__saltar {
  position: absolute;
  right: var(--margen);
  bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
  min-height: 44px;
  padding: 0 .4rem;
  border: 0;
  background: none;
  color: var(--bruma);
  font-size: .8rem;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
  transition: opacity .4s;
}

.sobre {
  --w: min(84vw, 430px, 62vh);
  position: relative;
  width: var(--w);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  animation: flotar 5s ease-in-out infinite, subir 1.1s var(--suave) both;
  -webkit-tap-highlight-color: transparent;
}
.sobre::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%; bottom: -14%;
  height: 12%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.sobre:focus-visible { outline-offset: 12px; }

.sobre__dentro,
.sobre__frente,
.sobre__solapa,
.sobre__carta,
.sobre__sello { position: absolute; display: block; }

.sobre__dentro {
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #070b22 0%, #0f1740 100%);
  z-index: 1;
}

.sobre__carta {
  left: 5%; right: 5%; top: 7%; bottom: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25em;
  padding: 6% 5%;
  border-radius: 3px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .9), transparent 40%),
    linear-gradient(160deg, #fbf5e8, #efe3c9);
  color: #1b1a2e;
  font-size: calc(var(--w) * .043);
  box-shadow: 0 0 0 1px rgba(168, 134, 70, .35) inset, 0 0 0 calc(var(--w) * .018) #fbf5e8 inset, 0 0 0 calc(var(--w) * .021) rgba(168, 134, 70, .5) inset;
  transition: transform 1.1s var(--suave) .95s;
}
.sobre__carta-sobretitulo { font-size: .62em; letter-spacing: .32em; text-transform: uppercase; color: #8a6a2c; }
.sobre__carta-nombres { font-family: var(--f-titulo); font-style: italic; font-size: 1.9em; line-height: 1.1; text-wrap: balance; }
.sobre__carta-nombres i { color: #a88646; }
.sobre__carta-fecha { font-size: .7em; letter-spacing: .3em; color: #4a4763; }

.sobre__frente {
  inset: 0;
  z-index: 3;
  border-radius: 5px;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(155deg, #1d2860 0%, #131b49 60%, #0f163d 100%);
}
.sobre__frente::before {
  content: '';
  position: absolute; inset: 0;
  clip-path: polygon(0 100%, 50% 46%, 100% 100%);
  background: linear-gradient(0deg, #1a2459, #222e6c);
  box-shadow: 0 0 0 1px rgba(231, 201, 141, .2);
}
.sobre__frente::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(231, 201, 141, .22);
}

.sobre__solapa {
  left: 0; right: 0; top: 0;
  height: 57%;
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #28357a 0%, #1b2560 100%);
  transform-origin: 50% 0;
  transition: transform .85s cubic-bezier(.5, 0, .3, 1) .3s, z-index 0s linear .72s, background .85s ease .3s;
}

.sobre__sello {
  left: 50%; top: 56%;
  width: 23%;
  aspect-ratio: 1;
  z-index: 5;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 51% 49% / 52% 48% 53% 47%;
  background: radial-gradient(circle at 34% 28%, #fbeac0 0%, #e2c07a 38%, #b58f4b 78%, #8f6d33 100%);
  box-shadow: inset 0 0 0 calc(var(--w) * .012) rgba(122, 90, 34, .28), inset 0 -3px 6px rgba(80, 56, 14, .4), 0 5px 14px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
  transition: transform .45s var(--suave), opacity .45s ease .05s;
}
.sobre__sello span {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 500;
  font-size: calc(var(--w) * .062);
  letter-spacing: -.02em;
  color: #5b4213;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
}
.sobre__sello::before {
  content: '';
  position: absolute; inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(231, 201, 141, .5);
  animation: onda 2.4s ease-out infinite;
}

.sobre:hover .sobre__sello { transform: translate(-50%, -50%) scale(1.06); }

.sobre.abierto { animation: none; cursor: default; }
.sobre.abierto .sobre__sello { transform: translate(-50%, -50%) scale(1.5) rotate(18deg); opacity: 0; }
.sobre.abierto .sobre__sello::before { animation: none; opacity: 0; }
.sobre.abierto .sobre__solapa { transform: rotateX(180deg); z-index: 1; background: linear-gradient(180deg, #0c1233 0%, #141d4a 100%); }
.sobre.abierto .sobre__carta { transform: translateY(-58%); }

@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes latir { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes onda { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Barra superior y menú
   ========================================================= */

.barra {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(.55rem + env(safe-area-inset-top, 0px)) var(--margen) .55rem;
  transition: background .4s, box-shadow .4s, opacity 1.4s ease .2s;
}
.barra.con-fondo {
  background: rgba(6, 10, 28, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(231, 201, 141, .16);
}

.barra__marca {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--f-titulo);
  font-size: 1.45rem;
  letter-spacing: .04em;
  color: var(--marfil);
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.barra__marca i { color: var(--oro); font-size: .8em; margin: 0 .12em; }

.barra__boton {
  display: none;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  padding: 0 .2rem 0 .8rem;
  border: 0;
  background: none;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--marfil);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.barra__hamb { position: relative; width: 28px; height: 12px; display: block; }
.barra__hamb span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--oro);
  transition: transform .4s var(--suave), top .4s var(--suave);
}
.barra__hamb span:first-child { top: 0; }
.barra__hamb span:last-child { top: 10px; }
.barra.abierta .barra__hamb span:first-child { top: 5px; transform: rotate(45deg); }
.barra.abierta .barra__hamb span:last-child { top: 5px; transform: rotate(-45deg); }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.menu__enlace {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--marfil);
  opacity: .82;
  transition: opacity .3s, color .3s;
}
.menu__enlace:hover { opacity: 1; color: var(--oro-claro); }
.menu__enlace--cta {
  padding: 0 1.2rem;
  border: 1px solid var(--oro);
  color: var(--oro-claro);
  opacity: 1;
}
.menu__enlace--cta:hover { background: rgba(231, 201, 141, .12); }

@media (max-width: 880px) {
  .barra__boton { display: inline-flex; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: 5rem var(--margen) 3rem;
    background: var(--noche);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  .barra.abierta .menu { opacity: 1; visibility: visible; transition: opacity .45s ease; }
  .menu__enlace {
    min-height: 58px;
    font-family: var(--f-titulo);
    font-style: italic;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    transform: translateY(14px);
    transition: transform .6s var(--suave), color .3s;
  }
  .barra.abierta .menu__enlace { transform: none; }
  .menu__enlace--cta {
    margin-top: 1.4rem;
    min-height: 56px;
    padding: 0 1.8rem;
    font-family: var(--f-texto);
    font-style: normal;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
  html.menu-abierto { overflow: hidden; }
}

/* =========================================================
   Portada
   ========================================================= */

.portada {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--margen) clamp(8rem, 20vh, 12rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 42% at 50% 100%, rgba(220, 144, 118, .55) 0%, rgba(150, 84, 110, .38) 34%, rgba(59, 41, 87, .3) 62%, transparent 100%);
}

.portada__luna {
  position: absolute;
  top: clamp(5.5rem, 13vh, 9rem);
  right: clamp(1.6rem, 11vw, 12rem);
  width: clamp(40px, 6vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -.22em .12em 0 0 #f6ecd2;
  font-size: clamp(40px, 6vw, 74px);
  filter: drop-shadow(0 0 16px rgba(246, 236, 210, .45));
  transform: rotate(-18deg);
  z-index: -1;
}

.portada__polvo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3; /* por encima del texto: el polvo dorado brilla sobre las letras */
  mix-blend-mode: screen; /* solo suma luz: los destellos nunca ensucian ni oscurecen el texto */
  pointer-events: none;
}

.portada__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ancho);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vh, 1.9rem);
  pointer-events: none;
}
.portada__contenido a, .portada__contenido button { pointer-events: auto; }

.nombres {
  --largo: var(--largo-linea, 12);
  width: 100%;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 400;
  /* El tamaño se calcula según lo largos que sean los nombres: nunca se cortan. */
  font-size: min(9.2rem, calc(88vw / (var(--largo) * .47)), 24vh);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--marfil);
  text-shadow: 0 0 40px rgba(231, 201, 141, .25);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 .22em;
  padding-block: .06em .12em;
  transition: opacity 1.6s ease;
}
.nombres__parte { display: inline-block; white-space: nowrap; }
.nombres__y { display: inline-block; color: var(--oro); font-size: .72em; }

.nombres--pila,
.nombres--pila-movil { }
@media (max-width: 760px) {
  .portada { padding-top: 8.2rem; }
  .portada__luna { top: 4.4rem; right: 1.5rem; width: 34px; font-size: 34px; }
  .nombres {
    --largo: var(--largo-pila, 6);
    flex-direction: column;
    align-items: center;
    font-size: min(6.4rem, calc(88vw / (var(--largo) * .47)), 15vh);
    line-height: .98;
  }
  .nombres__y { font-size: .6em; line-height: 1; margin-block: -.02em .06em; }
}
.nombres.nombres--pila {
  --largo: var(--largo-pila, 6);
  flex-direction: column;
  align-items: center;
  line-height: .98;
}

/* Mientras las partículas escriben los nombres, el texto real espera transparente (sigue ahí para lectores de pantalla). */
html.escribiendo .nombres { opacity: 0; }

.portada__fecha {
  font-size: clamp(.82rem, 2.6vw, 1rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--marfil);
}
.portada__fecha { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem .1rem; line-height: 1.5; }
.portada__fecha .punto { margin-bottom: 0; }
@media (max-width: 640px) {
  .portada__fecha { flex-direction: column; }
  .portada__fecha .punto { display: none; }
  .portada__fecha-ciudad { color: var(--bruma); }
}

.cuenta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 520px);
  border-block: 1px solid rgba(231, 201, 141, .32);
  padding-block: .9rem;
}
.cuenta__caja { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding-inline: .3rem; }
.cuenta__caja + .cuenta__caja { border-left: 1px solid rgba(231, 201, 141, .2); }
.cuenta__num {
  font-family: var(--f-titulo);
  font-size: clamp(1.9rem, 8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--oro-claro);
  display: inline-block;
}
.cuenta__num.cambia { animation: tic .5s var(--suave); }
.cuenta__eti { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bruma); }
@keyframes tic { 0% { transform: translateY(-28%); opacity: 0; } 100% { transform: none; opacity: 1; } }

.portada__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

.portada__estrellas {
  max-width: 34rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--bruma);
  text-wrap: balance;
}
.portada__estrellas strong { color: var(--oro-claro); font-family: var(--f-titulo); font-size: 1.25em; font-weight: 400; }

.portada__horizonte {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(90px, 17vh, 190px);
  z-index: 0;
}
.colina--lejos { fill: #2a2050; }
.colina--media { fill: #15143a; }
.colina--cerca { fill: var(--noche); }

/* =========================================================
   Cita
   ========================================================= */

.cita {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--margen) clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.cita__texto {
  max-width: 22em;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.45rem, 4.6vw, 2.3rem);
  line-height: 1.35;
  text-wrap: balance;
  color: var(--marfil);
}

/* =========================================================
   Secciones
   ========================================================= */

.seccion {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding: clamp(3.6rem, 10vw, 7rem) var(--margen);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3.4rem);
}
.seccion--estrecha { max-width: calc(760px + var(--margen) * 2); }

.seccion__cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}

.historia, .prosa {
  max-width: 38rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  color: #e6e0d3;
}
.historia__firma {
  margin-top: .6rem;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--oro-claro);
}
.historia__firma i { color: var(--oro); font-size: .8em; }
.prosa__nota { font-size: .95rem; color: var(--bruma); }

/* ---------- Constelación del programa ---------- */

.constelacion {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.constelacion__trazo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.constelacion__base, .constelacion__oro { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.constelacion__base { stroke: rgba(174, 182, 216, .28); stroke-width: 1; stroke-dasharray: 2 7; }
.constelacion__oro { stroke: var(--oro); stroke-width: 1.4; filter: drop-shadow(0 0 5px rgba(231, 201, 141, .7)); }

.constelacion__lista { position: relative; display: flex; flex-direction: column; gap: clamp(2.4rem, 7vw, 3.6rem); }

.momento {
  --x: 10px;
  display: grid;
  grid-template-columns: clamp(76px, 20vw, 130px) minmax(0, 1fr);
  gap: clamp(.6rem, 3vw, 1.6rem);
  align-items: start;
}
.momento:nth-child(5n + 1) { --x: 14%; }
.momento:nth-child(5n + 2) { --x: 62%; }
.momento:nth-child(5n + 3) { --x: 28%; }
.momento:nth-child(5n + 4) { --x: 74%; }
.momento:nth-child(5n + 5) { --x: 40%; }

.momento__astro { position: relative; height: 2rem; }
.momento__astro .estrella {
  position: absolute;
  left: var(--x);
  top: .35rem;
  width: 20px;
  background: var(--oro);
  transition: transform .8s var(--suave), background .6s, filter .6s;
}
.momento__cuerpo { display: flex; flex-direction: column; gap: .2rem; transition: opacity .8s ease; }
.momento__hora {
  font-family: var(--f-titulo);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--oro-claro);
}
.momento__titulo { font-family: var(--f-titulo); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 4.4vw, 1.75rem); line-height: 1.2; }
.momento__texto { color: var(--bruma); max-width: 30rem; }

.constelacion.viva .momento:not(.encendido) .estrella { background: #5f6792; transform: scale(.7); }
.constelacion.viva .momento:not(.encendido) .momento__cuerpo { opacity: .45; }
.constelacion.viva .momento.encendido .estrella { transform: scale(1.25) rotate(90deg); filter: drop-shadow(0 0 8px rgba(246, 227, 180, .9)); }

/* ---------- Lugares ---------- */

.lugares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.lugar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.3rem, 4vw, 2.4rem);
  text-align: center;
  border: 1px solid rgba(231, 201, 141, .3);
  background: linear-gradient(180deg, rgba(21, 30, 71, .72), rgba(12, 19, 48, .5));
}
.lugar__hora { font-family: var(--f-titulo); font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1; color: var(--oro-claro); font-variant-numeric: lining-nums; }
.lugar__tipo { font-family: var(--f-texto); font-size: .76rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); }
.lugar__nombre { margin-top: .5rem; font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.5rem, 4.6vw, 1.9rem); line-height: 1.2; text-wrap: balance; }
.lugar__direccion { color: var(--bruma); text-wrap: balance; }
.lugar .boton { margin-top: 1.1rem; }

/* =========================================================
   Confirmación de asistencia
   ========================================================= */

.seccion--rsvp { max-width: calc(720px + var(--margen) * 2); }

.marco {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2.2rem, 7vw, 4rem) clamp(1.15rem, 5vw, 3.2rem);
  border: 1px solid rgba(231, 201, 141, .55);
  outline: 1px solid rgba(231, 201, 141, .22);
  outline-offset: 6px;
  background: linear-gradient(180deg, rgba(21, 30, 71, .82), rgba(9, 14, 38, .88));
}
.marco__esquina {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--oro);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.marco__esquina--1 { top: -11px; left: -11px; }
.marco__esquina--2 { top: -11px; right: -11px; }
.marco__esquina--3 { bottom: -11px; left: -11px; }
.marco__esquina--4 { bottom: -11px; right: -11px; }

.rsvp__plazo { color: var(--bruma); text-wrap: balance; }
.rsvp__plazo strong { color: var(--marfil); }
.rsvp__dias {
  display: inline-block;
  margin-left: .4em;
  padding: .05em .7em;
  border: 1px solid rgba(231, 201, 141, .5);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--oro-claro);
  white-space: nowrap;
}

.rsvp__paso { display: flex; flex-direction: column; gap: 1.4rem; }
.rsvp__paso.entra { animation: subir .7s var(--suave) both; }
.rsvp__cerrado { font-size: 1.1rem; text-align: center; }
#rsvp-cerrado, #rsvp-enlace { align-items: center; text-align: center; }
.aviso-simple { text-align: center; color: var(--bruma); }

.campo { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.campo__etiqueta { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.campo__opcional { text-transform: none; letter-spacing: 0; color: var(--bruma); }
.campo__control {
  width: 100%;
  min-height: 54px;
  padding: .7rem 1rem;
  border: 1px solid rgba(174, 182, 216, .4);
  border-radius: 0;
  background: rgba(6, 10, 28, .6);
  color: var(--marfil);
  font-size: 1.0625rem; /* 17px: evita el zoom automático de iOS al enfocar */
  line-height: 1.4;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.campo__control::placeholder { color: rgba(174, 182, 216, .6); }
.campo__control:hover { border-color: rgba(231, 201, 141, .6); }
.campo__control:focus { outline: none; border-color: var(--oro); background: rgba(6, 10, 28, .9); box-shadow: 0 0 0 3px rgba(231, 201, 141, .18); }
select.campo__control {
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--oro) 50%), linear-gradient(135deg, var(--oro) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .95rem) 55%;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
}
select.campo__control option { background: var(--noche-2); color: var(--marfil); }
textarea.campo__control { resize: vertical; min-height: 6.5rem; }

.buscar { display: flex; flex-direction: column; gap: .6rem; }
.buscar__fila { display: flex; gap: .7rem; flex-wrap: wrap; }
.buscar__fila .campo__control { flex: 1 1 14rem; }
.buscar__fila .boton { flex: 0 0 auto; }
@media (max-width: 480px) { .buscar__fila .boton { flex: 1 1 100%; } }

.rsvp__mensaje { min-height: 1.5em; color: var(--bruma); }
.rsvp__mensaje:empty { display: none; }

.resultados { display: flex; flex-direction: column; gap: .6rem; }
.resultados:empty { display: none; }
.resultado {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(231, 201, 141, .35);
  background: rgba(6, 10, 28, .5);
  text-align: left;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--marfil);
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.resultado:hover { background: rgba(231, 201, 141, .1); border-color: var(--oro); }
.resultado span:last-child { font-family: var(--f-texto); font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); white-space: nowrap; }

.rsvp__hola { font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.rsvp__hola strong { font-weight: 400; color: var(--oro-claro); }
.rsvp__hola .enlace { display: block; margin: .2rem auto 0; font-family: var(--f-texto); font-style: normal; }
.rsvp__estado { text-align: center; color: var(--bruma); text-wrap: balance; }
.rsvp__estado strong { color: var(--marfil); }
.rsvp__estado .marca-si { color: var(--si); }
.rsvp__estado .marca-no { color: var(--no); }

.eleccion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 340px) { .eleccion { grid-template-columns: 1fr; } }
.eleccion__opcion { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.eleccion__opcion input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.eleccion__caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 96px;
  padding: 1rem .8rem;
  border: 1px solid rgba(174, 182, 216, .45);
  text-align: center;
  transition: border-color .3s, background .3s, transform .3s var(--suave), box-shadow .3s;
}
.eleccion__titulo { font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.3rem, 4.6vw, 1.6rem); line-height: 1.15; }
.eleccion__sub { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bruma); }
.eleccion__opcion:hover .eleccion__caja { border-color: var(--oro); }
.eleccion__opcion input:focus-visible + .eleccion__caja { outline: 2px solid var(--oro-claro); outline-offset: 3px; }
.eleccion__opcion input:checked + .eleccion__caja {
  border-color: var(--oro);
  background: linear-gradient(160deg, rgba(231, 201, 141, .22), rgba(231, 201, 141, .06));
  box-shadow: 0 0 0 1px var(--oro), 0 0 28px rgba(231, 201, 141, .18);
  transform: translateY(-2px);
}
.eleccion__opcion input:checked + .eleccion__caja .eleccion__titulo { color: var(--oro-claro); }
.eleccion__opcion--no input:checked + .eleccion__caja {
  border-color: var(--no);
  background: linear-gradient(160deg, rgba(242, 168, 151, .16), rgba(242, 168, 151, .04));
  box-shadow: 0 0 0 1px var(--no);
}
.eleccion__opcion--no input:checked + .eleccion__caja .eleccion__titulo { color: var(--no); }

#rsvp-detalles { display: flex; flex-direction: column; gap: 1.6rem; animation: subir .6s var(--suave) both; }
.grupo { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(231, 201, 141, .2); }
.grupo__titulo { font-family: var(--f-titulo); font-style: italic; font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.grupo__ayuda { font-size: .92rem; color: var(--bruma); }
.grupo__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }

.contador { display: inline-flex; align-items: center; border: 1px solid rgba(231, 201, 141, .5); }
.contador__boton {
  width: 54px; height: 54px;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--oro-claro);
  cursor: pointer;
  transition: background .25s;
}
.contador__boton:hover:not([disabled]) { background: rgba(231, 201, 141, .14); }
.contador__boton[disabled] { opacity: .3; cursor: not-allowed; }
.contador__num { min-width: 2.6rem; text-align: center; font-family: var(--f-titulo); font-size: 1.6rem; font-variant-numeric: lining-nums tabular-nums; }

.acomp-lista { display: flex; flex-direction: column; gap: 1rem; }
.acomp-lista:empty { display: none; }
.acomp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-left: 2px solid var(--oro);
  background: rgba(6, 10, 28, .45);
  animation: subir .5s var(--suave) both;
}
.acomp__titulo { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }

.rsvp__error {
  padding: .9rem 1.1rem;
  border: 1px solid var(--no);
  background: rgba(242, 168, 151, .1);
  color: #ffd9cf;
}
.privacidad { font-size: .8rem; line-height: 1.55; color: var(--bruma); text-align: center; }

/* ---------- Respuesta guardada ---------- */

.hecho { align-items: center; text-align: center; gap: 1rem; outline: none; }
.hecho__marca { width: 84px; height: 84px; }
.hecho__circulo { stroke: var(--si); stroke-width: 2; stroke-dasharray: 183; stroke-dashoffset: 183; }
.hecho__check { stroke: var(--si); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; }
.hecho.entra .hecho__circulo { animation: trazar .9s var(--suave) .1s forwards; }
.hecho.entra .hecho__check { animation: trazar .5s var(--suave) .8s forwards; }
.hecho--no .hecho__circulo, .hecho--no .hecho__check { stroke: var(--oro); }
@keyframes trazar { to { stroke-dashoffset: 0; } }

.hecho__guardado {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .35rem 1rem;
  border: 1px solid var(--si);
  font-size: .76rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--si);
}
.hecho--no .hecho__guardado { border-color: var(--oro); color: var(--oro-claro); }
.hecho__titulo { font-family: var(--f-titulo); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 6.4vw, 2.7rem); line-height: 1.15; text-wrap: balance; }
.hecho__texto { max-width: 30rem; color: #e6e0d3; text-wrap: balance; }
.resumen {
  width: 100%;
  max-width: 26rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.2rem;
  padding: 1.1rem 1.2rem;
  border-block: 1px solid rgba(231, 201, 141, .25);
  text-align: left;
}
.resumen:empty { display: none; }
.resumen dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); padding-top: .25em; }
.resumen dd { overflow-wrap: anywhere; }
.hecho__nota { font-size: .88rem; color: var(--bruma); text-wrap: balance; }

/* =========================================================
   Regalo, dudas y pie
   ========================================================= */

.regalo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.regalo__dato {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.8rem 1.2rem;
  border: 1px solid rgba(231, 201, 141, .3);
  background: rgba(12, 19, 48, .5);
  text-align: center;
}
.regalo__eti { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); text-wrap: balance; }
.regalo__valor { font-family: var(--f-titulo); font-size: clamp(1.1rem, 4.2vw, 1.4rem); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }

.dudas { display: flex; flex-direction: column; border-top: 1px solid rgba(231, 201, 141, .25); }
.duda { border-bottom: 1px solid rgba(231, 201, 141, .25); }
.duda__pregunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .9rem 0;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.duda__pregunta::-webkit-details-marker { display: none; }
.duda__pregunta::after {
  content: '';
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background: var(--oro);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transition: transform .5s var(--suave);
}
.duda[open] .duda__pregunta::after { transform: rotate(135deg) scale(1.3); }
.duda__respuesta { padding: 0 2rem 1.4rem 0; color: #dcd6c9; }

.pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: clamp(3rem, 9vw, 5rem) var(--margen) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid rgba(231, 201, 141, .18);
  background: linear-gradient(180deg, transparent, rgba(6, 10, 28, .9) 40%);
}
.pie__nombres { font-family: var(--f-titulo); font-style: italic; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; }
.pie__nombres i { color: var(--oro); font-size: .8em; }
.pie__fecha { font-size: .8rem; letter-spacing: .3em; color: var(--oro); }
.pie__legal { max-width: 40rem; margin-top: .8rem; font-size: .8rem; line-height: 1.6; color: var(--bruma); }
.pie__legal a { color: var(--bruma); }

.tostada {
  position: fixed;
  left: 50%;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: .8rem 1.3rem;
  background: var(--marfil);
  color: #15142b;
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: subir .4s var(--suave) both;
}

/* =========================================================
   Aparición al hacer scroll (solo si hay JavaScript: en reposo todo es visible)
   ========================================================= */

.revelar { transition: opacity 1s ease, transform 1s var(--suave); }
.revelar.espera { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .revelar.espera { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .eleccion__sub { font-size: .66rem; letter-spacing: .1em; }
  .eleccion__caja { padding-inline: .5rem; }
}
