/* =========================================================
   MOTOR DE INVITACIONES · estilos base
   Cada invitación define sus colores y fuentes en :root
   ========================================================= */
:root {
  --bg: #faf7f3;
  --surface: #ffffff;
  --ink: #2b2522;
  --muted: #7b716b;
  --accent: #8b6b4a;
  --accent-text: var(--accent); /* acento para textos chicos: el generador lo ajusta para que se lea bien */
  --accent-ink: #ffffff;
  --soft: #f1e9df;
  --line: #e6ddd2;
  --hero-ink: #2b2522;
  --hero-bg: var(--bg);
  --font-display: Georgia, serif;
  --font-script: var(--font-display);
  --font-body: system-ui, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-text); margin: 0 0 .75rem;
}
.titulo {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 1.25rem;
  text-wrap: balance;
}
.lead { color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 2.2rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-borde { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-claro { background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Sobre de entrada ---------- */
.sobre {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--hero-bg); color: var(--hero-ink); text-align: center; padding: 16px;
  transition: opacity .9s ease, visibility .9s;
}
.sobre.abierto { opacity: 0; visibility: hidden; }
.sobre-arte { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sobre-inner { position: relative; z-index: 1; max-width: 420px; }
.sobre .para { font-family: var(--font-script); font-size: 1.5rem; margin: 0 0 .25rem; }
.sobre .para small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.sello {
  width: 112px; height: 112px; margin: 1.5rem auto; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-family: var(--font-script); font-size: 2rem;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--accent), 0 14px 32px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: latido 2.6s ease-in-out infinite;
}
@keyframes latido { 50% { transform: scale(1.05); } }
.sobre h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 8vw, 3rem); margin: 0 0 1.75rem; line-height: 1.1; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.4rem;
  padding: .85rem 16px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav a { text-decoration: none; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 6rem 16px 5rem; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden;
}
.hero-arte { position: absolute; inset: 0; pointer-events: none; }
.hero-arte svg, .sobre-arte svg { position: absolute; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero .pre { font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; font-weight: 700; margin: 0 0 1rem; opacity: .85; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(3rem, 13vw, 6.5rem); margin: 0 0 1rem; text-wrap: balance;
}
.hero h1 .amp { font-family: var(--font-script); color: var(--accent); font-weight: 400; }
.hero .sub { font-family: var(--font-script); font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 0 0 1rem; }
.hero .fecha { letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; font-weight: 600; margin: 0 0 2rem; }
.hero .foto-hero {
  width: min(260px, 60vw); aspect-ratio: 4/5; margin: 0 auto 2rem; border-radius: 999px 999px 20px 20px;
  object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.countdown { display: flex; justify-content: center; gap: clamp(.6rem, 3vw, 1.4rem); margin: 0 0 2.25rem; }
.countdown div {
  min-width: 70px; padding: .8rem .4rem; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--hero-ink) 25%, transparent);
  background: color-mix(in srgb, var(--surface) 35%, transparent); backdrop-filter: blur(4px);
}
.countdown span { display: block; font-variant-numeric: lining-nums tabular-nums; font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; font-size: 1.6rem; text-decoration: none; animation: bob 2s infinite; color: var(--hero-ink); }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- Secciones ---------- */
.seccion { padding: 5.5rem 16px; text-align: center; }
.seccion > .wrap { max-width: 1000px; margin: 0 auto; }
.seccion.alt { background: var(--surface); }
.seccion.suave { background: var(--soft); }
.divisor { width: 120px; height: 24px; margin: 0 auto 1.5rem; color: var(--accent); }
.anim { transform: translateY(20px); transition: transform .8s ease; }
.anim.visible { transform: none; }

/* Bienvenida personalizada */
.bienvenida {
  max-width: 620px; margin: 0 auto; padding: 2.25rem 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0,0,0,.06);
}
.bienvenida .nombre { font-family: var(--font-script); font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--accent); margin: .25rem 0 .75rem; line-height: 1.1; }
.bienvenida .pases { display: inline-flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .8rem; font-weight: 600; }

/* Mensaje */
.mensaje blockquote { font-family: var(--font-script); font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.35; margin: 0 auto 2rem; max-width: 680px; text-wrap: balance; }
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.personas .rol { margin: 0 0 .4rem; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-text); }
.personas p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }

/* Historia */
.timeline { position: relative; max-width: 720px; margin: 0 auto; text-align: left; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 2.25rem 54px; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item .anio { font-size: .72rem; letter-spacing: .25em; font-weight: 700; color: var(--accent-text); }
.tl-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: .1rem 0 .3rem; }
.tl-item p { margin: 0; color: var(--muted); }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galeria figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; position: relative; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.foto-vacia {
  width: 100%; height: 100%; min-height: 170px; display: grid; place-items: center; align-content: center; gap: .5rem;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(160deg, var(--soft), color-mix(in srgb, var(--accent) 18%, var(--soft)));
  color: var(--accent-text); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
}
.foto-vacia svg { width: 34px; height: 34px; opacity: .8; }

