/* ==========================================================
   Interfase · Despedida de Fin de Año
   Estética de fiesta: negro profundo y dorado metálico.
   Tipografía: Sora; el título principal en Cormorant Garamond (la de la carta de Casa Fauno).
   ========================================================== */

:root {
  --gold-deep: #9a7328;
  --gold-soft: #b8923f;
  --champagne: #e9dcc0;
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --graphite: #2c2a29;
  --on-gold: #17130b;
  color-scheme: dark;
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;

  --bg: #050504;
  --bg-2: #0e0d0a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(233, 220, 192, 0.14);
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.66);

  --brand-gradient: linear-gradient(110deg, var(--gold-deep) 0%, var(--gold-light) 48%, var(--gold) 72%, var(--gold-deep) 100%);
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100dvh; }

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--on-gold); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }

.gradient-text {
  background: linear-gradient(100deg, var(--champagne), var(--gold) 30%, var(--gold-light) 55%, var(--gold) 75%, var(--champagne));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }


/* ---------- Fondos animados ---------- */
#network {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.15); }
  100% { transform: translate(-6vw, -4vh) scale(.95); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 50;
  background: var(--brand-gradient); transform-origin: 0 50%; transform: scaleX(0);
}

main { position: relative; z-index: 2; overflow-x: clip; }

/* ---------- Entrada (sobre) ---------- */
/* Pantalla completa a modo de sobre: dos mitades con un pliegue al medio y el sello encima.
   Cada mitad lleva su contenido, así al abrir se separan juntos. */
#entry { position: fixed; inset: 0; z-index: 100; cursor: pointer; }

/* Fondo sólido, igual en las dos mitades: no hay corte visible hasta que se abre. */
.entry-half {
  position: absolute; left: 0; right: 0; height: 50.5%;
  display: flex; justify-content: center;
  background: #050504;
  transition: transform 1.1s var(--ease-out) .2s;
}
.entry-top { top: 0; }
.entry-bottom { bottom: 0; }
#entry.is-open { pointer-events: none; }
#entry.is-open .entry-top { transform: translateY(-101%); }
#entry.is-open .entry-bottom { transform: translateY(101%); }
#entry.is-gone { display: none; }

.entry-content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 760px; height: 100%; padding: 0 var(--gutter);
}
.entry-top .entry-content { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(100px, 15vh, 128px); }
.entry-bottom .entry-content { padding-top: clamp(100px, 15vh, 128px); padding-bottom: clamp(24px, 5vh, 44px); }
.entry-content > * { animation: entry-in 1.1s var(--ease-out) both; }

.entry-logo { width: clamp(120px, 18vw, 150px); aspect-ratio: 1023 / 180; height: auto; margin-bottom: auto; color: #fff; animation-delay: .1s; }
/* Como la portada: "te invita a la" en cursiva, Despedida grande, "de Fin de Año" debajo y el año entre líneas */
.entry-invite { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 3.2vw, 1.4rem); color: rgba(247, 242, 232, .72); animation-delay: .25s; }
.entry-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, min(15vw, 9vh), 6.4rem); line-height: .95; letter-spacing: -.01em;
  color: #fffdf8; animation-delay: .35s;
}
.entry-title span { display: block; font-size: .6em; line-height: 1.1; }
.entry-year {
  display: flex; align-items: center; gap: 14px; margin: 12px 0 0;
  font-family: var(--font-display); font-size: clamp(1rem, 2.8vw, 1.2rem); letter-spacing: .35em; padding-left: .35em; color: var(--gold);
  animation-delay: .45s;
}
.entry-year i { display: block; width: clamp(36px, 9vw, 60px); height: 1px; background: rgba(212, 175, 55, .45); }
.entry-for { margin: 0 0 2px; color: var(--muted); font-size: clamp(.85rem, 2.2vw, 1rem); font-weight: 300; animation-delay: .55s; }
.entry-name {
  margin: 0; font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  overflow-wrap: anywhere; animation-delay: .65s;
}
.entry-hint {
  margin: auto 0 0; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  animation: entry-in 1.1s var(--ease-out) .9s both, breathe 2.6s ease-in-out 2s infinite;
}
@keyframes entry-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes breathe { 50% { opacity: .45; } }

/* Pliegue del sobre: se dibuja desde el centro y se enciende al abrir */
.entry-fold {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(233, 220, 192, .35) 20%, rgba(212, 175, 55, .5) 50%, rgba(233, 220, 192, .35) 80%, transparent);
  animation: fold-in 1.4s var(--ease-out) .3s both;
  transition: opacity .4s, box-shadow .3s;
}
@keyframes fold-in { from { transform: scaleX(0); } }
#entry.is-open .entry-fold {
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  box-shadow: 0 0 30px 6px rgba(212, 175, 55, .55);
  opacity: 0; transition: opacity .6s .5s, box-shadow .2s;
}

