/* =========================================================
   fuisteinvitado · Invitación 2026
   Temas: editorial · hacienda · celestial · jardin · rosa · fiesta
   ========================================================= */

/* ---------- Tokens por tema ---------- */
:root,
[data-tema="editorial"] {
  --bg: #f7f4ee;
  --bg-alt: #efe9df;
  --card: #fffdf9;
  --ink: #2b2723;
  --muted: #7a7065;
  --accent: #a68a5b;
  --accent-ink: #ffffff;
  --accent-2: #d9c8a6;
  --line: rgba(166, 138, 91, .35);
  --hero-ink: #2b2723;
  --overlay: linear-gradient(180deg, rgba(20, 16, 12, .25), rgba(20, 16, 12, .55));
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --font-body: "Inter", system-ui, sans-serif;
  --script-scale: 1;
  --radius: 4px;
  --sello: #8c2f2f;
  --sello-ink: #f4e3c8;
  --env: #e9dfcf;
  --env-dark: #d9ccb6;
  --patron: none;
}

[data-tema="hacienda"] {
  --bg: #f6efe4;
  --bg-alt: #efe2cf;
  --card: #fffaf2;
  --ink: #3a2418;
  --muted: #84604a;
  --accent: #b5532e;
  --accent-ink: #fff;
  --accent-2: #1f4e79;
  --line: rgba(181, 83, 46, .35);
  --hero-ink: #3a2418;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Italianno", cursive;
  --script-scale: 1.25;
  --radius: 2px;
  --sello: #1f4e79;
  --sello-ink: #f6efe4;
  --env: #e8d5bb;
  --env-dark: #d7bf9f;
  /* Talavera: azulejo azul cobalto */
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231f4e79' stroke-width='1.4' opacity='.55'%3E%3Ccircle cx='32' cy='32' r='9'/%3E%3Cpath d='M32 14c4 6 4 12 0 18-4-6-4-12 0-18zM32 50c4-6 4-12 0-18-4 6-4 12 0 18zM14 32c6-4 12-4 18 0-6 4-12 4-18 0zM50 32c-6-4-12-4-18 0 6 4 12 4 18 0z'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='3' fill='%23b5532e' opacity='.6'/%3E%3C/svg%3E");
}

