/* =====================================================================
   Invitación · Fiesta de Promoción CELAN'S 2026 · Katherine & Emily
   ===================================================================== */
@font-face { font-family: 'Pinyon Script'; font-weight: 400; font-display: block; src: url(../assets/fuentes/pinyon-script-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(../assets/fuentes/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant SC'; font-weight: 500; font-display: block; src: url(../assets/fuentes/cormorant-sc-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant SC'; font-weight: 600; font-display: block; src: url(../assets/fuentes/cormorant-sc-latin-600-normal.woff2) format('woff2'); }

:root {
  --noche: #050c26;
  --noche-2: #0a1840;
  --real: #16307a;
  --oro: #d9b45a;
  --oro-claro: #f4e2a6;
  --oro-osc: #9c7124;
  --plata: #dce3ee;
  --plata-osc: #9aa6b8;
  --marfil: #fbf6ea;
  --tinta: #13265e;
  --texto: #e7ecf8;
  --texto-suave: #b2bdd9;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sc: 'Cormorant SC', 'Cormorant Garamond', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --suave: cubic-bezier(.22, .7, .18, 1);
  --seda: cubic-bezier(.65, .05, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noche); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.cerrado, html.cerrado body { overflow: hidden; height: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texto);
  font-family: var(--serif); font-size: 19px; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--oro-claro); outline-offset: 4px; border-radius: 6px; }

/* ---------- cielo y capas ---------- */
.cielo {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(120% 65% at 50% -8%, #1d3d93 0%, #0e225e 34%, #081541 60%, #050c26 100%);
}
.cielo::before, .cielo::after {
  content: ''; position: absolute; width: 130vmax; height: 130vmax; border-radius: 50%;
  will-change: transform;
}
.cielo::before {
  left: -75vmax; top: -40vmax;
  background: radial-gradient(circle, rgba(52, 102, 230, .34) 0%, rgba(52, 102, 230, 0) 58%);
  animation: aurora1 32s ease-in-out infinite alternate;
}
.cielo::after {
  right: -80vmax; bottom: -70vmax;
  background: radial-gradient(circle, rgba(217, 172, 80, .17) 0%, rgba(217, 172, 80, 0) 60%);
  animation: aurora2 38s ease-in-out infinite alternate;
}
@keyframes aurora1 { to { transform: translate3d(28vmax, 22vmax, 0) scale(1.12); } }
@keyframes aurora2 { to { transform: translate3d(-24vmax, -30vmax, 0) scale(1.18); } }

#fx-fondo, #fx-frente { position: fixed; left: 0; top: 0; pointer-events: none; }
#fx-fondo { z-index: 1; }
#mariposas-atras { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
main { position: relative; z-index: 3; }
#apertura { z-index: 4; }
#mariposas-frente { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
#fx-frente { z-index: 6; }

/* ---------- mariposas plateadas ---------- */
.mp {
  position: absolute; left: 0; top: 0; width: 100px; height: 50px; margin: -25px 0 0 -50px;
  transform: translate3d(-300px, -300px, 0); will-change: transform;
}
.mp-atras { opacity: .7; }
.mp-cuerpo { position: absolute; inset: 0; perspective: 230px; }
.ala { position: absolute; top: 0; width: 50px; height: 50px; will-change: transform; }
.ala.izq { left: 0; transform-origin: 100% 50%; }
.ala.der { left: 50px; transform-origin: 0 50%; }
.ala-img { position: absolute; inset: 0; background: url(../assets/img/ala.svg) center / 100% 100% no-repeat; }
.ala.der .ala-img { transform: scaleX(-1); }
.ala-img::before, .ala-img::after {
  content: ''; position: absolute; inset: 0;
  background: url(../assets/img/brillo-a.svg) center / 100% 100% no-repeat;
  animation: titilar 1.4s ease-in-out infinite alternate; animation-delay: var(--d1, 0s);
}
.ala-img::after { background-image: url(../assets/img/brillo-b.svg); animation-delay: calc(var(--d1, 0s) - .7s); }
.ala-luz {
  position: absolute; inset: 0; opacity: .3; will-change: opacity;
  background: linear-gradient(115deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.95) 52%, rgba(255,255,255,0) 80%);
  -webkit-mask: url(../assets/img/ala.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/ala.svg) center / 100% 100% no-repeat;
}
.torso { position: absolute; left: 45px; top: 7px; width: 10px; height: 40px; background: url(../assets/img/cuerpo.svg) center / 100% 100% no-repeat; }
@keyframes titilar { from { opacity: .08; } to { opacity: 1; } }

/* ---------- oro ---------- */
.oro {
  background: linear-gradient(100deg, #a8792b 0%, #e6c77a 16%, #fff1c4 28%, #d9b45a 42%, #96691f 57%, #e3c477 72%, #fbe7ae 85%, #a8792b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: brilloOro 10s linear infinite;
}
.oro-plano {
  background: linear-gradient(170deg, #f6e3a1 0%, #d9b45a 45%, #a87b2c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes brilloOro { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }

/* ---------- revelado ---------- */
.rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.2s var(--suave), transform 1.2s var(--suave); transition-delay: var(--d, 0s); }
.rv.visto { opacity: 1; transform: none; }
.rv-escribir {
  -webkit-clip-path: inset(-40% 100% -40% -20%); clip-path: inset(-40% 100% -40% -20%);
  transition: -webkit-clip-path 1.9s var(--seda), clip-path 1.9s var(--seda); transition-delay: var(--d, 0s);
}
.rv-escribir.visto { -webkit-clip-path: inset(-40% -20% -40% -20%); clip-path: inset(-40% -20% -40% -20%); }

/* =====================================================================
   APERTURA (sobre)
   ===================================================================== */
#apertura {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); text-align: center;
  transition: opacity 1.1s var(--suave), transform 1.3s var(--suave);
}
#apertura.saliendo { opacity: 0; transform: scale(1.05); pointer-events: none; }
.ap-promo {
  margin: 0; font-family: var(--sc); font-weight: 500; font-size: 15px; letter-spacing: .3em; color: var(--plata);
  animation: entrar 1.6s var(--suave) .2s both;
}
.ap-promo .oro-plano { font-weight: 600; font-size: 1.2em; letter-spacing: .16em; }
.sobre {
  position: relative; width: min(84vw, 360px); aspect-ratio: 100 / 66; margin: 40px 0 34px; perspective: 1000px;
  animation: sobreEntrar 1.8s var(--suave) both;
}
@supports not (aspect-ratio: 1) { .sobre { height: calc(min(84vw, 360px) * .66); } }
@keyframes sobreEntrar { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.94); } }
@keyframes entrar { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
.sobre::after { /* sombra */
  content: ''; position: absolute; left: 7%; right: 7%; bottom: -16px; height: 24px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); z-index: -1;
}
.sobre-capa { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sobre-fondo { z-index: 0; }
.sobre-frente { z-index: 3; }
.carta {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 2; border-radius: 6px;
  background: linear-gradient(180deg, #fffaf0 0%, var(--marfil) 60%, #f1e8d2 100%);
  box-shadow: 0 -2px 18px rgba(0, 0, 0, .25);
  transition: transform 1.15s var(--suave);
}
.carta-marco {
  position: absolute; inset: 6px; border: 1px solid rgba(169, 128, 44, .55); border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; padding-top: 9%;
}
.carta-sup { font-family: var(--sc); font-size: clamp(10px, 3vw, 13px); letter-spacing: .26em; color: #8a6420; }
.carta-nombres { font-family: var(--script); font-size: clamp(24px, 7.6vw, 33px); color: var(--tinta); line-height: 1.5; }
.carta-nombres i { font-family: var(--serif); font-size: .62em; color: #a8802c; }
.carta-linea { width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #b98a30, transparent); }

.solapa {
  position: absolute; left: 0; top: 0; width: 100%; height: 60.6%; z-index: 4;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform 1s var(--seda);
}
.solapa svg { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.solapa-cara { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.solapa-dorso { filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, .25)); }
.solapa-dorso { transform: rotateY(180deg); }

.sello {
  position: absolute; left: 50%; top: 60.6%; width: 80px; height: 80px; margin: -40px 0 0 -40px; z-index: 5;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
  animation: selloLatir 2.8s ease-in-out 1.8s infinite;
}
.sello svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sello::before { /* halo que invita a tocar */
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(244, 226, 166, .8); opacity: 0;
  animation: halo 2.8s ease-out 1.8s infinite;
}
.sello-txt { font-family: var(--script); font-size: 31px; fill: #6a4914; }
.sello-txt.sombra { fill: #fff3cc; opacity: .55; }
.sello-txt .y { font-family: var(--serif); font-style: italic; font-size: 16px; }
@keyframes selloLatir { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } 24% { transform: scale(1); } }
@keyframes halo { 0% { transform: scale(.85); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

.ap-para { animation: entrar 1.6s var(--suave) .5s both; }
.ap-para p { margin: 0; }
.ap-para-sup { font-style: italic; font-size: 19px; color: var(--texto-suave); }
.ap-para-nombre { font-family: var(--script); font-size: clamp(40px, 11.5vw, 56px); line-height: 1.35; padding: 0 .3em; }
.ap-pista {
  margin: 22px 0 0; font-family: var(--sc); font-size: 14px; letter-spacing: .24em; color: var(--oro-claro);
  animation: entrar 1.6s var(--suave) .9s both;
}
.ap-pista span { display: inline-block; animation: respirar 2.8s ease-in-out 2.5s infinite; }
.ap-texto { transition: opacity .55s ease, transform .9s var(--suave); }
.abriendo .ap-texto { opacity: 0; pointer-events: none; }
.abriendo .ap-arriba { transform: translate3d(0, -14px, 0); }
.abriendo .ap-abajo { transform: translate3d(0, 14px, 0); }
@keyframes respirar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* secuencia de apertura */
.abriendo .sello { animation: selloRomper .6s var(--suave) forwards; pointer-events: none; }
.abriendo .sello::before { animation: none; opacity: 0; }
@keyframes selloRomper { 0% { transform: scale(1); } 28% { transform: scale(.86); } 100% { transform: scale(1.45) rotate(-8deg); opacity: 0; } }
.abriendo .solapa { transform: rotateX(180deg); transition-delay: .3s; }
.solapa-atras .solapa { z-index: 1; }
.abriendo .carta { transform: translate3d(0, -50%, 0); transition-delay: 1.05s; }

/* =====================================================================
   CONTENIDO
   ===================================================================== */
main { opacity: 0; visibility: hidden; transition: opacity 1.4s var(--suave); }
body.abierto main { opacity: 1; visibility: visible; }

.sec { position: relative; max-width: 560px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.titulo {
  font-family: var(--script); font-weight: 400; font-size: clamp(46px, 13vw, 64px); line-height: 1.25;
  margin: 0 auto 18px; padding: .06em .3em; width: fit-content;
}

/* ---------- portada ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(44px, env(safe-area-inset-top)) 22px 64px; text-align: center; position: relative;
}
.hero-promo { margin: 0; font-family: var(--sc); font-weight: 500; font-size: 14px; letter-spacing: .38em; color: var(--plata); line-height: 1.3; }
.hero-promo .oro { display: block; font-weight: 600; font-size: 31px; letter-spacing: .18em; padding: 0 .2em; animation-duration: 12s; }
.emblema { width: min(44vw, 188px); margin: 14px auto 0; }
.emblema-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hoja path { stroke: #6e4c16; stroke-width: .45; }
.hoja .nervio { stroke: #fff1c4; stroke-opacity: .55; stroke-width: .5; fill: none; }
.tallo { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2s var(--suave) .2s; }
.hoja path { transform: scale(0); transform-box: fill-box; transform-origin: 0% 50%; transition: transform .9s var(--suave); transition-delay: calc(var(--i) * 75ms + .35s); }
.lazo { opacity: 0; transition: opacity 1s ease .3s; }
.visto .tallo { stroke-dashoffset: 0; }
.visto .hoja path { transform: scale(1); }
.visto .lazo { opacity: 1; }
.birrete { opacity: 0; transform: translate3d(0, -16px, 0); transition: opacity 1s var(--suave) 1s, transform 1.4s var(--suave) 1s; }
.visto .birrete { opacity: 1; transform: none; }
.borla { transform-box: fill-box; transform-origin: 50% 0; animation: borla 3.4s ease-in-out infinite; }
@keyframes borla { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }
.destello-emblema { transform-box: fill-box; transform-origin: center; animation: destello 3.2s ease-in-out infinite; }
@keyframes destello { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

.nombres { margin: 4px 0 0; font-weight: 400; line-height: 1; }
.nombres .n {
  display: block; width: fit-content; margin: 0 auto; padding: .1em .32em .12em;
  font-family: var(--script); font-size: clamp(60px, 17.5vw, 96px); line-height: 1.12;
}
.nombres .amp { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 8vw, 42px); color: var(--plata); margin: -.32em 0 -.38em; }
.hero-sub { margin: 10px 0 0; font-style: italic; font-size: 22px; letter-spacing: .02em; }
.fecha { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; width: min(100%, 320px); margin: 20px auto 0; }
.fecha-lado { font-family: var(--sc); font-size: 15px; letter-spacing: .22em; color: var(--plata); padding: 6px 0; border-top: 1px solid rgba(217, 180, 90, .5); border-bottom: 1px solid rgba(217, 180, 90, .5); }
.fecha-num { font-weight: 300; font-size: 66px; line-height: 1; padding: 0 .04em; }
.fecha-hora { margin: 8px 0 0; font-family: var(--sc); font-size: 15px; letter-spacing: .2em; color: var(--oro-claro); }
.verso { margin: 24px auto 0; max-width: 30ch; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--texto-suave); }
.verso cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--sc); font-size: 13px; letter-spacing: .2em; color: var(--oro); }
.bajar { display: block; width: 22px; margin: 30px auto 0; color: rgba(244, 226, 166, .7); }
.bajar svg { display: block; width: 100%; }
.bajar-punto { animation: bajar 2.2s ease-in-out infinite; }
@keyframes bajar { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- divisor ---------- */
.divisor { width: 230px; margin: 0 auto 26px; }
.divisor svg { display: block; width: 100%; overflow: visible; }
.d-linea { stroke-width: 1; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--suave) .2s; }
.divisor.visto .d-linea { stroke-dashoffset: 0; }
.d-mariposa { transform-box: fill-box; transform-origin: center; animation: dAletear 3s ease-in-out infinite; }
@keyframes dAletear { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }

/* ---------- texto de invitación ---------- */
.saludo { margin-bottom: 18px; }
.saludo-nombre { font-family: var(--script); font-size: clamp(42px, 12vw, 58px); line-height: 1.3; margin: 0 auto; padding: .05em .3em; width: fit-content; }
.pase {
  display: inline-block; margin: 8px 0 0; padding: 6px 18px; border: 1px solid rgba(217, 180, 90, .6); border-radius: 999px;
  font-family: var(--sc); font-size: 14px; letter-spacing: .18em; color: var(--oro-claro);
  background: linear-gradient(180deg, rgba(217, 180, 90, .12), rgba(217, 180, 90, .02));
}
.texto-intro { font-size: 21px; line-height: 1.6; max-width: 32ch; margin: 0 auto 6px; }
.colegio { margin: 6px 0 0; font-family: var(--sc); font-size: 16px; letter-spacing: .16em; color: var(--plata); line-height: 1.9; }
.colegio > span { display: block; }

/* ---------- egresadas ---------- */
.sec-egresadas { padding-top: 24px; }
.retratos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 440px; margin: 0 auto; align-items: start; }
.retratos .retrato:nth-child(2) { margin-top: 26px; }
.retrato { margin: 0; }
.arco {
  display: block; width: 100%; padding: 0; cursor: zoom-in; font: inherit; color: inherit;
  position: relative; aspect-ratio: 1000 / 1433; border-radius: 50% 50% 10px 10px / 15% 15% 10px 10px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(80, 120, 230, .45), rgba(20, 40, 110, 0) 70%),
    linear-gradient(180deg, #14306f, #0a1640);
  border: 1px solid rgba(217, 180, 90, .75);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(5, 12, 38, .55), inset 0 0 0 6px rgba(217, 180, 90, .45);
}
.arco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arco::after { /* reflejo */
  content: ''; position: absolute; top: -10%; bottom: -10%; width: 45%; left: -60%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  animation: reflejo 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes reflejo { 0%, 60% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(420%) skewX(-12deg); } }
.inicial {
  position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 8%;
  font-family: var(--script); font-size: clamp(80px, 22vw, 110px); color: rgba(244, 226, 166, .5);
}
.arco:disabled { cursor: default; }
.retratos-firma { margin: 20px 0 0; font-family: var(--script); font-size: clamp(36px, 10vw, 50px); line-height: 1.4; white-space: nowrap; }
.retratos-firma .oro-plano { padding: 0 .12em; }
.visor.una-sola .visor-nav { display: none; }
.retrato-par { margin: 0 auto; width: min(82vw, 380px); }
.arco-par { aspect-ratio: 4 / 5; border-radius: 50% 50% 14px 14px / 11% 11% 14px 14px; }
.arco-par .inicial { font-size: clamp(70px, 20vw, 110px); }
.retrato-par figcaption { font-family: var(--script); font-size: clamp(34px, 9.4vw, 50px); line-height: 1.5; margin-top: 6px; white-space: nowrap; }
.retrato-par figcaption .oro-plano { padding: 0 .12em; }
.amp-s { font-family: var(--serif); font-style: italic; font-size: .62em; color: var(--plata); }
.retrato figcaption { font-family: var(--script); font-size: clamp(34px, 9.5vw, 44px); line-height: 1.5; margin-top: 4px; padding: 0 .3em; }
.nota { margin: 18px auto 0; font-style: italic; font-size: 19px; color: var(--texto-suave); max-width: 28ch; }

/* ---------- cuenta regresiva ---------- */
.cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 6px auto 0; }
.anillo { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.anillo .pista { fill: rgba(10, 24, 64, .55); stroke: rgba(220, 227, 238, .14); stroke-width: 2; }
.anillo .prog {
  fill: none; stroke: url(#oroE); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 282.74; stroke-dashoffset: 282.74; transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 3px rgba(244, 226, 166, .45));
}
.anillo .num { position: relative; font-weight: 300; font-size: clamp(28px, 8vw, 38px); line-height: 1; color: var(--oro-claro); font-variant-numeric: lining-nums tabular-nums; }
.anillo .lbl { position: relative; font-family: var(--sc); font-size: 12px; letter-spacing: .12em; color: var(--plata-osc); margin-top: 3px; }
.cuenta-fin { font-family: var(--script); font-size: 44px; line-height: 1.3; }

/* ---------- papel marfil (calendario y formulario) ---------- */
.papel {
  position: relative; color: var(--tinta); text-align: center;
  background: linear-gradient(180deg, #fffbf2 0%, var(--marfil) 55%, #f3ead6 100%);
  border-radius: 6px; padding: 28px 22px 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.papel::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(169, 128, 44, .45); border-radius: 3px; pointer-events: none; }

.calendario { max-width: 340px; margin: 8px auto 0; }
.cal-cab { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 10px; }
.cal-mes { font-family: var(--script); font-size: 40px; line-height: 1.2; color: var(--tinta); }
.cal-anio { font-family: var(--sc); font-size: 16px; letter-spacing: .2em; color: #a07428; }
.cal-sem, .cal-grilla { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-sem span { font-family: var(--sc); font-size: 13px; letter-spacing: .08em; color: #a07428; padding-bottom: 6px; border-bottom: 1px solid rgba(169, 128, 44, .35); margin-bottom: 6px; }
.cal-grilla span { position: relative; display: grid; place-items: center; height: 36px; font-weight: 500; font-size: 17px; color: rgba(19, 38, 94, .78); }
.cal-grilla .dia-fiesta { color: #fff; font-weight: 600; z-index: 0; }
.cal-grilla .dia-fiesta::before {
  content: ''; position: absolute; width: 34px; height: 34px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 30%, #f6e3a1, #d9b45a 45%, #9c7124);
  box-shadow: 0 4px 12px rgba(156, 113, 36, .45);
  transform: scale(0); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1) .6s;
}
.calendario.visto .dia-fiesta::before { transform: scale(1); }
.cal-grilla .dia-fiesta::after {
  content: ''; position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(169, 128, 44, .6);
  opacity: 0; animation: anilloDia 3s ease-out 1.6s infinite;
}
@keyframes anilloDia { 0% { transform: scale(.75); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.cal-hora { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(169, 128, 44, .35); font-size: 18px; font-weight: 500; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.cal-hora .ico { color: #a07428; }

.lugar { margin: 46px auto 0; max-width: 360px; }
.lugar-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(217, 180, 90, .6); color: var(--oro-claro); background: rgba(10, 24, 64, .5); }
.lugar-ico .ico { width: 26px; height: 26px; }
.lugar-nombre { margin: 12px 0 0; font-family: var(--sc); font-weight: 600; font-size: 24px; letter-spacing: .1em; color: var(--oro-claro); line-height: 1.3; }
.lugar-det { margin: 2px 0 0; font-style: italic; font-size: 19px; color: var(--texto-suave); }
.lugar-pendiente { margin: 12px 0 0; font-style: italic; font-size: 16px; color: var(--plata-osc); }

/* ---------- botones ---------- */
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--sc); font-weight: 600; font-size: 16px; letter-spacing: .1em; line-height: 1;
  transition: transform .35s var(--suave), box-shadow .35s var(--suave), opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; }
.btn-oro {
  color: #0b1a4a; border: 0;
  background: linear-gradient(135deg, #f6e3a1 0%, #d9b45a 40%, #b98a30 70%, #e9cc7e 100%);
  box-shadow: 0 10px 26px rgba(217, 180, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-oro::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  transform: skewX(-20deg); animation: barrido 4.5s ease-in-out infinite;
}
@keyframes barrido { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(560%) skewX(-20deg); } }
.btn-linea { color: var(--oro-claro); background: rgba(10, 24, 64, .35); border: 1px solid rgba(217, 180, 90, .65); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn[aria-disabled="true"]::after { display: none; }

/* ---------- programa ---------- */
.linea-tiempo { list-style: none; margin: 10px auto 0; padding: 6px 0; position: relative; max-width: 420px; --p: 0; }
.linea-tiempo::before, .linea-tiempo::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; }
.linea-tiempo::before { background: rgba(220, 227, 238, .16); }
.linea-tiempo::after { background: linear-gradient(180deg, #f6e3a1, #d9b45a 60%, #9c7124); transform-origin: 50% 0; transform: scaleY(var(--p)); box-shadow: 0 0 8px rgba(244, 226, 166, .5); }
.hito { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 16px 0; }
.hito-ico { grid-column: 2; grid-row: 1; position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #0b1a4a; border: 1px solid rgba(217, 180, 90, .7); color: var(--oro-claro); box-shadow: 0 0 0 5px rgba(5, 12, 38, .9); }
.hito-ico .ico { width: 22px; height: 22px; }
.hito-hora { grid-row: 1; font-family: var(--sc); font-weight: 600; font-size: 20px; letter-spacing: .08em; color: var(--oro-claro); }
.hito-tit { grid-row: 1; font-size: 19px; line-height: 1.3; color: var(--texto); }
.hito.izq .hito-hora { grid-column: 1; text-align: right; padding-right: 14px; }
.hito.izq .hito-tit { grid-column: 3; text-align: left; padding-left: 14px; }
.hito.der .hito-hora { grid-column: 3; text-align: left; padding-left: 14px; }
.hito.der .hito-tit { grid-column: 1; text-align: right; padding-right: 14px; }
.hito.rv { transform: translate3d(0, 14px, 0); }
.hito.rv .hito-ico { transform: scale(.4); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--d, 0s) + .15s); }
.hito.rv.visto .hito-ico { transform: none; }

/* ---------- galería ---------- */
.galeria { display: grid; gap: 18px; margin: 10px -8px 0; }
.foto-g {
  position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 1.5); padding: 0; cursor: zoom-in; overflow: hidden;
  border: 1px solid rgba(217, 180, 90, .75); border-radius: 10px; background: #0b1a4a;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
}
.foto-g img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--suave); }
.foto-g:hover img, .foto-g:focus-visible img { transform: scale(1.025); }
.foto-g::before { /* marco interior */
  content: ''; position: absolute; inset: 5px; z-index: 1; border: 1px solid rgba(244, 226, 166, .45); border-radius: 6px; pointer-events: none;
}
.foto-g::after { /* lupa */
  content: ''; position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, .7); background: rgba(8, 19, 56, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4e2a6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.galeria-nota { margin: 16px 0 0; font-style: italic; font-size: 17px; color: var(--plata-osc); }

html.visor-abierto, html.visor-abierto body { overflow: hidden; }
.visor { position: fixed; inset: 0; z-index: 9; background: rgba(3, 8, 26, .97); animation: entrar .35s ease both; }
.visor-pista {
  position: absolute; inset: 0; display: flex; align-items: center; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none;
}
.visor-pista::-webkit-scrollbar { display: none; }
.visor-pista img {
  flex: none; display: block; margin: auto; height: min(74vh, calc((100vw - 24px) / var(--ar, 1.5) * var(--zoom, 2.6))); width: auto; max-width: none;
  border: 12px solid transparent; border-radius: 18px; box-sizing: content-box;
}
.visor-cerrar, .visor-nav {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(217, 180, 90, .65); background: rgba(10, 24, 64, .78); color: var(--oro-claro); font-size: 30px; line-height: 1;
}
.visor-cerrar { top: max(14px, env(safe-area-inset-top)); right: 14px; font-size: 28px; }
.visor-nav { top: 50%; margin-top: -23px; }
.visor-ant { left: 10px; }
.visor-sig { right: 10px; }
.visor-ayuda {
  position: absolute; left: 50%; bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px)); z-index: 2; margin: 0; transform: translateX(-50%);
  padding: 8px 18px; border-radius: 999px; background: rgba(10, 24, 64, .85); border: 1px solid rgba(217, 180, 90, .5);
  font-style: italic; font-size: 16px; color: var(--oro-claro); white-space: nowrap; pointer-events: none; transition: opacity .6s ease;
  animation: deslizarAyuda 1.6s ease-in-out infinite;
}
.visor-ayuda.fuera { opacity: 0; }
@keyframes deslizarAyuda { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(calc(-50% + 8px)); } }
.visor-cuenta {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 2; margin: 0; transform: translateX(-50%);
  font-family: var(--sc); font-size: 14px; letter-spacing: .2em; color: var(--plata-osc);
}

/* ---------- lluvia de sobres ---------- */
.sec-sobres { overflow: hidden; }
.lluvia { position: absolute; inset: 0; pointer-events: none; }
.sobrecito {
  position: absolute; top: -30px; left: var(--x); width: 22px; height: 15px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect x='.5' y='.5' width='21' height='14' rx='1.5' fill='%230e2257' stroke='%23d9b45a'/%3E%3Cpath d='M1 1.5l10 7 10-7' fill='none' stroke='%23d9b45a'/%3E%3Ccircle cx='11' cy='8.3' r='1.8' fill='%23e6c77a'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: caer var(--t) linear var(--dl) infinite; animation-play-state: paused;
}
.sec-sobres.activa .sobrecito { animation-play-state: running; }
@keyframes caer {
  0% { transform: translate3d(0, 0, 0) rotate(-18deg); opacity: 0; }
  10% { opacity: var(--o, .7); }
  50% { transform: translate3d(22px, 52vh, 0) rotate(14deg); }
  88% { opacity: var(--o, .7); }
  100% { transform: translate3d(-8px, 104vh, 0) rotate(-10deg); opacity: 0; }
}
.sobre-ico { width: 104px; margin: 0 auto 6px; position: relative; }
.sobre-ico svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.texto-centro { position: relative; font-size: 20px; line-height: 1.6; max-width: 30ch; margin: 0 auto; }

/* ---------- agradecimientos ---------- */
.verso-grande { margin: 0 auto 26px; max-width: 26ch; }
.verso-grande p { margin: 0; font-style: italic; font-size: 24px; line-height: 1.45; color: var(--texto); }
.verso-grande cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sc); font-size: 14px; letter-spacing: .2em; color: var(--oro); }
.gracias-lista { list-style: none; margin: 0 auto; padding: 0; max-width: 32ch; }
.gracias-lista li { font-size: 19px; line-height: 1.55; color: var(--texto-suave); padding: 12px 0; }
.gracias-lista li + li { border-top: 1px solid rgba(217, 180, 90, .2); }
.firma { font-family: var(--script); font-size: clamp(38px, 11vw, 50px); line-height: 1.4; margin: 20px auto 0; padding: 0 .3em; width: fit-content; }

/* ---------- confirmación ---------- */
.rsvp-limite { margin: -6px auto 22px; font-style: italic; font-size: 19px; color: var(--texto-suave); max-width: 30ch; }
.rsvp { max-width: 420px; margin: 0 auto; text-align: left; padding: 30px 24px 28px; }
.invitado-fijo { text-align: center; margin-bottom: 18px; }
.if-sup { display: block; font-family: var(--sc); font-size: 13px; letter-spacing: .22em; color: #a07428; }
.if-nombre { display: block; font-family: var(--script); font-size: 40px; line-height: 1.35; color: var(--tinta); }
.if-pase { display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(169, 128, 44, .55); font-family: var(--sc); font-size: 13px; letter-spacing: .14em; color: #8a6420; }
.campo { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.campo label, .campo legend, .campo-label { display: block; font-family: var(--sc); font-weight: 600; font-size: 14px; letter-spacing: .1em; color: #8a6420; margin-bottom: 6px; padding: 0; }
.opc { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: rgba(19, 38, 94, .5); }
.campo input, .campo textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(19, 38, 94, .3); border-radius: 0; background: transparent;
  font-family: var(--serif); font-size: 20px; color: var(--tinta); padding: 6px 2px 8px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.campo textarea { border: 1px solid rgba(19, 38, 94, .25); border-radius: 6px; padding: 10px 12px; min-height: 92px; font-size: 19px; line-height: 1.45; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(19, 38, 94, .38); font-style: italic; }
.campo input:focus { border-bottom-color: #b98a30; box-shadow: 0 1px 0 #b98a30; }
.campo textarea:focus { border-color: #b98a30; box-shadow: 0 0 0 1px #b98a30; }
.campo.error input { border-bottom-color: #b3261e; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones legend { grid-column: 1 / -1; float: left; width: 100%; margin-bottom: 8px; }
.opcion { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(19, 38, 94, .25); background: rgba(255, 255, 255, .5);
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0; color: var(--tinta); line-height: 1.2;
  transition: background .35s var(--suave), color .35s, border-color .35s, transform .35s var(--suave), box-shadow .35s;
}
.opcion input:checked + span { background: linear-gradient(135deg, #13265e, #1d3b8a); color: #f6e3a1; border-color: #13265e; box-shadow: 0 8px 18px rgba(19, 38, 94, .3); transform: translateY(-1px); }
.opcion input:focus-visible + span { outline: 1.5px solid #b98a30; outline-offset: 3px; }
.opciones.error .opcion span { border-color: #b3261e; }
.contador { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(19, 38, 94, .25); border-radius: 999px; padding: 4px; background: rgba(255, 255, 255, .5); }
.contador button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #13265e; color: #f6e3a1; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .2s, opacity .2s; }
.contador button:active { transform: scale(.92); }
.contador button:disabled { opacity: .3; cursor: default; }
.contador output { min-width: 52px; text-align: center; font-size: 26px; font-weight: 600; color: var(--tinta); font-variant-numeric: lining-nums; }
.campo input, .campo textarea, .tel-pais { font-variant-numeric: lining-nums; }
.contador-nota { display: block; margin-top: 6px; font-style: italic; font-size: 16px; color: rgba(19, 38, 94, .6); }
.form-error { margin: -4px 0 14px; font-size: 17px; color: #b3261e; font-style: italic; }
.btn-enviar { width: 100%; min-height: 54px; font-size: 17px; }
.btn-carga { display: none; gap: 6px; }
.btn-carga i { width: 7px; height: 7px; border-radius: 50%; background: #0b1a4a; animation: carga 1s ease-in-out infinite; }
.btn-carga i:nth-child(2) { animation-delay: .15s; }
.btn-carga i:nth-child(3) { animation-delay: .3s; }
@keyframes carga { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.enviando .btn-txt { display: none; }
.enviando .btn-carga { display: inline-flex; }
.enviando { pointer-events: none; }

.rsvp-ok, .rsvp-cerrado { text-align: center; padding: 8px 0 4px; }
.check { width: 84px; height: 84px; display: block; margin: 0 auto 10px; }
.check circle { fill: none; stroke: #b98a30; stroke-width: 2; stroke-dasharray: 227; stroke-dashoffset: 227; animation: trazo 1s var(--suave) .1s forwards; }
.check path { fill: none; stroke: #13265e; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: trazo .7s var(--suave) .75s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.ok-titulo { margin: 0; font-family: var(--script); font-size: 42px; line-height: 1.35; color: var(--tinta); }
.ok-texto { margin: 6px auto 18px; font-size: 19px; line-height: 1.55; max-width: 28ch; color: rgba(19, 38, 94, .85); }
.rsvp .btn-linea { color: #13265e; background: transparent; border-color: rgba(19, 38, 94, .4); }

/* ---------- cierre ---------- */
.sec-cierre { padding-bottom: 40px; }
.sec-cierre .verso { margin-top: 0; max-width: 32ch; }
.cierre-titulo { font-family: var(--script); font-weight: 400; font-size: clamp(44px, 12.6vw, 80px); line-height: 1.3; margin: 26px auto 0; padding: .05em .22em; width: fit-content; white-space: nowrap; }
.monograma { width: min(52vw, 210px); margin: 10px auto 0; }
.mono-txt { font-family: var(--script); font-size: 52px; fill: url(#oroE); }
.mono-txt .y { font-family: var(--serif); font-style: italic; font-size: 26px; }
.cierre-firma { margin: 10px 0 0; font-family: var(--sc); font-size: 16px; letter-spacing: .2em; line-height: 1.9; color: var(--plata); }
.cierre-firma .amp-s { letter-spacing: 0; font-size: 1.1em; color: var(--oro-claro); }
.logo-promo { position: relative; width: min(88vw, 400px); margin: 34px auto 0; }
.logo-promo::before {
  content: ''; position: absolute; inset: -14% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(244, 226, 166, .2), rgba(120, 150, 255, .08) 55%, rgba(5, 12, 38, 0));
  animation: respirar 5s ease-in-out infinite;
}
.logo-promo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }
.logo-promo.rv { transform: translate3d(0, 18px, 0) scale(.94); transition-duration: 1.4s; }
.logo-promo.rv.visto { transform: none; }
.logo-brillo {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(../assets/img/logo-mascara.webp) center / 100% 100% no-repeat;
          mask: url(../assets/img/logo-mascara.webp) center / 100% 100% no-repeat;
}
.logo-brillo::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 32%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 250, 225, .65), rgba(255, 255, 255, 0));
  transform: skewX(-18deg); animation: barridoLogo 6s ease-in-out 1.5s infinite;
}
@keyframes barridoLogo { 0%, 60% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(560%) skewX(-18deg); } }
.pie { position: relative; text-align: center; padding: 24px 20px max(96px, calc(env(safe-area-inset-bottom) + 84px)); font-size: 14px; letter-spacing: .06em; color: rgba(178, 189, 217, .5); }
.pie-credito { margin: 0; }
.pie-contacto {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; margin-top: 2px;
  font-size: 13px; letter-spacing: .05em; color: rgba(178, 189, 217, .4);
  text-decoration: underline; text-decoration-color: rgba(217, 180, 90, .22); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .4s ease, text-decoration-color .4s ease;
}
.pie-contacto .ico { width: 14px; height: 14px; }
.pie-contacto:hover, .pie-contacto:focus-visible { color: var(--oro-claro); text-decoration-color: rgba(217, 180, 90, .6); }

/* ---------- botón de música ---------- */
.btn-musica {
  position: fixed; z-index: 7; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  width: 50px; height: 50px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(217, 180, 90, .7); background: rgba(8, 19, 56, .8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4), 0 0 0 4px rgba(217, 180, 90, .08);
  display: grid; place-items: center; animation: entrar .8s var(--suave) both;
}
.barras { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.barras i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, #f6e3a1, #b98a30); transform-origin: 50% 100%; animation: ecualizador 1s ease-in-out infinite; }
.barras i:nth-child(2) { animation-delay: -.4s; animation-duration: .8s; }
.barras i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.15s; }
.barras i:nth-child(4) { animation-delay: -.6s; animation-duration: .9s; }
@keyframes ecualizador { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.btn-musica.pausada .barras i { animation-play-state: paused; transform: scaleY(.25); }

/* ---------- pantallas grandes ---------- */
@media (min-width: 760px) {
  body { font-size: 20px; }
  .sec { padding: 90px 24px; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .rv { transform: none; }
}

/* =====================================================================
   GENERADOR DE INVITACIONES (crear.html)
   ===================================================================== */
.pagina-crear main { opacity: 1; visibility: visible; }
.crear { max-width: 520px; margin: 0 auto; padding: max(40px, env(safe-area-inset-top)) 20px 80px; }
.crear-cab { text-align: center; margin-bottom: 26px; }
.crear-cab .titulo { margin: 8px auto 4px; }
.crear-intro { margin: 0 auto; max-width: 30ch; font-style: italic; font-size: 19px; color: var(--texto-suave); }
.crear-form-wrap { text-align: left; padding: 30px 24px 26px; }
.resultado { margin-top: 34px; }
.resultado.aparecer { animation: entrar .9s var(--suave) both; }
.tarjeta-prev {
  position: relative; text-align: center; margin: 0 auto 18px; max-width: 380px; padding: 30px 20px 24px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1d3d93, #0b1a4a 60%, #071233);
  border: 1px solid rgba(217, 180, 90, .7);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(5, 12, 38, .5), inset 0 0 0 7px rgba(217, 180, 90, .35);
}
.tp-sello { width: 64px; height: 64px; margin: 0 auto 10px; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .45)); }
.tp-sello svg { width: 100%; height: 100%; overflow: visible; }
.tp-sup { margin: 0; font-style: italic; font-size: 18px; color: var(--texto-suave); }
.tp-nombre { margin: 0 auto; font-family: var(--script); font-size: clamp(38px, 11vw, 50px); line-height: 1.35; padding: 0 .3em; width: fit-content; max-width: 100%; }
.tarjeta-prev .pase { margin-top: 4px; }
.tp-fecha { margin: 14px 0 0; font-family: var(--sc); font-size: 14px; letter-spacing: .14em; color: var(--plata); }
.resultado-acciones { text-align: left; padding: 26px 22px 22px; }
.resultado-acciones textarea { font-size: 17px; min-height: 210px; }
#r-link { font-size: 15px; color: rgba(19, 38, 94, .75); text-overflow: ellipsis; }
.acciones { display: grid; gap: 10px; }
.acciones .btn { width: 100%; }
.resultado-acciones .btn-linea { color: #13265e; background: transparent; border-color: rgba(19, 38, 94, .4); }
.estado-planilla { margin: 12px 0 0; text-align: center; font-style: italic; font-size: 16px; color: rgba(19, 38, 94, .65); }
.tel-grupo { display: flex; align-items: stretch; border-bottom: 1px solid rgba(19, 38, 94, .3); transition: border-color .3s, box-shadow .3s; }
.tel-grupo:focus-within { border-bottom-color: #b98a30; box-shadow: 0 1px 0 #b98a30; }
.tel-pais {
  position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 0 10px 0 2px; margin-right: 10px; border-right: 1px solid rgba(19, 38, 94, .18);
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--tinta);
}
.tel-pais svg { width: 12px; height: 12px; opacity: .6; }
.tel-pais select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tel-pais:focus-within { color: #8a6420; }
.campo .tel-grupo input { flex: 1; min-width: 0; border-bottom: 0; box-shadow: none; }
.lista-wrap { margin-top: 44px; text-align: center; }
.lista-cab { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.lista-titulo { margin: 0; font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1.3; color: var(--oro-claro); }
.lista-totales { margin: 0; font-family: var(--sc); font-size: 14px; letter-spacing: .14em; color: var(--plata-osc); }
.lista { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.item {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; margin-bottom: 8px; border-radius: 12px;
  background: rgba(10, 24, 64, .6); border: 1px solid rgba(217, 180, 90, .28); transition: border-color .3s, background .3s;
}
.item.confirmar { border-color: rgba(230, 120, 110, .8); background: rgba(90, 20, 30, .35); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-nombre { font-size: 19px; font-weight: 600; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-det { font-size: 15px; color: var(--plata-osc); }
.item-acc { display: flex; gap: 6px; }
.ic-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(217, 180, 90, .45); background: transparent; color: var(--oro-claro); cursor: pointer; padding: 0; }
.ic-btn .ico { width: 20px; height: 20px; }
.lista-vacia { font-style: italic; font-size: 17px; color: var(--plata-osc); max-width: 32ch; margin: 0 auto 18px; }
.aviso {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 9; transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100% - 40px); padding: 12px 20px; border-radius: 999px; text-align: center;
  background: #f6e3a1; color: #0b1a4a; font-weight: 600; font-size: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transition: opacity .35s var(--suave), transform .35s var(--suave);
}
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.aviso.salir { opacity: 0; transform: translate(-50%, 20px); }