/* Sello */
.entry-seal {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 96px; height: 96px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  animation: seal-in .9s var(--ease-back) .6s both;
  transition: transform .5s var(--ease-back), opacity .4s, filter .4s;
}
@keyframes seal-in { from { transform: scale(0) rotate(-120deg); } }
.seal-core {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 6px rgba(14, 12, 9, .9), 0 0 0 7px rgba(255, 255, 255, .12), 0 14px 50px rgba(212, 175, 55, .55),
    inset 0 -8px 16px rgba(0, 0, 0, .25), inset 0 5px 12px rgba(255, 255, 255, .3);
  animation: pulse 2.4s ease-in-out 1.6s infinite;
  transition: transform .35s var(--ease-back);
}
.seal-i { height: 50%; aspect-ratio: 27.59 / 152.22; color: var(--on-gold); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.entry-seal:focus { outline: none; }
.entry-seal:focus-visible .seal-core { outline: 2px solid var(--gold-light); outline-offset: 10px; }
#entry:hover .seal-core { transform: scale(1.07) rotate(-8deg); }
#entry.is-open .entry-seal { transform: scale(1.8); opacity: 0; filter: blur(8px); animation: none; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(14, 12, 9, .9), 0 0 0 7px rgba(255, 255, 255, .2), 0 14px 70px rgba(212, 175, 55, .85),
    inset 0 -8px 16px rgba(0, 0, 0, .25), inset 0 5px 12px rgba(255, 255, 255, .3); }
}
.entry-rings { position: absolute; inset: 0; pointer-events: none; }
.entry-rings i {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .5);
  animation: ripple 3s ease-out 1.5s infinite both;
}
.entry-rings i:nth-child(2) { animation-delay: 2.5s; }
.entry-rings i:nth-child(3) { animation-delay: 3.5s; }
@keyframes ripple { from { transform: scale(.9); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }


/* ---------- Menú lateral ---------- */
.menu-toggle {
  position: fixed; top: 16px; right: 18px; z-index: 110; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(18, 16, 12, .92); cursor: pointer;
  display: grid; place-content: center; gap: 5px; transition: opacity .4s, transform .4s var(--ease-back);
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .45s var(--ease-back), opacity .25s, width .3s var(--ease-out);
}
.menu-toggle span:nth-child(2) { width: 14px; justify-self: end; background: var(--brand-gradient); }
.menu-toggle:hover span:nth-child(2) { width: 20px; }
body.is-locked:not(.menu-open) .menu-toggle { opacity: 0; transform: scale(.6); pointer-events: none; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-menu { position: fixed; inset: 0; z-index: 105; pointer-events: none; }
.menu-open .site-menu { pointer-events: auto; }
.menu-backdrop {
  position: absolute; inset: 0; background: rgba(8, 7, 5, .55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.menu-open .menu-backdrop { opacity: 1; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 86vw);
  display: flex; flex-direction: column; padding: 92px clamp(26px, 6vw, 44px) 32px; overflow-y: auto;
  background: linear-gradient(165deg, #1c1912, #0e0d0a 60%); box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  transform: translateX(100%); transition: transform .65s var(--ease-out);
}
.menu-panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .8s var(--ease-out) .2s;
}
.menu-open .menu-panel { transform: none; }
.menu-open .menu-panel::before { transform: scaleY(1); }
.menu-kicker {
  margin: 0; font-size: .72rem; letter-spacing: .18em; white-space: nowrap; text-transform: uppercase; color: var(--champagne);
  opacity: 0; transition: opacity .6s var(--ease-out) .2s;
}
.menu-open .menu-kicker { opacity: 1; }
/* Logo arriba a la izquierda, centrado en altura con el botón de cerrar (top 16px + 52px / 2) */
.menu-logo {
  position: absolute; top: 31px; left: clamp(26px, 6vw, 44px); width: 120px; height: 22px; color: #fff;
  opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease-out) .15s, transform .7s var(--ease-out) .15s;
}
.menu-open .menu-logo { opacity: 1; transform: none; }
[data-theme="light"] .menu-logo { color: var(--text); }
.menu-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.menu-list li {
  opacity: 0; transform: translateX(60px); filter: blur(6px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), filter .6s var(--ease-out);
}
.menu-open .menu-list li { opacity: 1; transform: none; filter: none; transition-delay: calc(.18s + var(--i) * .06s); }
.menu-list a {
  position: relative; display: flex; align-items: baseline; gap: 14px; padding: 10px 0;
  color: var(--text); text-decoration: none; font-size: clamp(1.5rem, 5.5vw, 1.9rem); font-weight: 700; letter-spacing: -.02em;
}
.menu-num { font-size: .75rem; font-weight: 400; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.menu-label { position: relative; transition: transform .4s var(--ease-back); }
.menu-label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out);
}
.menu-list a:hover .menu-label, .menu-list a:focus-visible .menu-label { transform: translateX(8px); }
.menu-list a:hover .menu-label::after, .menu-list a:focus-visible .menu-label::after,
.menu-list a[aria-current="true"] .menu-label::after { transform: scaleX(1); }
.menu-list a:hover .menu-num, .menu-list a[aria-current="true"] .menu-num { color: var(--gold-light); }
body.menu-open { overflow: hidden; }

/* ---------- Botón de tema ---------- */
.theme-toggle {
  position: fixed; top: 16px; right: 80px; z-index: 110; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(18, 16, 12, .92); cursor: pointer;
  display: grid; place-items: center; color: var(--gold-light); transition: opacity .4s, transform .4s var(--ease-back);
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.06); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-back), opacity .3s;
}
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(.4); color: var(--gold-deep); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
body.is-locked .theme-toggle, body.menu-open .theme-toggle { opacity: 0; transform: scale(.6); pointer-events: none; }
/* Transición suave sólo al cambiar de tema */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s, fill .5s, stroke .5s !important;
}

