/* ═══════════════════════════════════════════════════════════
   SUJEY & RAMÓN · 10.10.2026
   Sistema visual black-tie — negro, hueso, verde olivo.
   Paleta muestreada de la papelería impresa.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:        #0B0B0C;
  --surface:    #141416;
  --surface-2:  #1C1C1F;
  --bone:       #F0EDE6;
  --bone-soft:  #E2E0D9;
  --bone-dim:   rgba(240, 237, 230, .62);
  --bone-faint: rgba(240, 237, 230, .38);
  --olive:      #696F3C;
  --olive-lit:  #8A9152;
  --silver:     #C9CBCD;
  --candle:     #E8B76A;
  --hairline:   rgba(240, 237, 230, .16);

  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --ui:      'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script:  'Cormorant Garamond', Georgia, serif;

  --pad-sec: clamp(72px, 12vw, 132px);
  --pad-x:   clamp(20px, 5vw, 40px);
  --wrap:    1080px;
  --wrap-txt: 660px;

  /* Alias de compatibilidad: fotos.css hereda estos nombres del sitio base */
  --cream:     var(--surface);
  --gold:      var(--olive-lit);
  --gold-dark: var(--olive);
  --text-dark: var(--bone);
  --text-gray: var(--bone-dim);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ui);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--olive-lit); text-decoration: none; }

/* Textura de papel/lino, muy sutil, sobre todo el documento */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Tipografía ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}

.kicker {
  font-family: var(--ui);
  font-weight: 200;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0 0 18px;
}

.section-title {
  font-size: clamp(28px, 6.5vw, 46px);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-note {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--bone-dim);
  margin: 0;
}

section {
  position: relative;
  z-index: 2;
  padding: var(--pad-sec) var(--pad-x);
}

section.alt { background: var(--surface); }

.wrap     { max-width: var(--wrap); margin: 0 auto; }
.wrap-txt { max-width: var(--wrap-txt); margin: 0 auto; }
.center   { text-align: center; }

/* ── Filete + rombo (separador del manual de marca) ────── */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  max-width: 260px;
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.rule i {
  width: 5px;
  height: 5px;
  background: var(--bone-faint);
  transform: rotate(45deg);
  display: block;
}
.rule.olive i { background: rgba(11, 11, 12, .55); }
.rule.olive::before, .rule.olive::after { background: rgba(11, 11, 12, .28); }

/* Monograma reutilizable — teñible con currentColor vía máscara */
.mono {
  display: block;
  margin: 0 auto;
  width: 54px;
  aspect-ratio: 552 / 687;
  background: currentColor;
  -webkit-mask: url('img/monograma-mask.png') center / contain no-repeat;
          mask: url('img/monograma-mask.png') center / contain no-repeat;
}
.mono.sm { width: 30px; }
.mono.lg { width: 96px; }

/* ── Botones ───────────────────────────────────────────── */
.btn-olive,
.btn-outline {
  display: inline-block;
  border: 1px solid var(--bone-faint);
  background: transparent;
  color: var(--bone);
  font-family: var(--ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 15px 34px;
  transition: background .45s ease, color .45s ease, border-color .45s ease;
}
.btn-olive { border-color: var(--olive-lit); }

@media (hover: hover) and (pointer: fine) {
  .btn-olive:hover  { background: var(--olive); border-color: var(--olive); color: var(--bone); }
  .btn-outline:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
}
.btn-olive:disabled, .btn-outline:disabled { opacity: .45; cursor: default; }

/* ── Formularios ───────────────────────────────────────── */
input[type=text], input[type=tel], textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--bone);
  font-size: 16px;
  font-weight: 300;
  padding: 12px 2px;
  margin-bottom: 18px;
  transition: border-color .3s ease;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--olive-lit); }
input::placeholder, textarea::placeholder { color: var(--bone-faint); }
textarea { resize: vertical; }

.form-msg {
  font-size: 14px;
  margin: 14px 0 0;
  color: var(--olive-lit);
}
.form-msg.error { color: #C98A7A; }

/* ═══════════════════════════════════════════════════════
   SOBRE + SELLO DE CERA (splash)
   ═══════════════════════════════════════════════════════ */
.envelope-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px;
}
.envelope-splash.opened { pointer-events: none; }

/* Partículas de fondo (el JS les pone left/duration/delay) */
.envelope-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.envelope-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--candle);
  opacity: 0;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Resplandor de vela — el JS lo anima con translate(-50%,-50%) */