[data-tema="celestial"] {
  --bg: #0f1633;
  --bg-alt: #151e42;
  --card: rgba(255, 255, 255, .05);
  --ink: #f2ecdf;
  --muted: #b3b6cc;
  --accent: #d4b46a;
  --accent-ink: #0f1633;
  --accent-2: #8f9ad6;
  --line: rgba(212, 180, 106, .35);
  --hero-ink: #f2ecdf;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --script-scale: 1.05;
  --radius: 6px;
  --sello: #d4b46a;
  --sello-ink: #0f1633;
  --env: #1c2654;
  --env-dark: #141c40;
  --patron: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
            radial-gradient(1px 1px at 70% 80%, #fff 50%, transparent 51%),
            radial-gradient(1.5px 1.5px at 85% 20%, #f6e7b8 50%, transparent 51%),
            radial-gradient(1px 1px at 40% 60%, #fff 50%, transparent 51%),
            radial-gradient(1px 1px at 10% 90%, #f6e7b8 50%, transparent 51%);
}

[data-tema="jardin"] {
  --bg: #f3f4ee;
  --bg-alt: #e6ebe0;
  --card: #fcfdf9;
  --ink: #263228;
  --muted: #637062;
  --accent: #5e7a5c;
  --accent-ink: #fff;
  --accent-2: #c9a77c;
  --line: rgba(94, 122, 92, .35);
  --hero-ink: #263228;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", cursive;
  --script-scale: .95;
  --radius: 14px;
  --sello: #5e7a5c;
  --sello-ink: #f3f4ee;
  --env: #e3e8da;
  --env-dark: #d1d9c4;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%235e7a5c' opacity='.13'%3E%3Cpath d='M20 100C30 70 55 55 80 50 70 75 50 92 20 100z'/%3E%3Cpath d='M70 20c10 10 12 24 4 36-10-10-12-24-4-36z'/%3E%3C/g%3E%3C/svg%3E");
}

[data-tema="rosa"] {
  --bg: #fbf3f1;
  --bg-alt: #f5e4e0;
  --card: #fffafa;
  --ink: #3d2a2c;
  --muted: #8b6c70;
  --accent: #b76e79;
  --accent-ink: #fff;
  --accent-2: #e2b6a6;
  --line: rgba(183, 110, 121, .35);
  --hero-ink: #3d2a2c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --script-scale: 1.05;
  --radius: 18px;
  --sello: #b76e79;
  --sello-ink: #fff3ef;
  --env: #f3dcd6;
  --env-dark: #e8c7bf;
  --patron: none;
}

[data-tema="fiesta"] {
  --bg: #fff8ec;
  --bg-alt: #ffeccc;
  --card: #ffffff;
  --ink: #23213a;
  --muted: #6c6885;
  --accent: #ff5a5f;
  --accent-ink: #fff;
  --accent-2: #2ec4b6;
  --line: rgba(35, 33, 58, .15);
  --hero-ink: #23213a;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;
  --script-scale: .8;
  --radius: 22px;
  --sello: #ff5a5f;
  --sello-ink: #fff;
  --env: #ffd98e;
  --env-dark: #ffc65c;
  --patron: radial-gradient(circle at 10% 20%, #ff5a5f 0 4px, transparent 5px),
            radial-gradient(circle at 80% 10%, #2ec4b6 0 3px, transparent 4px),
            radial-gradient(circle at 60% 70%, #ffbe0b 0 4px, transparent 5px),
            radial-gradient(circle at 25% 80%, #8338ec 0 3px, transparent 4px),
            radial-gradient(circle at 90% 60%, #ff5a5f 0 3px, transparent 4px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-cerrado { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; text-align: center; }
.wrap--angosto { width: min(640px, 100% - 40px); }
.wrap--ancho { width: min(1240px, 100% - 32px); }

.eyebrow {
  margin: 0 0 .4rem;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.sec { padding: clamp(64px, 11vw, 120px) 0; position: relative; }
.sec:nth-of-type(even) { background: var(--bg-alt); }
.sec__titulo {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1;
}
[data-tema="celestial"] .sec__titulo { letter-spacing: .06em; font-size: clamp(1.7rem, 5vw, 2.6rem); }
[data-tema="fiesta"] .sec__titulo { font-weight: 600; }
.sec__icono { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 1rem; display: block; }
.nota { color: var(--muted); margin: 0 auto 1.4rem; max-width: 46ch; }
.aviso {
  display: inline-block; margin: 1.6rem 0 0; padding: .7rem 1.2rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .92rem;
}

.divisor {
  width: 140px; height: 14px; margin: 1.2rem auto;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 56px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 56px 1px no-repeat;
  position: relative;
}
.divisor::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border: 1px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 48px -32px rgba(40, 30, 20, .35);
}
[data-tema="celestial"] .card { backdrop-filter: blur(6px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  border-radius: 999px; border: 1px solid var(--accent);
  font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--solido { background: var(--accent); color: var(--accent-ink); }
.btn--solido:hover { box-shadow: 0 10px 24px -10px var(--accent); transform: translateY(-1px); }
.btn--linea { background: transparent; color: var(--accent); }
.btn--linea:hover { background: var(--accent); color: var(--accent-ink); }
.btn--grande { width: 100%; min-height: 54px; font-size: 1rem; }
.btn:focus-visible, .opcion input:focus-visible + span, .stepper__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sobre de apertura ---------- */
.sobre {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .9s ease .6s, visibility 0s linear 1.5s;
}
.sobre__fondo { position: absolute; inset: 0; background-image: var(--patron); background-size: 64px 64px; opacity: .5; }
[data-tema="celestial"] .sobre__fondo, [data-tema="celestial"] .hero::before { background-size: 220px 220px; opacity: 1; }
[data-tema="fiesta"] .sobre__fondo, [data-tema="fiesta"] .hero::before { background-size: 180px 180px; opacity: .6; }
.sobre__contenido { position: relative; text-align: center; padding: 24px; }
.sobre__para { margin: 0; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.sobre__nombre {
  margin: .2rem 0 1.6rem; font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.15;
}
.sobre__envelope { background: none; border: 0; padding: 0; cursor: pointer; display: block; margin: 0 auto; }
.sobre__hint { margin-top: 1.6rem; color: var(--muted); font-size: .85rem; animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .45; } }

.env {
  --w: min(78vw, 340px);
  position: relative; display: block; width: var(--w); height: calc(var(--w) * .66);
  perspective: 900px;
}
.env__cuerpo {
  position: absolute; inset: 0; border-radius: 6px;
  background:
    linear-gradient(to top right, var(--env-dark) 49.6%, transparent 50%) left bottom / 50.5% 100% no-repeat,
    linear-gradient(to top left, var(--env-dark) 49.6%, transparent 50%) right bottom / 50.5% 100% no-repeat,
    var(--env);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
  z-index: 2;
}
.env__solapa {
  position: absolute; left: 0; right: 0; top: 0; height: 58%;
  background: var(--env-dark);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .8s cubic-bezier(.6, 0, .3, 1);
  z-index: 3; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .12));
}
.env__carta {
  position: absolute; left: 7%; right: 7%; top: 8%; bottom: 8%;
  background: var(--card); border-radius: 4px; z-index: 1;
  display: grid; place-items: center;
  transition: transform .9s cubic-bezier(.3, .8, .2, 1) .45s;
  box-shadow: 0 0 0 1px var(--line);
}
.env__carta-txt { font-family: var(--font-script); font-size: calc(1.6rem * var(--script-scale)); color: var(--accent); padding: 0 8px; }
.env__sello {
  position: absolute; left: 50%; top: 58%; z-index: 4;
  width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sello) 70%, #fff), var(--sello) 60%);
  color: var(--sello-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .08em;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .4), inset 0 0 0 4px color-mix(in srgb, var(--sello) 80%, #000);
  transition: transform .4s ease, opacity .4s ease;
}
.sobre__envelope:hover .env__sello { transform: scale(1.06); }

.sobre.is-abriendo .env__sello { transform: scale(.4); opacity: 0; }
.sobre.is-abriendo .env__solapa { transform: rotateX(180deg); z-index: 0; }
.sobre.is-abriendo .env__carta { transform: translateY(-55%); z-index: 2; }
.sobre.is-abriendo .sobre__hint, .sobre.is-abriendo .sobre__para, .sobre.is-abriendo .sobre__nombre { opacity: 0; transition: opacity .4s; }
.sobre.is-abierto { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 80px 24px; overflow: hidden; color: var(--hero-ink);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--patron); background-size: 64px 64px; opacity: .22; }
.hero--foto { color: #fff; }
.hero--foto::before { display: none; }
.hero__fotos { position: absolute; inset: 0; }
.hero__foto {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s ease;
}
.hero__foto.is-on { opacity: 1; transform: scale(1); }
.hero--foto .hero__fotos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, rgba(0,0,0,.6)); }
.hero__marco {
  position: absolute; inset: clamp(14px, 3vw, 28px);
  border: 1px solid var(--line); pointer-events: none;
}
.hero__marco::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line);
}
.hero--foto .hero__marco, .hero--foto .hero__marco::before { border-color: rgba(255, 255, 255, .45); }
[data-tema="jardin"] .hero__marco, [data-tema="rosa"] .hero__marco, [data-tema="fiesta"] .hero__marco { border-radius: 28px; }
[data-tema="jardin"] .hero__marco::before, [data-tema="rosa"] .hero__marco::before, [data-tema="fiesta"] .hero__marco::before { border-radius: 22px; }
[data-tema="hacienda"] .hero__marco { border: 4px double var(--accent); opacity: .55; }
[data-tema="hacienda"] .hero__marco::before { inset: 8px; border-color: var(--accent-2); }
.hero__txt { position: relative; z-index: 1; max-width: 900px; }
.hero--foto .eyebrow { color: #fff; opacity: .9; }
.hero__titulo {
  margin: .2em 0 0; font-family: var(--font-script); font-weight: 400;
  font-size: calc(clamp(3.4rem, 15vw, 8rem) * var(--script-scale)); line-height: 1.05;
  color: var(--accent);
}
.hero--foto .hero__titulo { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
[data-tema="celestial"] .hero__titulo { background: linear-gradient(180deg, #f6e7b8, #d4b46a 60%, #a8853f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--foto .divisor { filter: brightness(0) invert(1); }
.hero__fecha { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 3.6vw, 1.7rem); letter-spacing: .3em; }
.hero__lugar { margin: .3rem 0 0; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid currentColor; border-radius: 14px; opacity: .6; z-index: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: bajar 1.8s ease-in-out infinite; }
@keyframes bajar { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Mensaje ---------- */
.saludo { font-family: var(--font-script); font-size: calc(2rem * var(--script-scale)); color: var(--accent); margin: 0 0 .6rem; }
.frase { font-family: var(--font-display); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.55; margin: 0 0 1.4rem; }
[data-tema="celestial"] .frase { font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; }
[data-tema="fiesta"] .frase { font-family: var(--font-body); font-size: 1.15rem; }
.cita { font-style: italic; color: var(--muted); margin: 0 0 1.4rem; font-family: var(--font-display); font-size: 1.1rem; }
.fecha-larga { margin: 0; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ---------- Cuenta regresiva ---------- */
.cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 20px); max-width: 620px; margin: 0 auto; }
.cuenta__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(14px, 3vw, 24px) 4px;
}
.cuenta__num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cuenta__lbl { display: block; margin-top: .5rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cuenta__fin { font-family: var(--font-script); font-size: calc(2.6rem * var(--script-scale)); color: var(--accent); margin: 0; }

/* ---------- Padres ---------- */
.padres { display: grid; gap: 28px; }
.padres--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .padres--2 { grid-template-columns: 1fr 1fr; } }
.padres__foto { margin: 0 auto 2rem; max-width: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.padres__de { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 .6rem; }
.padres__nombre { font-family: var(--font-display); font-size: clamp(1.2rem, 3.6vw, 1.5rem); margin: .1rem 0; }

/* ---------- Eventos ---------- */
.eventos { display: grid; gap: 22px; max-width: 460px; margin: 0 auto; }
@media (min-width: 820px) { .eventos--2 { grid-template-columns: 1fr 1fr; max-width: 920px; } }
.evento { display: flex; flex-direction: column; align-items: center; }
.evento__icono { width: 48px; height: 48px; color: var(--accent); margin-bottom: .8rem; }
.evento__titulo { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
[data-tema="celestial"] .evento__titulo { font-size: 1.3rem; letter-spacing: .08em; }
.evento__hora { margin: .3rem 0 .8rem; font-size: 1.05rem; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.evento__lugar { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.evento__dir { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.evento__fecha { margin: .6rem 0 1.4rem; color: var(--muted); font-size: .9rem; }
.evento__acciones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: auto; }

/* ---------- Itinerario ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 460px; text-align: left; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 80px 24px 1fr; align-items: center; gap: 0 8px; padding: 14px 0; }
.timeline__hora { text-align: right; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline__punto { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); justify-self: center; position: relative; z-index: 1; }
.sec:nth-of-type(even) .timeline__punto { background: var(--bg-alt); }
.timeline__act { font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Galería ---------- */
/* Todas las fotos del mismo tamaño (4:5, recortadas al centro); en el visor se ven completas. Centradas si son pocas. */
.galeria { --g-gap: 10px; --g-cols: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g-gap); }
@media (min-width: 900px) { .galeria { --g-gap: 14px; --g-cols: 3; } }
.galeria__item {
  display: block; flex: 0 0 calc((100% - (var(--g-cols) - 1) * var(--g-gap)) / var(--g-cols));
  aspect-ratio: 4 / 5; margin: 0; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .6s ease; }
.galeria__item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 8, 6, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: min(100%, 1100px); object-fit: contain; border-radius: 4px; }
.lightbox__cerrar, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; }
.lightbox__cerrar { top: 16px; right: 16px; }
.lightbox__cerrar svg { width: 22px; height: 22px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Regalos ---------- */
.regalos { display: grid; gap: 22px; max-width: 460px; margin: 0 auto; }
@media (min-width: 820px) { .regalos:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; max-width: 920px; } }
.regalo h3 { margin: .4rem 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.regalo__icono { width: 40px; height: 40px; color: var(--accent); margin: 0 auto; display: block; }
.regalo__dato { color: var(--muted); margin: 0 0 1.2rem; }
.clabe { border-top: 1px dashed var(--line); padding-top: 1.2rem; }
.clabe__lbl { margin: 0 0 .5rem; font-size: .88rem; color: var(--muted); }
.clabe__banco { margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clabe__num { margin: .3rem 0 1rem; font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; word-break: break-all; }

/* ---------- RSVP ---------- */
.rsvp { text-align: center; }
.rsvp__pase { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 1.6rem; }
.rsvp__etq { margin: 0 0 .3rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.rsvp__para { margin: 0; font-family: var(--font-script); font-size: calc(2.2rem * var(--script-scale)); color: var(--accent); line-height: 1.2; }
.rsvp__lugares {
  display: inline-flex; align-items: center; margin: .9rem 0 0; padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--accent);
  background: var(--line); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.rsvp__form { display: grid; gap: 22px; text-align: left; }
.opciones { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span {
  display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: center;
  font-weight: 600; font-size: .92rem; transition: all .2s ease; background: transparent;
}
.opcion span svg { width: 1.1em; height: 1.1em; }
.opcion input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.campo { display: grid; gap: 8px; }
.campo__lbl { font-size: .95rem; font-weight: 600; color: var(--ink); }
.campo__lbl em { font-style: normal; font-weight: 400; color: var(--muted); }
.rsvp__form > .campo__lbl { margin-bottom: -12px; }
.campo__ayuda { font-size: .8rem; color: var(--muted); }
.campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--ink); background-color: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-height: 50px;
  appearance: none; -webkit-appearance: none;
}
.campo select { background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
[data-tema="celestial"] .campo select, [data-tema="celestial"] .campo textarea { background-color: rgba(255, 255, 255, .06); }
.campo select:focus, .campo textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; overflow: hidden; }
.stepper__btn { width: 64px; height: 52px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--accent); transition: background .2s ease; }
.stepper__btn:not(:disabled):hover { background: var(--line); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__val { min-width: 54px; text-align: center; font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.rsvp__si { display: grid; gap: 22px; }
.rsvp__si[hidden] { display: none; }
.rsvp__si:not(:has(.campo)) { display: none; } /* sin preguntas extra (pase de 1 persona, un solo evento) */
.rsvp__error { margin: 0; color: #b3261e; font-size: .9rem; text-align: center; }
.rsvp__limite { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.rsvp__hecho { padding: 8px 0; }
.rsvp__check { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.rsvp__check.is-no { background: var(--muted); }
.rsvp__check svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.rsvp__resumen { font-size: 1.1rem; margin: 0 0 1.2rem; }
.btn.is-cargando { pointer-events: none; opacity: .7; }

/* ---------- Cierre ---------- */
.cierre { padding: clamp(64px, 11vw, 110px) 0 32px; text-align: center; position: relative; }
.hashtag { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--accent); margin: 0 0 2.4rem; word-break: break-word; }
.cierre__titulo { font-family: var(--font-script); font-size: calc(clamp(2.6rem, 9vw, 4.4rem) * var(--script-scale)); color: var(--accent); margin: 0; line-height: 1.1; }
.cierre__fecha { letter-spacing: .3em; font-family: var(--font-display); margin: .4rem 0 0; }
.marca { display: inline-block; margin-top: 56px; font-size: .75rem; color: var(--muted); text-decoration: none; letter-spacing: .04em; opacity: .8; }
.marca:hover { opacity: 1; }

/* ---------- Flotantes ---------- */
.flotante-rsvp {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.3, .8, .3, 1);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); white-space: nowrap;
}

.flotante-rsvp.is-on { transform: translate(-50%, 0); }
.musica {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 41;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--accent); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4);
}

.musica svg { width: 20px; height: 20px; }
.musica__ondas { position: absolute; bottom: 9px; display: flex; gap: 2px; opacity: 0; }
.musica__ondas i { width: 2px; height: 6px; background: currentColor; animation: onda 1s ease-in-out infinite; }
.musica__ondas i:nth-child(2) { animation-delay: .2s; }
.musica__ondas i:nth-child(3) { animation-delay: .4s; }
.musica[aria-pressed="true"] svg { transform: translateY(-4px); }
.musica[aria-pressed="true"] .musica__ondas { opacity: 1; }
/* Hay canción y aún no suena: el botón late para invitar a tocarlo */
.musica.is-pendiente { animation: musica-late 1.8s ease-in-out infinite; }
.musica__aviso {
  position: fixed; right: 76px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 41;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  font: 600 .84rem/1 var(--font-body); animation: aviso-entra .5s cubic-bezier(.2, .8, .2, 1) both;
}
.musica__aviso[hidden] { display: none; }
.musica__aviso svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes aviso-entra { from { opacity: 0; transform: translateX(10px); } }
/* En celular, con el botón de confirmar abajo al centro, el aviso sube un poco */
@media (max-width: 600px) { .musica__aviso { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; } }
@keyframes musica-late { 0%, 100% { box-shadow: 0 0 0 0 var(--accent); } 60% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .musica.is-pendiente { animation: none; } }
@keyframes onda { 50% { transform: scaleY(.3); } }

.toast {
  position: fixed; left: 50%; top: 20px; z-index: 120; transform: translate(-50%, -150%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .9rem;
  transition: transform .4s ease, opacity .4s ease; pointer-events: none; max-width: calc(100% - 32px); opacity: 0;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Cápsula flotante de la demo */
.demo-barra {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 101;
  display: flex; align-items: center; gap: 4px; max-width: calc(100% - 24px); padding: 5px;
  background: rgba(18, 16, 22, .72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  color: #fff; font: 500 .8rem/1 "Inter", system-ui, sans-serif; white-space: nowrap;
  animation: demo-barra-entra .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes demo-barra-entra { from { opacity: 0; transform: translate(-50%, -12px); } }
.demo-barra__volver {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 8px; border-radius: 999px;
  color: #fff; text-decoration: none; transition: background .2s ease;
}
.demo-barra__volver:hover, .demo-barra__volver:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.demo-barra__volver svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-barra__div { width: 1px; height: 18px; background: rgba(255, 255, 255, .14); }
.demo-barra__nombre { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.demo-barra__nombre em { font-style: normal; font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #ff5070; }
.demo-barra__punto { width: 6px; height: 6px; border-radius: 50%; background: #ff5070; box-shadow: 0 0 0 3px rgba(255, 80, 112, .25); animation: demo-barra-pulso 2s ease-in-out infinite; }
@keyframes demo-barra-pulso { 50% { box-shadow: 0 0 0 6px rgba(255, 80, 112, 0); } }
.es-demo .hero { padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { .demo-barra, .demo-barra__punto { animation: none; } }

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .sec { padding: 130px 0; }
}

/* =========================================================
   Plantillas nuevas
   ========================================================= */
[data-tema="noir"] {
  --bg: #0e0d0c; --bg-alt: #171513; --card: #1c1a17; --ink: #f3ede2; --muted: #a39a8b;
  --accent: #c9a96a; --accent-ink: #0e0d0c; --accent-2: #f3ede2; --line: rgba(201, 169, 106, .3);
  --hero-ink: #f3ede2; --font-display: "Bodoni Moda", Georgia, serif; --font-script: "Bodoni Moda", Georgia, serif;
  --script-scale: .78; --radius: 0px; --sello: #c9a96a; --sello-ink: #0e0d0c; --env: #232019; --env-dark: #1a1814; --patron: none;
}
[data-tema="noir"] .hero__titulo, [data-tema="noir"] .saludo, [data-tema="noir"] .rsvp__para, [data-tema="noir"] .cierre__titulo, [data-tema="noir"] .env__carta-txt { font-style: italic; letter-spacing: -.01em; }

[data-tema="mar"] {
  --bg: #f6f1e7; --bg-alt: #e9f0f0; --card: #fffdf8; --ink: #1d3340; --muted: #5f7480;
  --accent: #2e6f8e; --accent-ink: #fff; --accent-2: #d9c29a; --line: rgba(46, 111, 142, .3);
  --hero-ink: #1d3340; --font-display: "Cormorant Garamond", Georgia, serif; --font-script: "Allura", cursive;
  --script-scale: 1.15; --radius: 12px; --sello: #2e6f8e; --sello-ink: #f6f1e7; --env: #e8ddc8; --env-dark: #d9cbb0;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cpath d='M0 20c20-12 40-12 60 0s40 12 60 0 30-10 40-6' fill='none' stroke='%232e6f8e' stroke-width='1.2' opacity='.18'/%3E%3C/svg%3E");
}

[data-tema="mariposa"] {
  --bg: #f7f3fb; --bg-alt: #ede5f6; --card: #fffcff; --ink: #352a45; --muted: #7c6f8f;
  --accent: #8a64b8; --accent-ink: #fff; --accent-2: #e7b9d8; --line: rgba(138, 100, 184, .3);
  --hero-ink: #352a45; --font-display: "Cormorant Garamond", Georgia, serif; --font-script: "Alex Brush", cursive;
  --script-scale: 1.1; --radius: 20px; --sello: #8a64b8; --sello-ink: #fff; --env: #e8dcf3; --env-dark: #d8c7ea; --patron: none;
}

[data-tema="brindis"] {
  --bg: #3a1220; --bg-alt: #4a1828; --card: rgba(255, 255, 255, .06); --ink: #fbefe3; --muted: #d7b9b4;
  --accent: #e8c27a; --accent-ink: #3a1220; --accent-2: #f5dcb0; --line: rgba(232, 194, 122, .32);
  --hero-ink: #fbefe3; --font-display: "DM Serif Display", Georgia, serif; --font-script: "DM Serif Display", Georgia, serif;
  --script-scale: .82; --radius: 10px; --sello: #e8c27a; --sello-ink: #3a1220; --env: #561c2f; --env-dark: #451625; --patron: none;
}
[data-tema="brindis"] .hero__titulo, [data-tema="brindis"] .cierre__titulo, [data-tema="brindis"] .saludo, [data-tema="brindis"] .rsvp__para { font-style: italic; }

[data-tema="globos"] {
  --bg: #fff9f3; --bg-alt: #fdeee4; --card: #fff; --ink: #3b3355; --muted: #7d7596;
  --accent: #f27c8a; --accent-ink: #fff; --accent-2: #7ec8e3; --line: rgba(59, 51, 85, .14);
  --hero-ink: #3b3355; --font-display: "Baloo 2", system-ui, sans-serif; --font-script: "Baloo 2", system-ui, sans-serif;
  --script-scale: .85; --radius: 24px; --sello: #f27c8a; --sello-ink: #fff; --env: #ffd9c7; --env-dark: #ffc4ab; --patron: none;
}
[data-tema="globos"] .hero__titulo, [data-tema="globos"] .cierre__titulo { font-weight: 800; letter-spacing: -.02em; }
[data-tema="globos"] .sec__titulo, [data-tema="globos"] .evento__titulo { font-weight: 700; }

[data-tema="posada"] {
  --bg: #fdf6ec; --bg-alt: #f6e8d6; --card: #fffbf5; --ink: #2d1a14; --muted: #7a5b4d;
  --accent: #c0262d; --accent-ink: #fff; --accent-2: #1f7a4d; --line: rgba(192, 38, 45, .28);
  --hero-ink: #2d1a14; --font-display: "Abril Fatface", Georgia, serif; --font-script: "Abril Fatface", Georgia, serif;
  --script-scale: .78; --radius: 14px; --sello: #1f7a4d; --sello-ink: #fdf6ec; --env: #f0d9bd; --env-dark: #e5c69f;
  --patron: radial-gradient(circle at 20% 30%, rgba(192, 38, 45, .16) 0 5px, transparent 6px), radial-gradient(circle at 70% 70%, rgba(31, 122, 77, .16) 0 4px, transparent 5px);
}
[data-tema="posada"] .sec__titulo, [data-tema="posada"] .evento__titulo { font-weight: 400; }

[data-tema="cielo"] {
  --bg: #f3f8fc; --bg-alt: #e4f0f9; --card: #fff; --ink: #2b3d52; --muted: #6b8098;
  --accent: #5b9bd5; --accent-ink: #fff; --accent-2: #f2d6a2; --line: rgba(91, 155, 213, .3);
  --hero-ink: #2b3d52; --font-display: "Quicksand", system-ui, sans-serif; --font-script: "Sacramento", cursive;
  --script-scale: 1.15; --radius: 22px; --sello: #5b9bd5; --sello-ink: #fff; --env: #dcebf7; --env-dark: #c9def0; --patron: none;
}
[data-tema="cielo"] .sec__titulo { font-weight: 600; }

[data-tema="ejecutivo"] {
  --bg: #f5f6f8; --bg-alt: #ffffff; --card: #ffffff; --ink: #121826; --muted: #5a6478;
  --accent: #3b5bdb; --accent-ink: #fff; --accent-2: #12b886; --line: rgba(18, 24, 38, .12);
  --hero-ink: #121826; --font-display: "Space Grotesk", system-ui, sans-serif; --font-script: "Space Grotesk", system-ui, sans-serif;
  --script-scale: .7; --radius: 12px; --sello: #121826; --sello-ink: #fff; --env: #e3e6ec; --env-dark: #d2d7e0; --patron: none;
}
[data-tema="ejecutivo"] .hero__titulo, [data-tema="ejecutivo"] .sec__titulo, [data-tema="ejecutivo"] .cierre__titulo { font-weight: 700; letter-spacing: -.03em; }
[data-tema="ejecutivo"] .frase, [data-tema="ejecutivo"] .saludo { font-family: var(--font-display); }

/* Fondos de cuerpo en temas oscuros: textos de formulario */
[data-tema="noir"] .campo select, [data-tema="noir"] .campo textarea,
[data-tema="brindis"] .campo select, [data-tema="brindis"] .campo textarea { background-color: rgba(255, 255, 255, .06); }

/* =========================================================
   Variantes de portada
   ========================================================= */
.hero__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; }
.hero__deco i { position: absolute; display: block; }

/* --- Arco --- */
.hero--arco .hero__marco { display: none; }
.hero__arco {
  width: min(64vw, 300px); aspect-ratio: 3 / 4; margin: 0 auto 1.6rem;
  border-radius: 999px 999px 18px 18px; position: relative;
  background: radial-gradient(120% 80% at 50% 100%, var(--accent-2), transparent 70%), var(--bg-alt);
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 10px var(--bg), 0 0 0 11px var(--line), 0 40px 70px -40px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
}
.hero__arco-ini { font-family: var(--font-script); font-size: calc(4rem * var(--script-scale)); color: var(--accent); }
[data-tema="cielo"] .hero__arco { background: radial-gradient(60% 30% at 30% 35%, #fff 60%, transparent 62%), radial-gradient(50% 24% at 70% 55%, #fff 60%, transparent 62%), linear-gradient(180deg, #bcdcf4, #e9f4fc); }
[data-tema="mar"] .hero__arco { background: linear-gradient(180deg, #f7e7c4 0 42%, #8ec5d6 42% 62%, #2e6f8e 62%); }
[data-tema="mariposa"] .hero__arco { background: radial-gradient(80% 60% at 50% 100%, #e7b9d8, transparent 70%), linear-gradient(180deg, #f3ecfb, #e3d4f3); }
@media (min-width: 900px) {
  /* Dos columnas (arco | texto) solo cuando hay arco; con logo queda centrado en una columna */
  .hero--arco .hero__txt:has(> .hero__arco) { display: grid; grid-template-columns: 340px 1fr; column-gap: 72px; align-items: center; text-align: left; max-width: 1040px; }
  .hero--arco .hero__arco { grid-row: 1 / span 6; width: 340px; margin: 0; }
  /* Todo el texto en la segunda columna, aunque el nombre sea largo */
  .hero--arco .hero__txt:has(> .hero__arco) > :not(.hero__arco) { grid-column: 2; min-width: 0; }
  .hero--arco .hero__txt:has(> .hero__arco) .hero__titulo { font-size: calc(clamp(3rem, 6.2vw, 6.4rem) * var(--script-scale)); }
  .hero--arco .hero__txt:has(> .hero__arco) .hero__titulo--largo { font-size: calc(clamp(2.6rem, 4.8vw, 5rem) * var(--script-scale)); }
  .hero--arco .hero__txt:has(> .hero__arco) .divisor { margin-left: 0; }
}

/* --- Moderno (editorial de revista) --- */
.hero--moderno .hero__marco { inset: auto clamp(20px, 5vw, 64px) clamp(70px, 9vw, 96px); height: 1px; border: 0; background: var(--line); }
.hero--moderno .hero__marco::before { display: none; }
.hero--moderno .hero__txt { text-align: left; width: min(1080px, 100%); }
.hero--moderno .hero__titulo { font-family: var(--font-display); font-size: clamp(3.6rem, 16vw, 10rem); line-height: .92; letter-spacing: -.03em; color: var(--ink); }
.hero--moderno .divisor { margin-left: 0; width: 64px; background: var(--accent); height: 3px; }
.hero--moderno .divisor::after { display: none; }
.hero--moderno .hero__fecha { font-family: var(--font-body); font-weight: 600; letter-spacing: .2em; }
.hero--moderno.hero--foto .hero__titulo { color: #fff; }
[data-tema="noir"] .hero--moderno .hero__titulo { color: var(--accent-2); }
[data-tema="brindis"] .hero--moderno .hero__titulo { color: var(--accent); }
[data-tema="ejecutivo"] .hero--moderno .hero__titulo { color: var(--ink); }
[data-tema="ejecutivo"] .hero--moderno { background: linear-gradient(135deg, #fff 0 55%, #e9edfb 55%); }

/* --- Guirnalda (papel picado, globos, confeti) --- */
.hero--guirnalda .hero__marco { display: none; }
.hero--guirnalda .hero__deco { display: block; }
.hero--guirnalda .hero__titulo { font-family: var(--font-script); }

/* Posada: papel picado + esferas */
[data-tema="posada"] .hero__deco::before {
  content: ""; position: absolute; left: -10px; right: -10px; top: 0; height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='110' viewBox='0 0 120 110'%3E%3Cpath d='M0 4 Q60 22 120 4' fill='none' stroke='%232d1a14' stroke-width='1.2'/%3E%3Cg%3E%3Cpath d='M6 9h48v70l-8-6-8 6-8-6-8 6-8-6-8 6z' fill='%23c0262d'/%3E%3Cpath d='M66 9h48v70l-8-6-8 6-8-6-8 6-8-6-8 6z' fill='%231f7a4d'/%3E%3C/g%3E%3Cg fill='%23fdf6ec'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cpath d='M18 50h24l-12 12z'/%3E%3Ccircle cx='90' cy='30' r='6'/%3E%3Cpath d='M78 50h24l-12 12z'/%3E%3Cpath d='M20 22l4 3M40 22l-4 3M80 22l4 3M100 22l-4 3' stroke='%23fdf6ec' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 120px 110px;
}
[data-tema="posada"] .hero__deco::after {
  content: ""; position: absolute; left: 0; right: 0; top: 96px; height: 70px; opacity: .9;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='110' viewBox='0 0 120 110'%3E%3Cg%3E%3Cpath d='M6 9h48v70l-8-6-8 6-8-6-8 6-8-6-8 6z' fill='%23e2a400'/%3E%3Cpath d='M66 9h48v70l-8-6-8 6-8-6-8 6-8-6-8 6z' fill='%23d6336c'/%3E%3C/g%3E%3Cg fill='%23fdf6ec'%3E%3Cpath d='M30 20l5 10 10 1-8 7 3 10-10-6-10 6 3-10-8-7 10-1z'/%3E%3Cpath d='M90 20l5 10 10 1-8 7 3 10-10-6-10 6 3-10-8-7 10-1z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 60px -10px / 120px 110px;
  transform: scale(.75); transform-origin: top center;
}
[data-tema="posada"] .hero__deco i { top: auto; width: 36px; height: 36px; border-radius: 50%; bottom: 14%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--accent); }
[data-tema="posada"] .hero__deco i:nth-child(even) { background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--accent-2); }
[data-tema="posada"] .hero__deco i:nth-child(1) { left: 8%; } [data-tema="posada"] .hero__deco i:nth-child(2) { left: 16%; bottom: 9%; width: 26px; height: 26px; }
[data-tema="posada"] .hero__deco i:nth-child(3) { right: 9%; } [data-tema="posada"] .hero__deco i:nth-child(4) { right: 17%; bottom: 8%; width: 24px; height: 24px; }
[data-tema="posada"] .hero__deco i:nth-child(n+5) { display: none; }
[data-tema="posada"] .hero { padding-top: 190px; }
[data-tema="posada"] .hero__titulo { color: var(--accent); }

/* Globos flotando */
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
[data-tema="globos"] .hero__deco i, [data-tema="fiesta"] .hero__deco i {
  width: 70px; height: 84px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 28%), var(--c, #f27c8a);
  animation: flotar 6s ease-in-out infinite;
}
[data-tema="globos"] .hero__deco i::after, [data-tema="fiesta"] .hero__deco i::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 90px; background: rgba(59, 51, 85, .25);
}
.hero__deco i:nth-child(1) { --c: #f27c8a; left: 5%; top: 12%; }
.hero__deco i:nth-child(2) { --c: #7ec8e3; left: 15%; top: 32%; transform: scale(.75); animation-delay: -2s; }
.hero__deco i:nth-child(3) { --c: #ffd166; right: 6%; top: 10%; animation-delay: -1s; }
.hero__deco i:nth-child(4) { --c: #b8a9f3; right: 16%; top: 30%; animation-delay: -3s; }
.hero__deco i:nth-child(5) { --c: #95d5b2; left: 8%; bottom: 14%; animation-delay: -4s; }
.hero__deco i:nth-child(6) { --c: #ffb4a2; right: 9%; bottom: 16%; animation-delay: -5s; }
.hero__deco i:nth-child(n+7) { display: none; }
@media (max-width: 640px) {
  [data-tema="globos"] .hero__deco i, [data-tema="fiesta"] .hero__deco i { width: 46px; height: 56px; }
  .hero--guirnalda .hero__deco i:nth-child(2) { left: -2%; top: 22%; bottom: auto; width: 36px !important; height: 44px !important; }
  .hero--guirnalda .hero__deco i:nth-child(4) { right: -2%; top: 24%; bottom: auto; width: 36px !important; height: 44px !important; }
}
[data-tema="fiesta"] .hero__deco i { --c: #ff5a5f; }
[data-tema="fiesta"] .hero__deco i:nth-child(2) { --c: #2ec4b6; } [data-tema="fiesta"] .hero__deco i:nth-child(3) { --c: #ffbe0b; }
[data-tema="fiesta"] .hero__deco i:nth-child(4) { --c: #8338ec; } [data-tema="fiesta"] .hero__deco i:nth-child(5) { --c: #3a86ff; }

/* Burbujas de champaña (brindis) y mariposas */
@keyframes subir { from { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } to { transform: translateY(-110vh); opacity: 0; } }
[data-tema="brindis"] .hero__deco, [data-tema="mariposa"] .hero__deco, [data-tema="celestial"] .hero__deco { display: block; }
[data-tema="brindis"] .hero__deco i { bottom: -20px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(232, 194, 122, .7); animation: subir 9s linear infinite; }
[data-tema="brindis"] .hero__deco i:nth-child(1) { left: 10%; } [data-tema="brindis"] .hero__deco i:nth-child(2) { left: 22%; width: 6px; height: 6px; animation-delay: -3s; }
[data-tema="brindis"] .hero__deco i:nth-child(3) { left: 38%; animation-delay: -6s; } [data-tema="brindis"] .hero__deco i:nth-child(4) { left: 55%; width: 14px; height: 14px; animation-delay: -1s; }
[data-tema="brindis"] .hero__deco i:nth-child(5) { left: 70%; animation-delay: -4s; } [data-tema="brindis"] .hero__deco i:nth-child(6) { left: 82%; width: 7px; height: 7px; animation-delay: -7s; }
[data-tema="brindis"] .hero__deco i:nth-child(7) { left: 92%; animation-delay: -2s; } [data-tema="brindis"] .hero__deco i:nth-child(8) { left: 46%; width: 5px; height: 5px; animation-delay: -5s; }

@keyframes revolotear { 0% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(30px, -26px) rotate(6deg); } 50% { transform: translate(60px, 0) rotate(-4deg); } 75% { transform: translate(28px, 22px) rotate(8deg); } 100% { transform: translate(0, 0) rotate(-8deg); } }
@keyframes aletear { 50% { transform: scaleX(.35); } }
[data-tema="mariposa"] .hero__deco i {
  width: 34px; height: 28px; animation: revolotear 12s ease-in-out infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M20 16C14 2 2 0 3 9s9 8 17 7c-8 1-15 5-11 12s10-4 11-12c1 8 7 19 11 12s-3-11-11-12c8 1 16 2 17-7S26 2 20 16z' fill='%238a64b8' opacity='.75'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-tema="mariposa"] .hero__deco i:nth-child(1) { left: 8%; top: 18%; } [data-tema="mariposa"] .hero__deco i:nth-child(2) { right: 14%; top: 14%; animation-delay: -4s; transform: scale(.7); }
[data-tema="mariposa"] .hero__deco i:nth-child(3) { left: 14%; bottom: 18%; animation-delay: -8s; } [data-tema="mariposa"] .hero__deco i:nth-child(4) { right: 8%; bottom: 24%; animation-delay: -2s; }
[data-tema="mariposa"] .hero__deco i:nth-child(n+5) { display: none; }

@keyframes titilar { 50% { opacity: .2; transform: scale(.6); } }
[data-tema="celestial"] .hero__deco i { width: 4px; height: 4px; border-radius: 50%; background: #f6e7b8; box-shadow: 0 0 10px 2px rgba(246, 231, 184, .7); animation: titilar 3s ease-in-out infinite; }
[data-tema="celestial"] .hero__deco i:nth-child(1) { left: 12%; top: 20%; } [data-tema="celestial"] .hero__deco i:nth-child(2) { left: 80%; top: 16%; animation-delay: -1s; }
[data-tema="celestial"] .hero__deco i:nth-child(3) { left: 24%; top: 72%; animation-delay: -2s; } [data-tema="celestial"] .hero__deco i:nth-child(4) { left: 88%; top: 64%; animation-delay: -.5s; }
[data-tema="celestial"] .hero__deco i:nth-child(5) { left: 50%; top: 10%; animation-delay: -1.5s; } [data-tema="celestial"] .hero__deco i:nth-child(6) { left: 6%; top: 50%; animation-delay: -2.5s; }
[data-tema="celestial"] .hero__deco i:nth-child(7) { left: 64%; top: 84%; animation-delay: -.8s; } [data-tema="celestial"] .hero__deco i:nth-child(8) { left: 36%; top: 30%; animation-delay: -1.8s; }

@media (prefers-reduced-motion: reduce) { .hero__deco i { animation: none !important; } }
@media (max-width: 899px) and (max-height: 720px) { .hero__arco { width: min(42vw, 200px); margin-bottom: 1rem; } }

/* =========================================================
   Paletas nuevas por tipo de evento
   ========================================================= */
[data-tema="neon"] {
  --bg: #0b0716; --bg-alt: #120b24; --card: rgba(255, 255, 255, .05); --ink: #f5f0ff; --muted: #b9add6;
  --accent: #ff4fd8; --accent-ink: #0b0716; --accent-2: #3df5ff; --line: rgba(255, 79, 216, .35);
  --hero-ink: #f5f0ff; --font-display: "Inter", system-ui, sans-serif; --font-script: "Monoton", cursive;
  --script-scale: .62; --radius: 14px; --sello: #ff4fd8; --sello-ink: #0b0716; --env: #1c1236; --env-dark: #150d2a; --patron: none;
}
[data-tema="neon"] .hero__titulo, [data-tema="neon"] .cierre__titulo { color: #ffd6f6; text-shadow: 0 0 6px #ff4fd8, 0 0 18px #ff4fd8, 0 0 42px #ff4fd8; letter-spacing: .02em; }
[data-tema="neon"] .eyebrow, [data-tema="neon"] .cuenta__num { color: #3df5ff; text-shadow: 0 0 10px rgba(61, 245, 255, .7); }
[data-tema="neon"] .sec__titulo { font-weight: 700; letter-spacing: -.02em; }
[data-tema="neon"] .saludo, [data-tema="neon"] .rsvp__para { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
[data-tema="neon"] .campo select, [data-tema="neon"] .campo textarea { background-color: rgba(255, 255, 255, .06); }

[data-tema="osito"] {
  --bg: #fbf6ef; --bg-alt: #f3e8d9; --card: #fffdf9; --ink: #4a3626; --muted: #8c735d;
  --accent: #b9875a; --accent-ink: #fff; --accent-2: #e9c9a4; --line: rgba(185, 135, 90, .3);
  --hero-ink: #4a3626; --font-display: "Fredoka", system-ui, sans-serif; --font-script: "Sacramento", cursive;
  --script-scale: 1.2; --radius: 22px; --sello: #b9875a; --sello-ink: #fff; --env: #efe0cb; --env-dark: #e3cdb0; --patron: none;
}
[data-tema="osito"] .sec__titulo { font-weight: 500; }

[data-tema="revelacion"] {
  --bg: #fdf7fb; --bg-alt: #eef5fd; --card: #ffffff; --ink: #2f2a44; --muted: #7a7494;
  --accent: #e86fa3; --accent-ink: #fff; --accent-2: #5aa9e6; --line: rgba(47, 42, 68, .12);
  --hero-ink: #2f2a44; --font-display: "Fredoka", system-ui, sans-serif; --font-script: "Pacifico", cursive;
  --script-scale: .8; --radius: 22px; --sello: #5aa9e6; --sello-ink: #fff; --env: #f8dbe9; --env-dark: #d6e8f8; --patron: none;
}
[data-tema="revelacion"] .hero { background: linear-gradient(90deg, #fde3ef 0 50%, #ddeefc 50%); }
[data-tema="revelacion"] .hero__titulo { background: linear-gradient(90deg, #e86fa3 50%, #5aa9e6 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="revelacion"] .sec__titulo { font-weight: 600; }
[data-tema="revelacion"] .hero__deco i { --c: #e86fa3; }
[data-tema="revelacion"] .hero__deco i:nth-child(even) { --c: #5aa9e6; }

[data-tema="medianoche"] {
  --bg: #0f1b33; --bg-alt: #13223f; --card: rgba(255, 255, 255, .05); --ink: #f4efe3; --muted: #aab4c8;
  --accent: #d6b25e; --accent-ink: #0f1b33; --accent-2: #f4efe3; --line: rgba(214, 178, 94, .3);
  --hero-ink: #f4efe3; --font-display: "Playfair Display", Georgia, serif; --font-script: "Playfair Display", Georgia, serif;
  --script-scale: .8; --radius: 6px; --sello: #d6b25e; --sello-ink: #0f1b33; --env: #1a2b4d; --env-dark: #142340; --patron: none;
}
[data-tema="medianoche"] .hero__titulo, [data-tema="medianoche"] .cierre__titulo { font-weight: 700; font-style: italic; }
[data-tema="medianoche"] .campo select, [data-tema="medianoche"] .campo textarea { background-color: rgba(255, 255, 255, .06); }

[data-tema="navidad"] {
  --bg: #f7f3ea; --bg-alt: #eaf0e6; --card: #fffdf7; --ink: #1f2b22; --muted: #5e6b5f;
  --accent: #1f5c3a; --accent-ink: #fff; --accent-2: #b3262e; --line: rgba(31, 92, 58, .3);
  --hero-ink: #1f2b22; --font-display: "Cormorant Garamond", Georgia, serif; --font-script: "Great Vibes", cursive;
  --script-scale: 1.05; --radius: 8px; --sello: #b3262e; --sello-ink: #f7f3ea; --env: #e3dccb; --env-dark: #d4cab3;
  --patron: radial-gradient(circle at 20% 30%, rgba(179, 38, 46, .14) 0 3px, transparent 4px), radial-gradient(circle at 70% 70%, rgba(214, 178, 94, .25) 0 2px, transparent 3px);
}
[data-tema="navidad"] .hero__marco { border-color: rgba(179, 38, 46, .4); }
[data-tema="navidad"] .ornamento { color: #c9a04a; }

[data-tema="champana"] {
  --bg: #f8f4ec; --bg-alt: #f0e8da; --card: #fffdf8; --ink: #3b3326; --muted: #8a7c66;
  --accent: #b08d57; --accent-ink: #fff; --accent-2: #e6d3b1; --line: rgba(176, 141, 87, .35);
  --hero-ink: #3b3326; --font-display: "Cormorant Garamond", Georgia, serif; --font-script: "Pinyon Script", cursive;
  --script-scale: 1; --radius: 2px; --sello: #b08d57; --sello-ink: #fff; --env: #ece0ca; --env-dark: #ddcdb0; --patron: none;
}

/* =========================================================
   Blanco y negro (boda): editorial monocromo, fotos en escala de grises
   ========================================================= */
[data-tema="monocromo"] {
  --bg: #fafafa; --bg-alt: #f0f0f0; --card: #ffffff; --ink: #111111; --muted: #6b6b6b;
  --accent: #111111; --accent-ink: #ffffff; --accent-2: #bdbdbd; --line: rgba(17, 17, 17, .18);
  --hero-ink: #111111; --font-display: "Playfair Display", Georgia, serif; --font-script: "Pinyon Script", cursive;
  --script-scale: 1; --radius: 0px; --sello: #111111; --sello-ink: #fafafa; --env: #ececec; --env-dark: #dcdcdc; --patron: none;
  --contra: #fafafa; /* color opuesto a --ink (texto sobre bloques en tinta) */
}
/* Fondo de papel: vetas de mármol muy tenues + grano fino (solo SVG, sin imágenes) */
[data-tema="monocromo"] body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .014' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 -1.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.07'/%3E%3C/svg%3E");
  background-size: 220px 220px, 1000px 1000px;
}
/* Todas las fotos en blanco y negro */
[data-tema="monocromo"] .hero__foto, [data-tema="monocromo"] .hero__arco--foto,
[data-tema="monocromo"] .galeria__item img, [data-tema="monocromo"] .padres__foto img,
[data-tema="monocromo"] .lightbox img, [data-tema="monocromo"] .hero__logo { filter: grayscale(1) contrast(1.06); }
[data-tema="monocromo"] .hero--foto .hero__fotos::after { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.08) 45%, rgba(0,0,0,.65)); }
/* Texto en serif itálica, como invitación impresa */
[data-tema="monocromo"] .frase, [data-tema="monocromo"] .nota, [data-tema="monocromo"] .cita,
[data-tema="monocromo"] .saludo, [data-tema="monocromo"] .rsvp__para { font-family: var(--font-display); font-style: italic; }
[data-tema="monocromo"] .saludo { font-size: 1.5rem; }
[data-tema="monocromo"] .frase { letter-spacing: .01em; }
[data-tema="monocromo"] .sec__titulo, [data-tema="monocromo"] .evento__titulo { letter-spacing: .02em; }
[data-tema="monocromo"] .eyebrow { color: var(--muted); letter-spacing: .38em; }
[data-tema="monocromo"] .hero__fecha { letter-spacing: .4em; }
[data-tema="monocromo"] .btn { letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }
/* Ritmo editorial: las secciones pares van en negro (las mismas que en otras plantillas llevan --bg-alt) */
[data-tema="monocromo"] .sec:nth-of-type(even) {
  --ink: #fafafa; --muted: #a8a8a8; --accent: #fafafa; --accent-ink: #111111; --accent-2: #5c5c5c;
  --line: rgba(255, 255, 255, .22); --card: #161616; --bg-alt: #111111; --contra: #111111;
  background: #111111; color: var(--ink);
}
[data-tema="monocromo"] .sec:nth-of-type(even) .campo select,
[data-tema="monocromo"] .sec:nth-of-type(even) .campo textarea { background-color: rgba(255, 255, 255, .05); }
[data-tema="monocromo"] .campo select option { color: #111; }
/* Portada: arco negro con el monograma en blanco (con foto, la foto va dentro del arco) */
[data-tema="monocromo"] .hero__arco { background: #111; }
[data-tema="monocromo"] .hero__arco-ini { color: #fafafa; font-size: 5.2rem; }
/* Marco fino de la portada con esquinas art déco */
[data-tema="monocromo"] .hero--arco .hero__marco { display: block; }
[data-tema="monocromo"] .hero__marco::after {
  content: ""; position: absolute; inset: -1px;
  --e: linear-gradient(var(--ink), var(--ink));
  background:
    var(--e) top left / 34px 2px no-repeat, var(--e) top left / 2px 34px no-repeat,
    var(--e) top right / 34px 2px no-repeat, var(--e) top right / 2px 34px no-repeat,
    var(--e) bottom left / 34px 2px no-repeat, var(--e) bottom left / 2px 34px no-repeat,
    var(--e) bottom right / 34px 2px no-repeat, var(--e) bottom right / 2px 34px no-repeat;
}
/* Tarjetas con filete doble */
[data-tema="monocromo"] .card { box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--line); }
/* "Solo adultos" en arco (negro sobre claro, blanco sobre negro) */
[data-tema="monocromo"] .aviso {
  display: block; max-width: 400px; margin: 2.8rem auto 0; padding: 4.2rem 2.2rem 2.6rem;
  background: var(--ink); color: var(--contra); border: 0; border-radius: 999px 999px 0 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.9;
}
[data-tema="monocromo"] .aviso::after {
  content: "No niños"; display: block; margin-top: 1.2rem;
  font-family: var(--font-display); font-style: normal; font-size: 1.5rem; letter-spacing: .3em; text-transform: uppercase;
}

/* Globos también para revelación */
[data-tema="revelacion"] .hero--guirnalda .hero__deco i {
  width: 70px; height: 84px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 28%), var(--c);
  animation: flotar 6s ease-in-out infinite;
}
[data-tema="revelacion"] .hero__deco i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 90px; background: rgba(47, 42, 68, .25); }
@media (max-width: 640px) { [data-tema="revelacion"] .hero__deco i { width: 46px; height: 56px; } }

/* =========================================================
   Adornos de portada
   ========================================================= */
.ornamento { display: block; color: var(--accent); }
.ornamento--hero { width: clamp(56px, 12vw, 84px); height: auto; margin: 0 auto 1rem; }
.hero--moderno .ornamento--hero { margin-left: 0; }
.ornamento--arco { width: 46%; height: auto; }
.hero--foto .ornamento { color: #fff; }
[data-tema="neon"] .ornamento { color: #3df5ff; filter: drop-shadow(0 0 6px rgba(61, 245, 255, .8)); }

/* =========================================================
   Paletas extra: boho · esmeralda · lavanda · menta · arcoíris
   ========================================================= */
[data-tema="boho"] {
  --bg: #f6efe6; --bg-alt: #efe3d3; --card: #fdf8f1; --ink: #4a3428; --muted: #8c7262;
  --accent: #c0784f; --accent-ink: #fff; --accent-2: #d9b99b; --line: rgba(192, 120, 79, .32);
  --hero-ink: #4a3428; --font-display: "Cormorant Garamond", Georgia, serif; --font-script: "La Belle Aurore", cursive;
  --script-scale: 1.05; --radius: 22px; --sello: #c0784f; --sello-ink: #fdf8f1; --env: #ead9c4; --env-dark: #dcc5a8;
  --patron: radial-gradient(circle at 30% 30%, rgba(192, 120, 79, .1) 0 18px, transparent 19px);
}
[data-tema="esmeralda"] {
  --bg: #0d2a22; --bg-alt: #10332a; --card: rgba(255, 255, 255, .05); --ink: #f2ecdc; --muted: #b4c3b8;
  --accent: #d7b46a; --accent-ink: #0d2a22; --accent-2: #f2ecdc; --line: rgba(215, 180, 106, .32);
  --hero-ink: #f2ecdc; --font-display: "Cinzel", Georgia, serif; --font-script: "Pinyon Script", cursive;
  --script-scale: 1.05; --radius: 4px; --sello: #d7b46a; --sello-ink: #0d2a22; --env: #164034; --env-dark: #12372c; --patron: none;
}
[data-tema="esmeralda"] .sec__titulo { letter-spacing: .05em; font-size: clamp(1.7rem, 5vw, 2.6rem); }
[data-tema="esmeralda"] .campo select, [data-tema="esmeralda"] .campo textarea { background-color: rgba(255, 255, 255, .06); }
[data-tema="lavanda"] {
  --bg: #f6f3fb; --bg-alt: #ece6f6; --card: #fdfcff; --ink: #3d3552; --muted: #7d7496;
  --accent: #8b74c4; --accent-ink: #fff; --accent-2: #c9b9ea; --line: rgba(139, 116, 196, .3);
  --hero-ink: #3d3552; --font-display: "Quicksand", system-ui, sans-serif; --font-script: "Dancing Script", cursive;
  --script-scale: .95; --radius: 20px; --sello: #8b74c4; --sello-ink: #fff; --env: #e6ddf4; --env-dark: #d6c9ec; --patron: none;
}
[data-tema="lavanda"] .sec__titulo { font-weight: 600; }
[data-tema="lavanda"] .hero__arco { background: radial-gradient(80% 60% at 50% 100%, #c9b9ea, transparent 70%), linear-gradient(180deg, #f6f3fb, #e6ddf4); }
[data-tema="menta"] {
  --bg: #f2faf7; --bg-alt: #fff1ea; --card: #ffffff; --ink: #24423b; --muted: #5f7d76;
  --accent: #3fb59a; --accent-ink: #fff; --accent-2: #ffb08f; --line: rgba(63, 181, 154, .28);
  --hero-ink: #24423b; --font-display: "Fredoka", system-ui, sans-serif; --font-script: "Pacifico", cursive;
  --script-scale: .82; --radius: 22px; --sello: #ff8f6b; --sello-ink: #fff; --env: #d9f1e9; --env-dark: #c3e8db; --patron: none;
}
[data-tema="menta"] .sec__titulo { font-weight: 500; }
[data-tema="menta"] .hero__arco { background: radial-gradient(70% 50% at 50% 100%, #ffc3a8, transparent 70%), linear-gradient(180deg, #e9f8f2, #c8eee1); }
[data-tema="arcoiris"] {
  --bg: #fffdf7; --bg-alt: #f3f7ff; --card: #ffffff; --ink: #2e2a4a; --muted: #6f6a8e;
  --accent: #7b5cff; --accent-ink: #fff; --accent-2: #ffb703; --line: rgba(46, 42, 74, .12);
  --hero-ink: #2e2a4a; --font-display: "Baloo 2", system-ui, sans-serif; --font-script: "Baloo 2", system-ui, sans-serif;
  --script-scale: .85; --radius: 24px; --sello: #ff4d6d; --sello-ink: #fff; --env: #ffe3a3; --env-dark: #ffd36e; --patron: none;
}
[data-tema="arcoiris"] .hero__titulo { font-weight: 800; background: linear-gradient(90deg, #ff4d6d, #ff9f1c, #ffd60a, #2ec4b6, #3a86ff, #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="arcoiris"] .sec__titulo { font-weight: 700; }

/* Globos también en arcoíris y menta (portada guirnalda) */
[data-tema="arcoiris"] .hero--guirnalda .hero__deco i, [data-tema="menta"] .hero--guirnalda .hero__deco i {
  width: 70px; height: 84px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 28%), var(--c);
  animation: flotar 6s ease-in-out infinite;
}
[data-tema="arcoiris"] .hero__deco i::after, [data-tema="menta"] .hero__deco i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 90px; background: rgba(46, 42, 74, .22); }
[data-tema="arcoiris"] .hero__deco i:nth-child(1) { --c: #ff4d6d; } [data-tema="arcoiris"] .hero__deco i:nth-child(2) { --c: #ff9f1c; }
[data-tema="arcoiris"] .hero__deco i:nth-child(3) { --c: #2ec4b6; } [data-tema="arcoiris"] .hero__deco i:nth-child(4) { --c: #3a86ff; }
[data-tema="arcoiris"] .hero__deco i:nth-child(5) { --c: #ffd60a; } [data-tema="arcoiris"] .hero__deco i:nth-child(6) { --c: #7b5cff; }
[data-tema="menta"] .hero__deco i:nth-child(odd) { --c: #7fd8c1; } [data-tema="menta"] .hero__deco i:nth-child(even) { --c: #ffb08f; }
@media (max-width: 640px) { [data-tema="arcoiris"] .hero__deco i, [data-tema="menta"] .hero__deco i { width: 46px; height: 56px; } }

/* =========================================================
   Animaciones de entrada (elegibles por evento)
   revelar · telon · puertas · desvanecer  (sobre usa .sobre)
   ========================================================= */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: var(--bg); color: var(--ink); cursor: pointer;
}
.intro.is-abierto { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility 0s linear .5s; }
.intro__centro { position: relative; z-index: 3; text-align: center; padding: 24px; max-width: 92vw; }
.intro__para { margin: 0 0 1.2rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.intro__eyebrow { margin: 0; font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.intro__titulo { margin: .2em 0 0; font-family: var(--font-script); font-size: calc(clamp(2.8rem, 12vw, 5.4rem) * var(--script-scale)); line-height: 1.05; color: var(--accent); }
.intro__saltar {
  position: absolute; z-index: 4; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: .78rem; cursor: pointer;
}
.intro__centro > * { opacity: 0; }

/* --- Revelado: monograma + apertura circular --- */
.intro--revelar { -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px)); mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px)); }
.intro__mono {
  width: 128px; height: 128px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1px solid var(--accent); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .08em; color: var(--accent);
}
.intro__mono::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--line); }
.intro--revelar.is-play { animation: revelar-hueco 2.6s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro--revelar.is-play .intro__mono { animation: mono-entra 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro--revelar.is-play .intro__para,
.intro--revelar.is-play .intro__eyebrow,
.intro--revelar.is-play .intro__titulo { animation: sube 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro--revelar.is-play .intro__para { animation-delay: .35s; }
.intro--revelar.is-play .intro__eyebrow { animation-delay: .5s; }
.intro--revelar.is-play .intro__titulo { animation-delay: .65s; }
@keyframes mono-entra { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes sube { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes revelar-hueco { 0%, 62% { --r: 0px; } 100% { --r: 150vmax; } }

/* --- Telón --- */
.intro--telon, .intro--puertas { background: transparent; }
.intro__hoja { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2; }
.intro__hoja--izq { left: 0; }
.intro__hoja--der { right: 0; }
.intro--telon .intro__hoja {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 26px, rgba(255, 255, 255, .08) 26px 28px, transparent 28px 54px),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #000), var(--accent) 40%, color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: inset 0 -40px 60px -20px rgba(0, 0, 0, .35);
  transition: transform 1.3s cubic-bezier(.7, 0, .2, 1) .95s;
}
.intro--telon .intro__hoja--izq { border-right: 1px solid rgba(0, 0, 0, .25); }
.intro--telon .intro__centro { color: var(--accent-ink); }
.intro--telon .intro__titulo, .intro--telon .intro__eyebrow { color: var(--accent-ink); }
.intro--telon .intro__para { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.intro--telon.is-play .intro__hoja--izq { transform: translateX(-102%); }
.intro--telon.is-play .intro__hoja--der { transform: translateX(102%); }
.intro--telon.is-play .intro__centro > *, .intro--puertas.is-play .intro__centro > * { animation: entra-sale 1.4s ease forwards; }
.intro--telon.is-play .intro__eyebrow, .intro--puertas.is-play .intro__eyebrow { animation-delay: .08s; }
.intro--telon.is-play .intro__titulo, .intro--puertas.is-play .intro__titulo { animation-delay: .16s; }
@keyframes entra-sale { 0% { opacity: 0; transform: translateY(10px); } 30%, 62% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.05); } }

/* --- Puertas --- */
.intro--puertas { perspective: 1400px; }
.intro--puertas .intro__hoja {
  background: var(--card);
  box-shadow: inset 0 0 0 14px var(--card), inset 0 0 0 15px var(--line), inset 0 0 0 26px var(--card), inset 0 0 0 27px var(--line), 0 0 40px rgba(0, 0, 0, .15);
  transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) .9s;
  backface-visibility: hidden;
}
.intro--puertas .intro__hoja::after { content: ""; position: absolute; top: 50%; width: 10px; height: 46px; margin-top: -23px; border-radius: 6px; background: var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.intro--puertas .intro__hoja--izq { transform-origin: left center; }
.intro--puertas .intro__hoja--izq::after { right: 22px; }
.intro--puertas .intro__hoja--der { transform-origin: right center; }
.intro--puertas .intro__hoja--der::after { left: 22px; }
.intro--puertas.is-play .intro__hoja--izq { transform: rotateY(-108deg); }
.intro--puertas.is-play .intro__hoja--der { transform: rotateY(108deg); }

/* --- Desvanecer --- */
.intro--desvanecer.is-play { animation: fondo-fuera 2.2s ease forwards; }
.intro--desvanecer.is-play .intro__centro > * { animation: desvanecer 2.2s ease forwards; }
.intro--desvanecer.is-play .intro__eyebrow { animation-delay: .1s; }
.intro--desvanecer.is-play .intro__titulo { animation-delay: .2s; }
@keyframes desvanecer { 0% { opacity: 0; filter: blur(10px); transform: scale(.96); } 35%, 65% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; filter: blur(8px); transform: scale(1.04); } }
@keyframes fondo-fuera { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro * { animation: none !important; transition: none !important; }
  .intro__centro > * { opacity: 1; }
}

/* Selector de entrada en la barra de demo */
.demo-barra__sel { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; color: rgba(255, 255, 255, .6); }
.demo-barra__sel select {
  -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 .8rem/1 "Inter", system-ui, sans-serif; color: #fff;
  background: #ff5070 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 0; border-radius: 999px; padding: 9px 32px 9px 14px; box-shadow: 0 4px 14px -4px rgba(255, 80, 112, .6); transition: filter .2s ease;
}
.demo-barra__sel select:hover { filter: brightness(1.08); }
.demo-barra__sel select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-barra__sel select option { color: #111; background: #fff; }
@media (max-width: 560px) {
  .demo-barra__volver span, .demo-barra__sel > span, .demo-barra__nombre em { display: none; }
  .demo-barra__volver { padding: 8px; }
  .demo-barra__nombre { padding: 0 8px; }
}

.intro--revelar.is-play .intro__centro { animation: intro-sale .45s ease 1.45s forwards; }
@keyframes intro-sale { to { opacity: 0; transform: scale(1.05); filter: blur(4px); } }

/* Botones Sí / No sin cortes en pantallas angostas */
.opcion span { white-space: nowrap; font-size: clamp(.8rem, 3.6vw, .92rem); padding: 10px 8px; }
@media (max-width: 330px) { .opciones { grid-template-columns: 1fr; } }

/* Hospedaje: tarjetas por hotel */
.hoteles { display: grid; gap: 18px; max-width: 520px; margin: 0 auto; }
@media (min-width: 820px) { .hoteles--varios { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1000px; } }
.hotel { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hotel__nombre { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.hotel__dir { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.hotel__codigo {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 10px 16px; cursor: pointer;
  border: 1px dashed var(--accent); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: .85rem;
}
.hotel__codigo span { color: var(--muted); }
.hotel__codigo strong { letter-spacing: .12em; color: var(--accent); }
.hotel__codigo svg { width: 16px; height: 16px; color: var(--accent); }
.hotel .evento__acciones { margin-top: 4px; }

/* Fotos de invitados y dudas */
.fotos-inv { margin-bottom: 2.6rem; }
.fotos-inv .hashtag { margin: .2rem 0 1.2rem; }
.fotos-inv .evento__acciones { justify-content: center; }
.dudas { margin: 0 auto 2.4rem; }

/* Portada con logo */
.hero__logo { display: block; max-width: min(240px, 56vw); max-height: 170px; width: auto; height: auto; object-fit: contain; margin: 0 auto 1.6rem; border-radius: 12px; }
.hero--moderno .hero__logo { margin-left: 0; }

/* Portada con foto: texto siempre legible */
.hero--foto .hero__fotos::after { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35) 40%, rgba(0,0,0,.7)) !important; }
.hero--foto .hero__titulo { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .5) !important; }
.hero--foto .eyebrow, .hero--foto .hero__fecha, .hero--foto .hero__lugar { color: #fff !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero--foto .ornamento { color: #fff; }

/* Arco con foto: la foto llena el arco y queda centrada en todas las plantillas.
   (Algunas plantillas pintan el arco con la propiedad corta "background", que reiniciaba el tamaño de la foto.) */
[data-tema] .hero__arco.hero__arco--foto { background-size: cover; background-position: center 30%; background-repeat: no-repeat; overflow: hidden; }
/* Varias portadas dentro del arco: capas que se alternan, recortadas a la forma del arco */
.hero__arco .hero__foto { border-radius: inherit; background-position: center 30%; }

/* Título de portada: cada nombre completo en su renglón; el "&" se acomoda entre ellos */
.hero__nombre { white-space: nowrap; }
.hero__titulo--largo { font-size: calc(clamp(2.6rem, 11vw, 6rem) * var(--script-scale)); }