/* ---------- Botón de música ---------- */
.music-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(18, 16, 12, .92); cursor: pointer;
  display: grid; place-items: center;
  animation: pop-in .6s var(--ease-back) both; transition: bottom .5s var(--ease-back);
}
/* Silenciado: barras quietas y una línea cruzada */
.music-toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 2px; border-radius: 2px; background: #fff;
  transform: rotate(-45deg) scaleX(0); transition: transform .3s var(--ease-out);
}
.music-toggle.is-paused::after { transform: rotate(-45deg) scaleX(1); }
/* Cuando aparece "volver arriba", la música se ubica encima */
body:has(.to-top.is-shown) .music-toggle { bottom: 82px; }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand-gradient); transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.3s; }
.bars i:nth-child(3) { animation-delay: -.6s; }
.bars i:nth-child(4) { animation-delay: -.15s; }
.music-toggle.is-paused .bars i { animation: none; transform: scaleY(.3); }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes pop-in { from { transform: scale(0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px var(--gutter) 110px;
  overflow: hidden;
}
.hero-year {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: clamp(9rem, 38vw, 30rem); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 220, 192, .14);
  user-select: none;
}
.hero-logo { width: clamp(150px, 30vw, 220px); height: auto; aspect-ratio: 1023 / 180; color: #fff; }
.hero-pretext {
  margin: 22px 0 6px; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--champagne);
}
.hero-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(3.2rem, 12.5vw, 8.2rem); font-weight: 600; line-height: .95; letter-spacing: -.015em;
}
.hero-title .line { display: block; overflow: hidden; padding: .12em .05em .06em; margin: -.12em 0 -.06em; }
.hero-title .line-in { display: inline-block; transform: translateY(110%) rotate(5deg); transform-origin: 0 100%; }
.hero.is-in .hero-title .line-in { transform: none; transition: transform 1.3s var(--ease-out) .55s; }
.hero.is-in .hero-title .line + .line .line-in { transition-delay: .7s; }
/* Como en la carta: la segunda línea en cursiva dorada */
.hero-title .line + .line .line-in { font-style: italic; font-weight: 500; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .6s var(--ease-out); }
.pill-link { text-decoration: none; transition: border-color .3s, background .3s, transform .3s var(--ease-back); }
.pill-link:hover { border-color: rgba(243, 217, 139, .6); background: rgba(243, 217, 139, .12); transform: translateY(-2px); }
.hero-greeting { margin: 28px 0 0; font-size: clamp(1.1rem, 3.6vw, 1.5rem); font-weight: 300; }
.hero-greeting strong { font-weight: 700; }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 3s 3; }
@keyframes wave { 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40%, 100% { transform: rotate(0); } }

.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(24, 21, 16, .85); border: 1px solid var(--border); font-size: .9rem;
}
.pill svg, .card-icon svg, .search svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.pill svg { color: var(--gold-light); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 38px; width: min(460px, 100%); }
.cd-box {
  position: relative; padding: 16px 4px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid var(--border); overflow: hidden;
}
.cd-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-gradient);
}
.cd-num { display: block; font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .35);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold-light); animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* Secuencia de entrada del hero */
.hero [data-step] { opacity: 0; transform: translateY(30px); filter: blur(8px); }
.hero.is-in [data-step] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 200ms);
}
.hero.is-in .scroll-hint[data-step] { transform: none; }