.envelope-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 183, 106, .2) 0%, rgba(232, 183, 106, 0) 68%);
  opacity: 0;
  pointer-events: none;
}

.envelope-container {
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.envelope {
  position: relative;
  width: min(330px, 84vw);
  aspect-ratio: 3 / 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s ease;
}

.envelope-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #24242B 0%, #17171B 62%);
  border: 1px solid rgba(240, 237, 230, .16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
  overflow: visible;   /* la carta sale deslizándose al abrir */
}

/* Solapa: triángulo por bordes, nunca clip-path animado */
.envelope-flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-left: calc(min(330px, 84vw) / 2) solid transparent;
  border-right: calc(min(330px, 84vw) / 2) solid transparent;
  border-top: calc(min(330px, 84vw) / 3) solid #2C2C34;
  transform-origin: top center;
  backface-visibility: hidden;
  will-change: transform;
  z-index: 4;
}

.envelope-letter {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 13%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bone);
  color: var(--ink);
  z-index: 2;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.envelope-letter > * {
  opacity: 0;
  transition: opacity .5s ease .6s;
}
.envelope.opened .envelope-letter > * { opacity: 1; }

.envelope-letter-from {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(11, 11, 12, .5);
  margin: 0;
}
.envelope-letter-names {
  font-family: var(--display);
  font-size: clamp(17px, 5vw, 22px);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 8px 0 0;
}
.envelope-letter-rule {
  width: 46px;
  height: 1px;
  background: rgba(11, 11, 12, .3);
  margin: 10px auto;
}
.envelope-letter-date {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(11, 11, 12, .66);
  margin: 0;
}

/* Bolsillo: tapa la parte baja para que la carta parezca salir de adentro */
.envelope-pocket {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, #1F1F26 0%, #141419 100%);
  border-top: 1px solid rgba(240, 237, 230, .18);
  z-index: 3;
}

/* Sello de cera — el JS lo anima con translate(-50%,-50%) */
.envelope-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #7C844A, var(--olive) 58%, #4A4F2C 100%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .55);
  z-index: 5;
  display: grid;
  place-items: center;
  color: rgba(11, 11, 12, .6);
}
.envelope-seal .mono { width: 30px; margin: 0; }

/* Chispas de cera — el JS les pone --dx/--dy */
.envelope-sparkles {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 6;
}
.envelope-sparkles span {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--olive-lit);
  opacity: 0;
}
.envelope.opened .envelope-sparkles span { animation: waxBurst 1.4s ease-out forwards; }

@keyframes waxBurst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -120px)) scale(.4); }
}

.envelope-open-btn {
  background: transparent;
  border: 1px solid var(--olive-lit);
  color: var(--bone);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 14px 30px;
  transition: background .45s ease;
}
.envelope-hint {
  font-family: var(--ui);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-align: center;
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .envelope:hover { transform: translateY(-4px); }
  .envelope-open-btn:hover { background: var(--olive); }
}

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  width: 46px;
  height: 46px;
  background: rgba(11, 11, 12, .62);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 13px 12px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bone);
  transition: transform .3s ease, opacity .3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(11, 11, 12, .7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  z-index: 115;
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  padding: 92px 34px 34px;
  overflow-y: auto;
}
body.nav-open .nav-menu { transform: translateX(0); }

.nav-menu a {
  display: block;
  color: var(--bone);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color .3s ease, padding-left .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-menu a:hover { color: var(--olive-lit); padding-left: 8px; }
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px var(--pad-x) 72px;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: -6% 0;
  background: var(--ink) url('img/hero-bg.jpg') center / cover no-repeat;
  opacity: .72;
  z-index: 0;
  will-change: transform;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(11, 11, 12, .12) 0%, rgba(11, 11, 12, .74) 78%),
    linear-gradient(to bottom, rgba(11, 11, 12, .42), rgba(11, 11, 12, .12) 42%, var(--ink) 100%);
}
.hero-kicker,
.hero-lockup,
.hero-phrase,
#live-banner { position: relative; z-index: 3; }

.hero-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 183, 106, .12) 0%, rgba(232, 183, 106, 0) 66%);
}

.hero-kicker {
  font-weight: 200;
  font-size: clamp(10px, 2.8vw, 12px);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 34px;
}

.hero-lockup {
  width: min(340px, 74vw);
  margin: 0 auto;
}