/* Eventos */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.tarjeta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 1.5rem; display: grid; gap: .35rem; justify-items: center;
}
.seccion.alt .tarjeta { background: var(--bg); }
.tarjeta .icono { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: .5rem; }
.tarjeta .icono svg { width: 26px; height: 26px; }
.tarjeta h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; margin: 0; }
.tarjeta .hora { color: var(--accent-text); font-weight: 700; letter-spacing: .12em; }
.tarjeta p { margin: 0; color: var(--muted); }
.tarjeta .acciones { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.tarjeta .btn { padding: .7rem 1.2rem; font-size: .66rem; }

/* Itinerario */
.itinerario { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: left; }
.itinerario li { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.itinerario .h { font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.itinerario .e { font-family: var(--font-display); font-size: 1.15rem; }

/* Dress code */
.dress { max-width: 620px; margin: 0 auto; }
.dress .tipo { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 .5rem; }
.paleta { display: flex; justify-content: center; gap: .6rem; margin: 1.25rem 0; flex-wrap: wrap; }
.paleta span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.dress .nota { color: var(--muted); font-size: .92rem; }

/* Regalos y hospedaje */
.regalo .qr-img { width: 100%; max-width: 200px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; margin: .75rem auto; }
.regalo .cuenta strong { font-variant-numeric: tabular-nums; user-select: all; }
.estrellas { color: var(--accent); letter-spacing: .15em; }

/* Compartir fotos */
.hashtag { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--accent); margin: .5rem 0 1.5rem; word-break: break-word; }

/* Pase / ticket */
.pase {
  max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.08); text-align: center;
}
.pase-top { padding: 1.75rem 1.5rem 1.25rem; background: var(--accent); color: var(--accent-ink); }
.pase-top p { margin: 0; }
.pase-top .n { font-family: var(--font-script); font-size: 1.9rem; line-height: 1.2; margin: .3rem 0; }
.pase-corte { height: 0; border-top: 2px dashed var(--line); margin: 0 18px; position: relative; }
.pase-corte::before, .pase-corte::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.pase-corte::before { left: -30px; } .pase-corte::after { right: -30px; }
.seccion.alt .pase-corte::before, .seccion.alt .pase-corte::after { background: var(--surface); }
.pase-body { padding: 1.5rem; display: grid; gap: 1rem; justify-items: center; }
.pase-datos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; }
.pase-datos div { background: var(--soft); border-radius: 12px; padding: .7rem; }
.pase-datos small { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pase-datos strong { font-family: var(--font-display); font-size: 1.6rem; }
.pase-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.pase-qr { width: 172px; aspect-ratio: 1; }
.pase-qr svg { display: block; width: 100%; height: 100%; }
.pase small.nota { color: var(--muted); }

/* ---------- Cuestionario + RSVP ---------- */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.progreso { margin: 0 auto 1.75rem; max-width: 520px; }
.progreso-barra { height: 2px; background: var(--line); position: relative; }
.progreso-barra span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .6s ease; }
.progreso-txt { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.quiz-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(2rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 3rem); min-height: 440px;
  box-shadow: 0 20px 50px rgba(0,0,0,.07); text-align: center;
}
.quiz-card::after { content: ""; position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.paso { animation: entrar .5s ease; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }
.paso.izq { text-align: left; }
.quiz-q { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.12; margin: .4rem 0 1.75rem; text-wrap: balance; }
.quiz-icono {
  width: 80px; height: 80px; margin: 0 auto 1.25rem; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line);
}
.quiz-icono.mal { background: color-mix(in srgb, #c0392b 12%, var(--surface)); border-color: #c0392b; color: #c0392b; }
.quiz-icono.bien { background: color-mix(in srgb, #2e7d4f 12%, var(--surface)); border-color: #2e7d4f; color: #2e7d4f; }
.sino { position: relative; display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; min-height: 64px; }
.sino .btn { min-width: 130px; border-radius: 12px; }
#btnNo { transition: left .25s ease, top .25s ease; z-index: 5; }
#btnNo.huye { position: absolute; }
.no-hint { font-size: .82rem; color: var(--muted); min-height: 1.4em; margin-top: 1.5rem; font-style: italic; }
.opciones { display: grid; gap: .7rem; }
.opcion {
  width: 100%; text-align: left; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.opcion:hover { background: var(--soft); border-color: var(--accent); transform: translateX(4px); }
.veredicto { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1; margin: 0 0 1rem; color: #b03a2e; text-wrap: balance; }
.veredicto.bien { color: #2e7d4f; }
.veredicto-txt { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0 0 1.75rem; }
.pill { display: inline-flex; align-items: center; padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid #b03a2e; color: #b03a2e; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.acciones-v { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.rsvp { text-align: left; display: grid; gap: 1rem; margin-top: 1rem; }
.rsvp label { display: grid; gap: .35rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.rsvp input, .rsvp select, .rsvp textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%;
}
.rsvp .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rsvp .btn { justify-self: center; margin-top: .5rem; }
.limite { color: var(--muted); font-size: .9rem; margin-top: 1.25rem; }

/* Confeti */
.confeti { position: fixed; top: -14px; width: 9px; height: 14px; z-index: 300; pointer-events: none; animation: caer linear forwards; }
@keyframes caer { to { transform: translateY(105vh) rotate(720deg); } }

/* ---------- Pie ---------- */
.pie { text-align: center; padding: 4rem 16px 5.5rem; background: var(--accent); color: var(--accent-ink); }
.pie .n { font-family: var(--font-display); font-size: 2rem; margin: 0 0 .25rem; }
.pie p { margin: .2rem 0; }
.pie .credito { margin-top: 2rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.pie .credito a { text-decoration: underline; }

/* ---------- Música ---------- */
#ytplayer, #ytplayer iframe { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.musica-btn {
  position: fixed; z-index: 90; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent-ink) 50%, transparent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.musica-btn[hidden] { display: none; }
.musica-btn svg { width: 22px; height: 22px; }
.musica-btn.on svg { animation: girar 3s linear infinite; }
.musica-btn:not(.on)::after { content: ""; position: absolute; width: 58%; height: 2px; background: currentColor; transform: rotate(-45deg); }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Demo: barra superior ---------- */
.demo-barra {
  position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 95;
  display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem 1rem; border-radius: 999px;
  background: #1f1b1a; color: #fff; font-size: .78rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 100px);
}
.demo-barra a { background: #fff; color: #1f1b1a; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.demo-barra span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .seccion { padding: 4.25rem 16px; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .rsvp .fila { grid-template-columns: 1fr; }
  .itinerario li { grid-template-columns: 78px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { transform: none; }
}
.seccion, .hero { scroll-margin-top: 64px; }

/* Portada con foto */
.hero.con-foto { color: #fff; --hero-ink: #fff; }
.hero-foto { position: absolute; inset: 0; background-size: cover; transform: scale(1.04); animation: acercar 18s ease-out forwards; }
.hero-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.35) 0%, rgba(10,10,12,.45) 55%, rgba(10,10,12,.7) 100%); }
@keyframes acercar { to { transform: scale(1); } }
.hero.con-foto .hero-arte { opacity: .55; }
.hero.con-foto h1 .amp { color: #fff; opacity: .9; }
.hero.con-foto .countdown div { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.hero.con-foto .scroll-hint { color: #fff; }

/* Raspa y descubre */
.raspa { position: relative; width: min(360px, 100%); aspect-ratio: 16/9; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.raspa-premio { position: absolute; inset: 0; display: grid; place-content: center; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.raspa-premio strong { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.3rem); color: var(--accent); line-height: 1.1; }
.raspa-pre, .raspa-pos { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.raspa canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.raspa-ayuda { color: var(--muted); font-style: italic; margin-top: 1rem; }

/* Evento finalizado */
.finalizado { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)); background: var(--hero-bg); color: var(--hero-ink); }
.finalizado h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 10vw, 4.5rem); margin: 0; line-height: 1.05; }
.finalizado .lead { margin: .5rem auto 0; }
.finalizado .credito { margin-top: 2rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* Fotos de los invitados */
.subir-fotos { cursor: pointer; }
.fotos-estado { color: var(--muted); font-size: .9rem; margin: 1rem 0 1.5rem; min-height: 1.4em; }
.galeria-invitados { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 1rem; }
.galeria-invitados a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.galeria-invitados img { width: 100%; height: 100%; object-fit: cover; }
.fotos-vacio { grid-column: 1 / -1; color: var(--muted); font-style: italic; }
/* Confirmación guardada */
.guardado { color: #2e7d4f; font-weight: 600; font-size: .9rem; margin: 0 0 1rem; }
.rsvp-error { color: #b03a2e; font-size: .9rem; text-align: center; margin: 0; }

.fotos-ventana { color: var(--muted); font-size: .8rem; margin: -1rem 0 1.25rem; }

.pase-codigo { display: grid; gap: .1rem; margin: 0; }
.pase-codigo small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pase-codigo strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; user-select: all; }

.ver-fotos { margin-top: .25rem; }
.ver-fotos[hidden], .galeria-invitados[hidden], .fotos-vacio[hidden] { display: none; }

/* Botones de la portada: confirmar y agendar */
.hero-acciones { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .25rem; }
.hero-acciones .btn svg { width: 18px; height: 18px; }