/* ---------- Bandas cruzadas ---------- */
.bands {
  position: relative; height: clamp(170px, 22vw, 260px); overflow: hidden;
  display: grid; place-items: center;
}
.bands .marquee {
  position: absolute; left: -6%; right: -6%; padding: clamp(14px, 2vw, 22px) 0; overflow: hidden;
  transform: rotate(var(--rot)) skewX(var(--skew, 0deg));
  transition: transform .4s var(--ease-out);
}
.marquee-front { --rot: -4deg; color: var(--on-gold); background: var(--brand-gradient); box-shadow: 0 20px 60px rgba(212, 175, 55, .35); z-index: 2; }
.marquee-back { --rot: 3.5deg; background: #f7f2e8; color: #15130f; }
.marquee-track { display: flex; align-items: center; width: max-content; gap: 28px; animation: marquee 32s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 38s; }
.marquee span { font-size: clamp(1.2rem, 3.2vw, 2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee-back span { font-weight: 300; }
.marquee i { font-style: normal; opacity: .7; }
.marquee-back i { color: var(--gold); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 96px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin: 0 auto clamp(32px, 4.5vw, 48px); }
/* Rótulo de presentación: anclado a la izquierda, entra desde la izquierda y debajo se dibuja un separador */
.eyebrow {
  position: relative; display: block; width: fit-content; margin: 0 0 26px; padding-bottom: 16px;
  font-size: clamp(1.35rem, 3.6vw, 2.1rem); font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: #fff; text-align: left; text-shadow: 0 0 28px rgba(255, 255, 255, .25);
  opacity: 0; transform: translateX(-45vw); filter: blur(6px);
  transition: transform 1.2s var(--ease-out), opacity .9s var(--ease-out), filter 1s var(--ease-out);
}
.eyebrow::after {
  content: ""; position: absolute; left: 0; right: .32em; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease-out) .7s;
}
/* Cuándo y Lugar tienen otro ancho de contenedor: el rótulo se alinea con el de las secciones comunes */
.bigdate .eyebrow, .venue .eyebrow { margin-left: max(0px, calc((100% - (1180px - 2 * var(--gutter))) / 2)); }
.is-visible .eyebrow { opacity: 1; transform: none; filter: none; }
.is-visible .eyebrow::after { transform: scaleX(1); }
.section-title { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.section-head .muted { margin: 14px 0 0; }
.section-head > :not(.eyebrow) { max-width: 640px; margin-left: auto; margin-right: auto; }

.intro { text-align: center; padding-bottom: 0; }
.intro-text {
  max-width: 820px; margin: 0 auto; font-size: clamp(1.4rem, 4.2vw, 2.4rem); font-weight: 300; line-height: 1.35;
}
.intro-text em { font-style: normal; font-weight: 700; color: var(--gold-light); }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-3d {
  opacity: 0; transform: perspective(1400px) translateY(110px) rotateX(-22deg) scale(.92); transform-origin: 50% 0;
  transition: opacity 1.1s var(--ease-out), transform 1.4s var(--ease-out);
}
.reveal-3d.is-visible { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .12em; margin: -.1em 0 -.12em; }
.split .c { display: inline-block; transform: translateY(115%) rotate(14deg); transform-origin: 0 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--ci, 0) * 32ms + 120ms); }
.split.is-visible .c { transform: none; }

.intro-text .word { display: inline-block; opacity: .12; transition: opacity .5s, color .5s; }
.intro-text .word.lit { opacity: 1; }

/* ---------- La noche (bento) ---------- */
.bento {
  display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto);
  grid-template-areas: "a a d e" "a a d f" "a a d g";
}
.bento.has-middle { grid-template-areas: "a a b b" "a a c d" "e f g d"; }
.tile {
  position: relative; overflow: hidden; border-radius: 28px; padding: 24px; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--border); text-decoration: none;
  opacity: 0; transform: perspective(1000px) translateY(70px) rotateX(-25deg) scale(.9);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), border-color .4s, box-shadow .4s;
  transition-delay: calc(var(--ti, 0) * 90ms);
}
.bento.is-visible .tile { opacity: 1; transform: none; }
.bento.is-visible .tile:hover {
  transform: translateY(-6px) scale(1.015); transition-delay: 0s;
  border-color: rgba(212, 175, 55, .5); box-shadow: 0 24px 60px rgba(212, 175, 55, .25);
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 50%);
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile-time {
  display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .15);
}
.tile h3 { margin: 0; font-size: clamp(1.05rem, 9cqi, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tile p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.tile-emoji { font-size: 2.6rem; line-height: 1; display: inline-block; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--ti, 0) * -.4s); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.tile-kicker { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.tile-arrow { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); transition: transform .4s var(--ease-back), background .3s; }
.tile:hover .tile-arrow { transform: rotate(-45deg); background: var(--gold); color: var(--on-gold); border-color: transparent; }

/* Tarjeta principal: degradé vivo y hora gigante */
.tile-hero {
  grid-area: a; border: 0; color: var(--on-gold);
  background: #c9a24a; isolation: isolate;
}
.tile-hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 200%; height: 200%; pointer-events: none;
  background: linear-gradient(135deg, #9a7328, #e8c766 22%, #f3d98b 30%, #b8923f 50%, #e8c766 72%, #9a7328);
  animation: gradient-pan 10s ease-in-out infinite;
}
.tile-hero p { color: rgba(23, 19, 11, .78); font-size: 1.05rem; }
.tile-hero .tile-time { background: rgba(23, 19, 11, .12); border-color: rgba(23, 19, 11, .2); }
.tile-hero h3 { font-size: clamp(2rem, 9cqi, 3.2rem); }
.tile-hero .tile-big {
  position: absolute; right: -10px; bottom: -40px; font-size: clamp(7rem, 16vw, 12rem); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: rgba(23, 19, 11, .08); pointer-events: none;
}
.tile-hero .tile-emoji { font-size: 3.4rem; }
@keyframes gradient-pan { 50% { transform: translate(-50%, -50%); } }

.tile[data-area="b"] { grid-area: b; }
.tile[data-area="c"] { grid-area: c; }
/* Tarjeta de baile: luces de pista */
.tile-dance { grid-area: d; background: #100e0a; justify-content: flex-end; }
.tile-dance .lights { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tile-dance .lights i {
  position: absolute; top: -40%; left: 50%; width: 60%; height: 150%; transform-origin: 50% 0; opacity: .5; filter: blur(14px);
  background: linear-gradient(180deg, var(--c), transparent 70%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  animation: sweep 4s ease-in-out infinite alternate;
}
.tile-dance .lights i:nth-child(1) { --c: var(--gold); }
.tile-dance .lights i:nth-child(2) { --c: var(--gold-soft); animation-delay: -1.3s; animation-duration: 5s; }
.tile-dance .lights i:nth-child(3) { --c: var(--gold-light); animation-delay: -2.6s; animation-duration: 3.5s; }
@keyframes sweep { from { transform: translateX(-50%) rotate(-35deg); } to { transform: translateX(-50%) rotate(35deg); } }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.eq i { flex: 1; height: 100%; border-radius: 4px; background: var(--brand-gradient); transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-duration: .8s; }
.eq i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.3s; }
.eq i:nth-child(4n) { animation-delay: -.6s; }

.tile-stat { grid-area: e; justify-content: center; text-align: center; align-items: center; }
.tile-stat .stat { font-size: clamp(3.4rem, 7vw, 5rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.tile-stat .stat small { font-size: .35em; letter-spacing: 0; color: var(--gold-light); margin-left: 4px; }
.tile-venue { grid-area: f; }
.tile-dress { grid-area: g; }
.tile-venue, .tile-dress { padding-right: 70px; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(18, 16, 12, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(20px) scale(.6); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-back);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.to-top svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.to-top-track { stroke: rgba(255, 255, 255, .12); stroke-width: 2.5; }
.to-top-ring { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 125.7; stroke-dashoffset: calc(125.7 * (1 - var(--p, 0))); transform: rotate(-90deg); transform-origin: center; }
.to-top path { stroke: #fff; stroke-width: 2.4; transition: transform .3s var(--ease-back); }
.to-top:hover path { transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  border: 1px solid var(--border);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, .14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; }
.card p { margin: 0; }
.cal-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Cuándo (fecha gigante) ---------- */
.bigdate { position: relative; padding: clamp(72px, 10vw, 120px) var(--gutter); overflow: hidden; }
.bigdate-rows {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none;
}
.bigdate-row {
  white-space: nowrap; font-size: clamp(5rem, 17vw, 15rem); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  color: rgba(255, 255, 255, .05); will-change: transform;
}
.bigdate-row.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(212, 175, 55, .4); }
.when {
  position: relative; max-width: 920px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 5vw, 56px); border-radius: 36px;
  background: var(--border); overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}
.when::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: conic-gradient(var(--gold-deep), var(--gold), var(--gold-light), transparent 60%, var(--gold-deep));
  animation: spin 6s linear infinite;
}
.when::after {
  content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: 34.5px; pointer-events: none;
  background: linear-gradient(150deg, #17140f, #0c0b08);
}
.when-day { display: flex; flex-direction: column; align-items: center; }
.when-num {
  font-size: clamp(6.5rem, 20vw, 12rem); font-weight: 800; line-height: .82; letter-spacing: -.06em;
  background: linear-gradient(170deg, #fff 10%, var(--champagne) 40%, var(--gold) 75%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(212, 175, 55, .35));
}
.when-month { margin-top: 10px; font-size: .9rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-light); padding-left: .5em; }
.when-title { margin: 4px 0 6px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.when-time { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: var(--muted); font-weight: 300; }
.when-time strong { color: var(--text); font-weight: 700; }
.when.is-visible .when-num { animation: num-pop 1.4s var(--ease-back) .3s both; }
@keyframes num-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }

/* ---------- Lugar ---------- */
.venue { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter); }
.venue-head { position: relative; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.venue-name {
  margin: 6px 0 14px; font-size: clamp(3.4rem, 13vw, 9.5rem); font-weight: 800; line-height: .95; letter-spacing: -.05em;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, .55));
}
.venue-address { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: left; margin: 0; font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--muted); }
.venue-address svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; animation: pin-bounce 2s var(--ease-out) infinite; }
@keyframes pin-bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px); } }
.venue-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.venue-grid > *, .playlist-grid > * { min-width: 0; }
.map-frame {
  position: relative; border-radius: 26px; overflow: hidden; height: clamp(320px, 40vw, 470px);
  background: var(--bg-2); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(212, 175, 55, .15);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(200deg) saturate(.8) brightness(.95); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.venue-actions .btn-lg { width: auto; flex: 1 1 100%; }
.venue-actions .btn-ghost { flex: 1 1 140px; }

/* ---------- Carrusel ---------- */
.carousel { position: relative; --slide-w: clamp(230px, 27vw, 320px); }
.carousel-viewport {
  display: flex; gap: clamp(14px, 2vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 24px calc(50% - var(--slide-w) / 2) 30px; scrollbar-width: none; perspective: 1400px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 var(--slide-w); margin: 0; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden;
  scroll-snap-align: center; cursor: zoom-in; background: var(--bg-2);
  transform: rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); opacity: var(--op, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .5);
  transition: box-shadow .4s;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s ease-out; }
.slide.is-active img { transform: scale(1.18); }
.slide.is-active { box-shadow: 0 30px 80px rgba(212, 175, 55, .35), 0 0 0 2px rgba(255, 255, 255, .15); }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 18px; font-weight: 600; font-size: 1rem;
  background: linear-gradient(transparent, rgba(8, 7, 5, .85));
  transform: translateY(30%); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s;
}
.slide.is-active figcaption { transform: none; opacity: 1; }
.slide figcaption small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.slide.placeholder { cursor: default; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(243, 217, 139, .35), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(212, 175, 55, .45), transparent 55%),
    linear-gradient(160deg, #2a2214, #12100c);
}
.slide.placeholder svg { width: 22px; height: 120px; margin: 0 auto 18px; color: rgba(255, 255, 255, .85); animation: float 4s ease-in-out infinite; }
.slide.placeholder b { display: block; font-size: 1.2rem; }
/* Tarjeta ilustrada de la galería de dresscode */
.slide.illustrated { cursor: default; display: grid; place-items: center; background: linear-gradient(160deg, #1a1711, #0b0a08); border: 1px solid var(--border); }
.slide.illustrated > div { display: grid; place-items: center; padding-bottom: 30%; }
.slide.illustrated svg {
  width: 48%; height: auto; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, .35));
}
.slide.illustrated path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.slide.illustrated.is-active path { stroke-dashoffset: 0; }
[data-theme="light"] .slide.illustrated { background: linear-gradient(160deg, #fff, #f4ecdb); }
[data-theme="light"] .slide.illustrated svg { filter: none; }
.slide.placeholder span { color: var(--muted); font-size: .9rem; }
@keyframes float { 50% { transform: translateY(-10px); } }
.venue-carousel { --slide-w: min(78%, 420px); }
.venue-carousel .slide { aspect-ratio: 4 / 5; }

.carousel-btn {
  position: absolute; top: calc(50% - 22px); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(18, 16, 12, .92); cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem; transition: transform .3s var(--ease-back), background .3s;
}
.carousel-btn:hover { transform: scale(1.12); background: var(--gold); color: var(--on-gold); }
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.carousel-dots button {
  position: relative; width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, .22); transition: width .5s var(--ease-out);
}
.carousel-dots button.is-active { width: 38px; }
.carousel-dots button.is-active::after {
  content: ""; position: absolute; inset: 0; background: var(--brand-gradient); transform-origin: 0 50%;
  animation: dot-fill var(--interval, 4s) linear forwards;
}
.carousel.is-paused .carousel-dots button.is-active::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 60px 16px;
  background: rgba(8, 7, 5, .92); backdrop-filter: blur(14px); animation: fade-in .35s ease-out;
}
.lightbox figure { margin: 0; max-width: min(92vw, 720px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); border-radius: 18px; object-fit: contain; animation: zoom-in .5s var(--ease-out); }
.lightbox figcaption { font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08); cursor: pointer; font-size: 1.4rem; display: grid; place-items: center;
}
.lightbox-close { top: 16px; right: 16px; font-size: 1rem; }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { transform: scale(.85); opacity: 0; } }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  transition: transform .3s var(--ease-back), background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-strong); border-color: rgba(255, 255, 255, .3); }
.btn-primary {
  border: 0; color: var(--on-gold); background: var(--brand-gradient); background-size: 160% 100%;
  box-shadow: 0 12px 34px rgba(212, 175, 55, .35); overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: sheen 3.5s ease-in-out infinite;
}
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.btn-primary:hover { background-position: 100% 0; background: var(--brand-gradient); box-shadow: 0 16px 44px rgba(212, 175, 55, .5); }
.btn-lg { padding: 16px 30px; font-size: 1rem; width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--champagne); text-decoration: underline; cursor: pointer; font-size: .9rem; margin-top: 14px; }