.hero-phrase {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 3.8vw, 19px);
  color: var(--bone-dim);
  margin: 30px auto 0;
  max-width: 30ch;
  min-height: 1.7em;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  font-size: 9px;
  font-weight: 200;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.scroll-cue i { display: block; width: 1px; height: 54px; background: linear-gradient(var(--bone-faint), transparent); }

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.live-banner {
  margin-top: 30px;
  border: 1px solid var(--olive-lit);
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive-lit);
}

/* ═══════════════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════════════ */
.countdown-blocks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 6vw, 54px);
  margin-top: 40px;
}
.cd-block { min-width: 62px; }
.cd-num {
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.cd-label {
  font-size: 10px;
  font-weight: 200;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════
   ITINERARIO
   ═══════════════════════════════════════════════════════ */
.timeline {
  max-width: 560px;
  margin: 52px auto 0;
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 24px;
  opacity: 0;
  transform: translateY(14px);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--bone-faint);
  transform: rotate(45deg);
}
.tl-time {
  font-family: var(--display);
  font-size: clamp(19px, 5vw, 24px);
  letter-spacing: .04em;
}
.tl-name {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 8px 0 4px;
}
.tl-place { font-size: 15px; color: var(--bone-dim); margin: 0; }
.tl-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-lit);
  border-bottom: 1px solid var(--olive-lit);
  padding-bottom: 3px;
}

/* ═══════════════════════════════════════════════════════
   DETALLES — bloque olivo (réplica de la tarjeta impresa)
   ═══════════════════════════════════════════════════════ */
#detalles {
  background: var(--olive);
  color: var(--ink);
  padding: clamp(64px, 11vw, 104px) var(--pad-x);
}
.detalles-card {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(11, 11, 12, .38);
  padding: clamp(30px, 7vw, 48px) clamp(22px, 6vw, 40px);
  position: relative;
  text-align: center;
}
.detalles-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(11, 11, 12, .22);
  pointer-events: none;
}
.detalles-card h2 {
  font-size: clamp(26px, 6.5vw, 38px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.detalles-num {
  font-family: var(--display);
  font-size: clamp(52px, 15vw, 82px);
  line-height: 1.05;
  margin: 14px 0 2px;
  color: var(--ink);
}
.detalles-lugares {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(11, 11, 12, .78);
  margin: 0 0 30px;
}
.detalles-sub {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.detalles-nota {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: rgba(11, 11, 12, .8);
  margin: 10px auto 28px;
  max-width: 34ch;
  line-height: 1.6;
}
.detalles-sello {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #626A34 0%, #4C532A 62%, #3D4222 100%);
  border: 1px solid rgba(11, 11, 12, .3);
  display: grid;
  place-items: center;
  color: rgba(11, 11, 12, .55);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}
.detalles-sello .mono { width: 26px; }

/* ═══════════════════════════════════════════════════════
   UBICACIONES
   ═══════════════════════════════════════════════════════ */
.lugares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline);
  margin-top: 48px;
  border: 1px solid var(--hairline);
}
.lugar {
  background: var(--ink);
  padding: clamp(28px, 6vw, 44px);
  text-align: center;
}
section.alt .lugar { background: var(--surface); }
.lugar h3 {
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lugar-hora {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--olive-lit);
  margin: 0 0 18px;
}
.lugar-dir { color: var(--bone-dim); font-size: 15px; margin: 0 0 22px; }

.event-map {
  margin-top: 42px;
  height: 320px;
  border: 1px solid var(--hairline);
}
.event-map .leaflet-container { background: var(--surface-2); }
.event-map .leaflet-control-attribution {
  background: rgba(11, 11, 12, .7);
  color: var(--bone-faint);
  font-size: 10px;
}
.event-map .leaflet-control-attribution a { color: var(--bone-dim); }

/* ═══════════════════════════════════════════════════════
   GALERÍA
   ═══════════════════════════════════════════════════════ */
.carousel {
  position: relative;
  margin-top: 44px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  position: relative;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(11, 11, 12, .6) 100%);
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel-dot {
  width: 22px;
  height: 1px;
  background: var(--hairline);
  border: 0;
  padding: 8px 0;
  background-clip: content-box;
  transition: background-color .3s ease;
}
.carousel-dot.active { background-color: var(--olive-lit); }

/* ═══════════════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════════════ */
.rsvp-saludo {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--olive-lit);
  margin: 0 0 18px;
}
.rsvp-radios { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  border: 1px solid var(--hairline);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .3s ease;
}
.rsvp-radio-label input { position: absolute; opacity: 0; }
.rsvp-radio-custom {
  width: 12px;
  height: 12px;
  border: 1px solid var(--bone-faint);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: background .3s ease, border-color .3s ease;
}
.rsvp-radio-label input:checked ~ .rsvp-radio-custom { background: var(--olive-lit); border-color: var(--olive-lit); }
.rsvp-radio-label:has(input:checked) { border-color: var(--olive-lit); }