/* ---------- Dresscode: galería + preguntas frecuentes ---------- */
.dress-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.dress-grid .dress-gallery { position: sticky; top: 90px; min-width: 0; }
.dress-grid .dress-carousel { container-type: inline-size; --slide-w: min(76cqi, 440px); }
.dress-gallery .credit { margin: 10px 0 0; text-align: center; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(247, 242, 232, .38); }
[data-theme="light"] .dress-gallery .credit { color: rgba(23, 19, 11, .45); }
.faq {
  padding: clamp(22px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #15130f, #0b0a08);
}
.faq-title { margin: 0 0 10px; font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 15px 34px 15px 0; font-weight: 600; font-size: 1rem; line-height: 1.35;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg); transition: transform .35s var(--ease-out), margin .35s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--gold-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.6; animation: faq-in .4s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq.reveal .faq-item { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i) * 50ms); }
.faq.reveal.is-visible .faq-item { opacity: 1; transform: none; }
[data-theme="light"] .faq { background: linear-gradient(160deg, #fff, #fbf6ea); box-shadow: 0 14px 40px rgba(46, 36, 16, .08); }
@media (max-width: 960px) {
  .dress-grid { grid-template-columns: 1fr; }
  .dress-grid .dress-gallery { position: static; }
  .dress-grid .dress-carousel { --slide-w: clamp(230px, 62vw, 320px); }
}

/* ---------- Confirmación ---------- */
.rsvp-card {
  position: relative; max-width: 680px; margin: 0 auto; padding: clamp(40px, 7vw, 64px) clamp(22px, 5vw, 56px);
  border-radius: 36px; background: rgba(24, 21, 16, .75); border: 1px solid var(--border); overflow: hidden;
  text-align: center;
}
.rsvp-glow {
  position: absolute; width: 380px; height: 380px; top: -180px; right: -140px; border-radius: 50%;
  background: var(--gold); filter: blur(100px); opacity: .35; pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.rsvp-icon svg { width: 76px; height: 76px; margin: 0 auto 20px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-icon circle { stroke: var(--gold); stroke-dasharray: 152; stroke-dashoffset: 152; }
.rsvp-icon path { stroke: var(--gold-light); stroke-dasharray: 40; stroke-dashoffset: 40; }
.rsvp-card.is-visible .rsvp-icon circle { animation: draw 1s var(--ease-out) .4s forwards; }
.rsvp-card.is-visible .rsvp-icon path { animation: draw .6s var(--ease-out) 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rsvp-text { position: relative; margin: 18px auto 6px; max-width: 460px; font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 300; }
.rsvp-card .muted { position: relative; margin: 0 0 28px; }
.rsvp-card .btn-lg { position: relative; width: auto; padding: 18px 38px; font-size: 1.05rem; }
.rsvp-card .btn-lg[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.form-error { margin: 0; min-height: 1.2em; color: #ff9a9a; font-size: .85rem; text-align: center; }
.search input {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Playlist ---------- */
.playlist-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.playlist-card { display: grid; gap: 22px; justify-items: center; text-align: center; overflow: hidden; }
.vinyl {
  position: relative; width: min(220px, 60vw); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, .05) 30.5% 31%, transparent 31.5% 40%, rgba(255, 255, 255, .05) 40.5% 41%, transparent 41.5% 52%, rgba(255, 255, 255, .05) 52.5% 53%, transparent 53.5% 64%, rgba(255, 255, 255, .05) 64.5% 65%, transparent 65.5%),
    conic-gradient(from 30deg, #0a0908, #1e1b15, #0a0908, #1e1b15, #0a0908);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .04);
  animation: spin 6s linear infinite;
  display: grid; place-items: center;
}
.vinyl-label { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; }
.vinyl-label svg { width: 70%; aspect-ratio: 1023 / 180; color: var(--on-gold); }
@keyframes spin { to { transform: rotate(360deg); } }
#spotify-slot { width: 100%; }
#spotify-slot iframe { width: 100%; height: 352px; border: 0; border-radius: 16px; }
.spotify-soon { padding: 18px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--muted); font-size: .95rem; }

.songs-card { z-index: 5; }
.songs-card h3 { margin-bottom: 4px; }
.songs-intro { margin: 0 0 18px !important; }
.search { position: relative; }
.search > svg { position: absolute; left: 16px; top: 25px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { padding-left: 46px; padding-right: 46px; }
.search-spinner {
  position: absolute; right: 16px; top: 25px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--gold); opacity: 0; transition: opacity .2s;
  animation: spin .7s linear infinite;
}
.search.is-loading .search-spinner { opacity: 1; }
.song-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; margin: 0; padding: 6px;
  list-style: none; display: grid; gap: 2px; max-height: min(420px, 60vh); overflow-y: auto;
  background: #17150f; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6); transform-origin: top; animation: drop-in .25s var(--ease-out);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.song-results .song { background: transparent; cursor: pointer; animation-duration: .3s; }
.song-results .song.is-active { background: rgba(212, 175, 55, .16); border-color: rgba(212, 175, 55, .45); }
.song-results mark { background: none; color: var(--gold-light); }
.song-results .song-empty { padding: 14px; text-align: center; }
.badge {
  font-style: normal;
  display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600;
  background: rgba(243, 217, 139, .14); color: var(--gold-light); border: 1px solid rgba(243, 217, 139, .3);
}
.badge.ok { background: rgba(154, 115, 40, .25); color: var(--champagne); border-color: rgba(233, 220, 192, .35); }
.song-toast { margin: 12px 0 0; min-height: 1.3em; font-size: .9rem; font-weight: 600; text-align: center; transition: opacity .3s; }
.song-toast.is-error { color: #ff9a9a; }
.song-toast.is-ok { color: var(--champagne); }
.song-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.song {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid transparent;
  animation: fade-up .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.song:hover { border-color: var(--border); }
.song img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.song-meta { min-width: 0; }
.song-meta b, .song-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta b { font-size: .92rem; font-weight: 600; }
.song-meta span { font-size: .8rem; color: var(--muted); }
.song-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: .95rem; transition: transform .25s var(--ease-back), background .25s;
}
.icon-btn:hover { transform: scale(1.1); background: var(--surface-strong); }
.icon-btn.add { background: var(--brand-gradient); color: var(--on-gold); border: 0; }
.icon-btn.is-playing { background: var(--gold-light); border: 0; }
.songs-sub { margin: 22px 0 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.song-empty { color: var(--muted); font-size: .9rem; padding: 8px 4px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; text-align: center; padding: 70px var(--gutter) 90px; border-top: 1px solid var(--border); }
.footer-logo { width: 160px; aspect-ratio: 1023 / 180; margin: 0 auto 18px; color: #fff; opacity: .9; }
.footer p { margin: 4px 0; }

/* ---------- Tilt ---------- */
.tilt { transition: transform .5s var(--ease-out), opacity 1s var(--ease-out); }
.magnetic { transition: transform .35s var(--ease-out), background .3s, border-color .3s, box-shadow .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .playlist-grid, .venue-grid { grid-template-columns: 1fr; }
  .carousel-btn { display: none; }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "d e" "d f" "g g"; }
  .bento.has-middle { grid-template-areas: "a a" "b b" "c d" "e d" "f g"; }
}
@media (max-width: 520px) {
  .bento, .bento.has-middle { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; grid-auto-rows: auto; }
  .tile-hero { min-height: 300px; }
  .tile-dance { min-height: 260px; }
}
@media (max-width: 700px) {
  .when { grid-template-columns: 1fr; text-align: center; }
  .when .cal-buttons { justify-content: center; }
}
@media (max-width: 420px) {
  .countdown { gap: 6px; }
  .cd-box { border-radius: 14px; }
  .choice-row { grid-template-columns: 1fr; }
}

/* ---------- Rendimiento ---------- */
/* Secciones fuera de pantalla: animaciones infinitas en pausa */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* Modo liviano (equipos modestos, ahorro de datos o pocos cuadros por segundo) */
.lite *, .lite *::before, .lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .pill { background: rgba(24, 21, 16, .85); }
.lite .card { background: linear-gradient(160deg, rgba(36, 31, 22, .92), rgba(24, 21, 16, .88)); }
.lite .rsvp-glow { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================
   Modo claro
   ========================================================== */
[data-theme="light"] {
  --bg: #faf6ec;
  --bg-2: #f1e8d4;
  --surface: rgba(46, 36, 16, .05);
  --surface-strong: rgba(46, 36, 16, .09);
  --border: rgba(46, 36, 16, .13);
  --text: #17130b;
  --muted: rgba(23, 19, 11, .66);
  --champagne: #8a6a2f;
  --gold: #b8902f;
  --gold-light: #a57c2c;
  color-scheme: light;
}
/* Zonas que siguen oscuras en ambos temas (sobre de entrada, pista de baile, visor de fotos) */
[data-theme="light"] #entry, [data-theme="light"] .tile-dance, [data-theme="light"] .lightbox,
[data-theme="light"] .slide.placeholder {
  --text: #f7f2e8; --muted: rgba(247, 242, 232, .68); --border: rgba(233, 220, 192, .14); --champagne: #e9dcc0; --gold: #d4af37; --gold-light: #f3d98b;
  --surface: rgba(255, 255, 255, .06); color: var(--text);
}
[data-theme="light"] #network { opacity: .8; }

/* Botones flotantes y menú */
[data-theme="light"] .menu-toggle, [data-theme="light"] .theme-toggle, [data-theme="light"] .music-toggle,
[data-theme="light"] .to-top, [data-theme="light"] .carousel-btn {
  background: rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(46, 36, 16, .12);
}
[data-theme="light"] .menu-toggle span:not(:nth-child(2)), [data-theme="light"] .music-toggle::after { background: var(--text); }
[data-theme="light"] .to-top-track { stroke: rgba(46, 36, 16, .12); }
[data-theme="light"] .to-top path { stroke: var(--text); }
[data-theme="light"] .menu-backdrop { background: rgba(23, 19, 11, .28); }
[data-theme="light"] .menu-panel { background: linear-gradient(165deg, #fff, #f4ecdb 60%); box-shadow: -30px 0 80px rgba(46, 36, 16, .18); }

/* Hero y textos */
[data-theme="light"] .hero-logo, [data-theme="light"] .footer-logo { color: var(--text); }
[data-theme="light"] .cd-box { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); box-shadow: 0 10px 30px rgba(46, 36, 16, .08); }
[data-theme="light"] .scroll-hint { border-color: rgba(23, 19, 11, .3); }
[data-theme="light"] .eyebrow { color: var(--text); text-shadow: none; }
[data-theme="light"] .marquee-back { background: #15130f; color: #f7f2e8; }
[data-theme="light"] .bigdate-row { color: rgba(23, 19, 11, .05); }

/* Tarjetas */
[data-theme="light"] .pill { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .tile, [data-theme="light"] .card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6)); box-shadow: 0 14px 40px rgba(46, 36, 16, .08);
}
[data-theme="light"] .tile::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 115, 40, .08), transparent 50%); }
[data-theme="light"] .tile-time { background: rgba(46, 36, 16, .06); border-color: rgba(46, 36, 16, .12); }
[data-theme="light"] .tile-hero {
  box-shadow: 0 20px 50px rgba(154, 115, 40, .25);
  background: #c9a24a;
}
[data-theme="light"] .tile-hero .tile-time { background: rgba(23, 19, 11, .12); border-color: rgba(23, 19, 11, .2); }
[data-theme="light"] .tile-dance { background: #100e0a; }
[data-theme="light"] .rsvp-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .75)); box-shadow: 0 30px 80px rgba(46, 36, 16, .12);
}
[data-theme="light"] .when { box-shadow: 0 30px 80px rgba(46, 36, 16, .12); }
[data-theme="light"] .when::after { background: linear-gradient(150deg, #fff, #fbf6ea); }
[data-theme="light"] .when-num { background: linear-gradient(170deg, var(--gold-deep) 10%, var(--gold) 60%, var(--gold-light)); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .slide.is-active { box-shadow: 0 30px 80px rgba(212, 175, 55, .25), 0 0 0 2px rgba(255, 255, 255, .9); }
[data-theme="light"] .btn:hover { border-color: rgba(46, 36, 16, .3); }

/* Playlist */
[data-theme="light"] .search input { background: #fff; }
[data-theme="light"] .song-results { background: #fff; border-color: rgba(46, 36, 16, .14); box-shadow: 0 20px 50px rgba(46, 36, 16, .15); }
[data-theme="light"] .spotify-soon { border-color: rgba(46, 36, 16, .25); }

/* Modo liviano en claro */
[data-theme="light"].lite .pill { background: rgba(255, 255, 255, .92); }
[data-theme="light"].lite .card { background: #fff; }
[data-theme="light"] .carousel-dots button { background: rgba(46, 36, 16, .18); }
[data-theme="light"] .slide.illustrated figcaption { background: none; color: var(--text); }
[data-theme="light"] .slide figcaption { color: #f7f2e8; }