.rsvp-pases-label { font-size: 13px; color: var(--bone-dim); margin: 0 0 12px; }
.rsvp-pases-opts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.rsvp-pase-opt {
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--bone);
  font-family: var(--display);
  font-size: 18px;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.rsvp-pase-opt.active { background: var(--olive); border-color: var(--olive); }
.rsvp-acompanantes { margin-bottom: 6px; }
.rsvp-trivia-cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.rsvp-trivia-text { font-size: 14px; color: var(--bone-dim); margin: 0 0 14px; }

.rsvp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  border: 1px solid var(--olive-lit);
  background: rgba(11, 11, 12, .84);
  backdrop-filter: blur(8px);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 14px 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.rsvp-float.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ═══════════════════════════════════════════════════════
   TRIVIA
   ═══════════════════════════════════════════════════════ */
.trivia-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.trivia-progress i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--hairline);
  display: block;
}
.trivia-progress i.done { background: var(--olive-lit); }
.trivia-q {
  font-family: var(--display);
  font-size: clamp(20px, 5vw, 26px);
  margin: 0 0 26px;
  line-height: 1.35;
}
.trivia-options { display: flex; flex-direction: column; gap: 10px; }
.trivia-opt {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--bone);
  font-size: 15px;
  font-weight: 300;
  text-align: left;
  padding: 15px 18px;
  transition: border-color .3s ease, background .3s ease;
}
.trivia-opt.correct { border-color: var(--olive-lit); background: rgba(105, 111, 60, .22); }
.trivia-opt.incorrect { border-color: #8A4A3E; background: rgba(138, 74, 62, .18); }
.trivia-opt:disabled { cursor: default; }
.trivia-feedback {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--bone-dim);
  margin-top: 20px;
  min-height: 1.6em;
}
.trivia-result { text-align: center; }
.trivia-result-score {
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 64px);
  margin: 12px 0;
}
.trivia-result-msg { color: var(--bone-dim); margin: 0 0 24px; }
.trivia-scoreboard { margin-top: 26px; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sb-table td { padding: 10px 6px; border-bottom: 1px solid var(--hairline); }
.sb-pos { color: var(--bone-faint); width: 32px; }
.sb-score { text-align: right; font-family: var(--display); }
.sb-you { color: var(--olive-lit); }
.sb-subtitle { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); margin: 0 0 14px; }

/* ═══════════════════════════════════════════════════════
   FIRMAS
   ═══════════════════════════════════════════════════════ */
.firmas-wall {
  columns: 2 240px;
  column-gap: 18px;
  margin-top: 44px;
}
.firma-nota {
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
section.alt .firma-nota { background: var(--ink); }
.firma-msg-text {
  font-family: var(--script);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.firma-autor {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.firmas-loading { color: var(--bone-faint); font-size: 14px; text-align: center; }
.firma-colors { display: flex; gap: 12px; margin-bottom: 22px; }
.firma-color-opt {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, border-color .25s ease;
}
.firma-color-opt.active { border-color: var(--bone); transform: scale(1.14); }

/* ═══════════════════════════════════════════════════════
   PLAYLIST
   ═══════════════════════════════════════════════════════ */
.playlist-list { margin-top: 40px; }
.playlist-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.playlist-num { font-family: var(--display); font-size: 16px; color: var(--bone-faint); width: 26px; }
.playlist-info { flex: 1; min-width: 0; }
.playlist-cancion { font-size: 16px; }
.playlist-invitado { font-size: 12px; color: var(--bone-faint); letter-spacing: .1em; text-transform: uppercase; }
.playlist-link { color: var(--olive-lit); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.playlist-empty { color: var(--bone-faint); text-align: center; padding: 26px 0; }
.vote-btn {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--bone);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  transition: border-color .3s ease;
}
.vote-btn.voted { border-color: var(--olive-lit); color: var(--olive-lit); }
.vote-count { font-family: var(--display); }

/* ═══════════════════════════════════════════════════════
   MARCO / FOTOS
   ═══════════════════════════════════════════════════════ */
#marco-canvas {
  width: 100%;
  max-width: 400px;
  margin: 28px auto 0;
  display: none;
  border: 1px solid var(--hairline);
}
#marco-canvas.visible { display: block; }
.marco-hint { color: var(--bone-faint); font-size: 14px; }
.marco-hint.hidden { display: none; }
.marco-actions { display: none; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

#fotos { background: var(--surface); }
.qr-wrapper {
  display: inline-block;
  padding: 18px;
  background: var(--bone);
  margin: 34px 0 30px;
}
.fotos-count { font-size: 13px; color: var(--bone-faint); letter-spacing: .16em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════
   EXTRAS (tarjetas)
   ═══════════════════════════════════════════════════════ */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 48px;
}
.extra-card {
  background: var(--ink);
  border: 0;
  color: var(--bone);
  padding: clamp(30px, 6vw, 44px) 22px;
  text-align: center;
  transition: background .4s ease;
}
section.alt .extra-card { background: var(--surface); }
.extra-card h3 {
  font-size: 13px;
  font-family: var(--ui);
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: 16px 0 8px;
}
.extra-card p { font-size: 14px; color: var(--bone-dim); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .extra-card:hover { background: var(--surface-2); }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
#footer {
  text-align: center;
  padding: clamp(64px, 11vw, 104px) var(--pad-x);
  border-top: 1px solid var(--hairline);
}
.footer-lockup { width: min(240px, 62vw); margin: 0 auto 26px; }
.footer-gracias {
  font-family: var(--display);
  font-size: clamp(24px, 6vw, 34px);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-text { color: var(--bone-dim); max-width: 42ch; margin: 0 auto; font-size: 15px; }

/* ═══════════════════════════════════════════════════════
   MODALES
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(11, 11, 12, .86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(30px, 7vw, 46px);
  transform: translateY(14px);
  transition: transform .35s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box.wide { max-width: 620px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--bone-faint);
  font-size: 18px;
  line-height: 1;
  padding: 6px;
}
.modal-icon { text-align: center; margin-bottom: 18px; color: var(--olive-lit); }
.modal-title {
  font-size: clamp(21px, 5vw, 27px);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 24px;
}
.modal-text { color: var(--bone-dim); font-size: 15px; }
.modal-text strong { color: var(--bone); font-weight: 400; }

/* Datos bancarios — solo con token */
.regalo-datos {
  border: 1px solid var(--hairline);
  padding: 20px;
  margin-top: 20px;
  text-align: left;
}
.regalo-datos dt {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 14px;
}
.regalo-datos dt:first-child { margin-top: 0; }
.regalo-datos dd {
  margin: 4px 0 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.copy-btn {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--bone-faint);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 9px;
}
.regalo-lock {
  border: 1px solid var(--hairline);
  padding: 18px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--bone-dim);
}

/* Dress code */
.dress-swatches { display: flex; justify-content: center; gap: 12px; margin: 22px 0; }
.dress-swatch {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
}
.dress-swatch span {
  display: block;
  margin-top: 52px;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-align: center;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
}

/* ═══════════════════════════════════════════════════════
   KEYFRAMES (scope global — algunos móviles ignoran los
   declarados dentro de media queries)
   ═══════════════════════════════════════════════════════ */
@keyframes candleFlicker {
  0%, 100% { opacity: .10; }
  42%      { opacity: .17; }
  68%      { opacity: .08; }
}
@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0; }
  18%  { opacity: .55; }
  100% { transform: translateY(-120px); opacity: 0; }
}
@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

.hero-glow { animation: candleFlicker 5.5s ease-in-out infinite; }
.hero-particles b { animation: floatUp linear infinite; }
.envelope-seal { animation: sealPulse 2.8s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════
   MÓVIL
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { font-size: 16px; }

  /* GPU móvil: nada de sombras caras ni animaciones decorativas */
  .envelope-seal { animation: none; box-shadow: none; }
  .detalles-sello { box-shadow: none; }
  .hero-glow { animation: none; opacity: .1; }
  .firmas-wall { columns: 1; }
  .event-map { height: 240px; }
  .modal-box { max-height: 92vh; }
  .timeline { padding-left: 20px; }
  .timeline-item { padding-left: 18px; }
}

@media (max-width: 380px) {
  .countdown-blocks { gap: 16px; }
  .cd-block { min-width: 52px; }
}
