/* =====================================================
   FERNANDA & ARTURO — "MEMORIA VISUAL"
   Editorial cinematic wedding journal
   ===================================================== */

:root {
  --ink:        #3d0f1c;
  --ink-soft:   #521628;
  --ink-mid:    #6e2236;
  --paper:      #f7f3ec;
  --paper-dim:  #ece5d6;
  --paper-line: rgba(61,15,28,.10);
  --gold:       #b89a6c;
  --gold-soft:  rgba(184,154,108,.35);
  --blue-deep:  #6e1f33;
  --blue-mid:   #8c2c45;
  --text-mid:   #5c5a52;
  --text-light: #8d8a7e;
  --white:      #ffffff;
  --ease:       cubic-bezier(.22,1,.36,1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ink); }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--gold-soft); }

/* =====================================================
   TYPE SYSTEM
   ===================================================== */
.display {
  font-family: 'Italiana', serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
  line-height: 1.1;
}

.script {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

.kicker {
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.kicker .num { color: var(--gold); font-weight: 700; }
.kicker::before, .kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-soft);
}
.kicker.left { justify-content: flex-start; }
.kicker.left::after { display: none; }

/* =====================================================
   FILM GRAIN OVERLAY (fixed, subtle)
   ===================================================== */
#grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* =====================================================
   CINEMATIC LOADER / CURTAIN
   ===================================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader .curtain-l,
#loader .curtain-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: var(--ink);
}
#loader .curtain-l { left: 0; }
#loader .curtain-r { right: 0; }
.loader-mark {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper);
}
.loader-mark .script { font-size: 2.4rem; color: var(--gold); }
.loader-mark .kicker { margin-top: 10px; color: rgba(247,243,236,.5); }
.loader-mark .kicker::before, .loader-mark .kicker::after { background: rgba(184,154,108,.25); }

/* =====================================================
   ENTRY GATE
   ===================================================== */
#gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.gate-frame {
  position: relative;
  width: min(420px, 86vw);
  text-align: center;
  color: var(--paper);
}
.gate-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 32px;
}
.gate-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(.92) contrast(1.03);
}
.gate-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,15,28,.15) 0%, rgba(61,15,28,.55) 100%);
}
.gate-photo-wrap .gate-frame-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247,243,236,.45);
  pointer-events: none;
  z-index: 2;
}
.gate-kicker { color: rgba(247,243,236,.55); margin-bottom: 18px; }
.gate-kicker::before, .gate-kicker::after { background: rgba(184,154,108,.3); }
.gate-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 36px;
}
.btn-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--paper);
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 16px 42px;
  cursor: pointer;
  overflow: hidden;
  transition: color .5s var(--ease);
}
.btn-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn-enter:hover::before { transform: scaleX(1); }
.btn-enter:hover { color: var(--ink); }
.btn-enter svg { transition: transform .5s var(--ease); }
.btn-enter:hover svg { transform: translateX(4px); }

@media (min-width: 901px) {
  .gate-frame { width: min(360px, 86vw); }
  .gate-photo-wrap { aspect-ratio: auto; height: min(42vh, 380px); margin-bottom: 22px; }
  .gate-kicker { margin-bottom: 12px; }
  .gate-line { font-size: 1.1rem; margin-bottom: 22px; }
  .btn-enter { padding: 13px 34px; font-size: .76rem; }
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.chapter {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 768px) { .chapter { padding: 90px 0; } }

.chapter-head {
  text-align: center;
  margin-bottom: 64px;
}
.chapter-head .display { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 18px; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* =====================================================
   HEADER NAV (progress + chapter index)
   ===================================================== */
#nav-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 500;
}
#chapter-tag {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 400;
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1) grayscale(1) contrast(2);
  opacity: .7;
  pointer-events: none;
}
@media (max-width: 700px) { #chapter-tag { display: none; } }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 56vh;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 20%;
  will-change: transform;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,15,28,0) 50%, rgba(61,15,28,.35) 100%);
  z-index: 1;
}
.hero-visual .vsig {
  position: absolute;
  bottom: 36px; left: 36px;
  z-index: 2;
  color: var(--paper);
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .8;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}
@media (max-width: 900px) { .hero-copy { padding: 56px 28px 72px; } }
@media (max-width: 480px) { .hero-copy { padding: 48px 20px 64px; } }

.hero-kicker { justify-content: flex-start; margin-bottom: 28px; }

.hero-names {
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  margin-bottom: 24px;
}
.hero-names .amp {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: .55em;
  color: var(--gold);
  margin: 6px 0;
}

.hero-date {
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 48px;
}
.hero-date strong { color: var(--ink); }

/* Countdown */
.countdown-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.countdown-unit { text-align: left; min-width: 64px; }
.countdown-num {
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  display: block;
  position: relative;
  height: 1.1em;
  overflow: hidden;
}
.countdown-num .digit {
  display: block;
  transition: transform .5s var(--ease);
}
.countdown-label {
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

.hero-scrollcue {
  position: absolute;
  bottom: 32px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-light);
}
@media (max-width: 900px) { .hero-scrollcue { left: 28px; } }
.hero-scrollcue .line {
  width: 1px;
  height: 32px;
  background: var(--text-light);
  position: relative;
  overflow: hidden;
}
.hero-scrollcue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* =====================================================
   DIGITAL PASS (Invitado / QR)
   ===================================================== */
.pass-section {
  background: var(--ink);
  padding: 140px 24px;
  display: flex;
  justify-content: center;
}
.pass-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--ink-soft);
  border: 1px solid rgba(247,243,236,.12);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
}
.pass-top {
  padding: 36px 36px 28px;
  border-bottom: 1px dashed rgba(247,243,236,.25);
}
.pass-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pass-guest {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.pass-sub {
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  color: rgba(247,243,236,.55);
}
.pass-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pass-people {
  padding: 28px 36px;
  border-right: 1px dashed rgba(247,243,236,.25);
}
.pass-people .pp-num {
  font-family: 'Italiana', serif;
  font-size: 2.4rem;
  color: var(--gold);
}
.pass-people .pp-label {
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247,243,236,.5);
  margin-top: 4px;
}
.pass-qr {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-qr .qr-box {
  background: var(--paper);
  padding: 10px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-message {
  padding: 28px 36px 36px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(247,243,236,.8);
}
.pass-perforation {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 1px dashed rgba(247,243,236,.25);
}
.pass-notch {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--ink);
  border-radius: 50%;
}
.pass-notch.left { left: -11px; }
.pass-notch.right { right: -11px; }

/* =====================================================
   EMOTIONAL / ABOUT SECTION — layered scroll reveal
   ===================================================== */
.about-chapter {
  background: var(--paper);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 0;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy { padding: 0 64px; }
@media (max-width: 900px) { .about-copy { padding: 0 28px; margin-bottom: 48px; text-align: center; } }

.about-copy .kicker { margin-bottom: 24px; }
@media (max-width: 900px) { .about-copy .kicker { justify-content: center; } }
.about-copy .kicker.left::after { display: block; }

.about-lead {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
}
.about-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  color: var(--gold);
  margin-top: 12px;
}

.about-visual {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vw, 640px);
}
.about-layer {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(61,15,28,.25);
}
.about-layer img { width: 100%; height: 100%; object-fit: cover; }
.about-layer.back {
  width: 58%; height: 70%;
  top: 4%; right: 6%;
  z-index: 1;
}
.about-layer.front {
  width: 46%; height: 56%;
  bottom: 4%; left: 4%;
  z-index: 2;
  border: 6px solid var(--paper);
}
@media (max-width: 900px) {
  .about-visual { height: clamp(360px, 110vw, 520px); margin: 0 auto; max-width: 480px; }
}

/* =====================================================
   VENUE CARDS — Dónde & Cuándo
   ===================================================== */
.venues-chapter { background: var(--paper-dim); }
.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .venues-grid { grid-template-columns: 1fr; gap: 56px; } }

.venue-card {
  position: relative;
}
.venue-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 28px;
}
.venue-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.venue-card:hover .venue-photo-wrap img { transform: scale(1.06); }
.venue-photo-wrap .vp-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247,243,236,.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.venue-card:hover .vp-frame { opacity: 1; }
.venue-photo-wrap .vp-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(61,15,28,.55);
  padding: 8px 16px;
}

.venue-name { font-size: 1.7rem; margin-bottom: 14px; }
.venue-detail {
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 6px;
}
.venue-detail strong { color: var(--ink); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 2px 8px;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}
.btn-line:hover { color: var(--gold); border-color: var(--gold); gap: 16px; }

/* =====================================================
   ITINERARY — animated vertical timeline
   ===================================================== */
.itinerary-chapter { background: var(--ink); color: var(--paper); }
.itinerary-chapter .kicker { color: rgba(247,243,236,.45); }
.itinerary-chapter .kicker::before, .itinerary-chapter .kicker::after { background: rgba(184,154,108,.3); }
.itinerary-chapter .chapter-head .display { color: var(--paper); }
.itinerary-sub {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(247,243,236,.55);
  margin-top: 8px;
}

.timeline-wrap {
  max-width: 620px;
  margin: 64px auto 0;
  position: relative;
}
.timeline-track {
  position: absolute;
  left: 27px; top: 0;
  width: 1px;
  height: 100%;
  background: rgba(247,243,236,.15);
}
.timeline-progress {
  position: absolute;
  left: 27px; top: 0;
  width: 1px;
  height: 0%;
  background: var(--gold);
  transform-origin: top;
}
.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding-bottom: 64px;
}
.tl-row:last-child { padding-bottom: 0; }
.tl-marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,236,.25);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.tl-row.active .tl-marker { border-color: var(--gold); background: var(--ink-soft); }
.tl-content { padding-top: 8px; }
.tl-time {
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.tl-label {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,243,236,.6);
}

/* =====================================================
   NOSOTROS — editorial gallery
   ===================================================== */
.gallery-chapter { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { overflow: hidden; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.1s var(--ease);
}
.gallery-item.in-view img { transform: scale(1); }
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.short { aspect-ratio: 4/3; margin-top: 64px; }
@media (max-width: 800px) { .gallery-item.short { margin-top: 0; } }

/* =====================================================
   PARENTS
   ===================================================== */
.parents-chapter { background: var(--paper-dim); text-align: center; }
.parents-thanks {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-mid);
  margin: 18px auto 0;
  max-width: 420px;
}
.parents-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  gap: 32px;
}
@media (max-width: 600px) { .parents-grid { grid-template-columns: 1fr; } }
.parents-grid .divider {
  width: 1px;
  height: 64px;
  background: var(--gold-soft);
  margin: 0 auto;
}
@media (max-width: 600px) { .parents-grid .divider { width: 64px; height: 1px; } }
.parent-name {
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.parent-role {
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* =====================================================
   GIFTS
   ===================================================== */
.gifts-chapter { background: var(--paper); text-align: center; }
.gifts-chapter p.about-lead { max-width: 420px; margin: 0 auto 32px; text-align: center; }
.gift-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   BIG TRANSITION PHOTO
   ===================================================== */
.transition-photo {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background: var(--ink);
}
.transition-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 25%;
  will-change: transform;
}
.transition-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,15,28,.05) 0%, rgba(61,15,28,.65) 100%);
}
.transition-photo .tp-quote {
  position: absolute;
  bottom: 56px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--paper);
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  width: 90%;
}

/* =====================================================
   RSVP
   ===================================================== */
.rsvp-chapter { background: var(--ink); color: var(--paper); text-align: center; }
.rsvp-chapter .kicker { color: rgba(247,243,236,.45); }
.rsvp-chapter .kicker::before, .rsvp-chapter .kicker::after { background: rgba(184,154,108,.3); }
.rsvp-chapter .chapter-head .display { color: var(--paper); }
.rsvp-thanks {
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,243,236,.7);
  line-height: 2;
  margin-bottom: 12px;
}
.rsvp-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(247,243,236,.55);
  margin-bottom: 36px;
}
.rsvp-status {
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  color: rgba(247,243,236,.85);
  margin-bottom: 6px;
}
.rsvp-status .status-confirm { color: var(--gold); font-weight: 700; }
.rsvp-count {
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: rgba(247,243,236,.45);
  margin-bottom: 40px;
}
.rsvp-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .rsvp-buttons { flex-direction: column; align-items: center; } }

.btn-ghost-gold {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .45s var(--ease);
  min-width: 200px;
}
.btn-ghost-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn-ghost-gold:hover::before { transform: scaleX(1); }
.btn-ghost-gold:hover { color: var(--ink); }
.btn-ghost-gold.solid { background: var(--gold); color: var(--ink); }
.btn-ghost-gold.solid::before { display: none; }

/* RSVP success burst */
.success-burst {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(61,15,28,.78);
  backdrop-filter: blur(6px);
}
.success-burst.active { display: flex; }
.success-card {
  text-align: center;
  color: var(--paper);
}
.success-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-ring svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.success-card .display { font-size: 1.4rem; margin-bottom: 8px; }
.success-card p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(247,243,236,.6);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-chapter { background: var(--ink); color: var(--paper); text-align: center; }
.contact-chapter .kicker { color: rgba(247,243,236,.45); }
.contact-chapter .kicker::before, .contact-chapter .kicker::after { background: rgba(184,154,108,.3); }
.contact-chapter .chapter-head .display { color: var(--paper); }
.contact-chapter p.about-lead {
  text-align: center; margin: 0 auto 36px; max-width: 360px; color: rgba(247,243,236,.7);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(247,243,236,.3);
  color: var(--paper);
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 16px 38px;
  cursor: pointer;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.btn-whatsapp:hover { border-color: #25d366; background: rgba(37,211,102,.08); }

/* =====================================================
   CLOSING
   ===================================================== */
.closing-chapter {
  background: var(--paper);
  text-align: center;
  padding: 160px 24px 100px;
}
.closing-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 460px;
  margin: 0 auto 24px;
}
.closing-exclaim {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
}
.closing-names {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  color: var(--gold);
}
.closing-foot {
  margin-top: 64px;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* =====================================================
   RSVP MODAL (form)
   ===================================================== */
#rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,15,28,.7);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#rsvp-modal-overlay.active { display: flex; }

.rsvp-modal {
  background: var(--paper);
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
.rsvp-modal .display { font-size: 1.5rem; text-align: center; margin-bottom: 28px; }
.rsvp-modal .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-mid);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  background: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-actions .btn-ghost-gold,
.form-actions .btn-cancel { flex: 1; }
.btn-ghost-gold.dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-gold.dark::before { background: var(--ink); }
.btn-ghost-gold.dark:hover { color: var(--paper); }
.btn-cancel {
  flex: 1;
  padding: 15px;
  border: 1px solid var(--paper-line);
  background: none;
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.btn-cancel:hover { background: var(--paper-dim); }

@media (max-width: 480px) {
  .rsvp-modal { padding: 36px 24px; }
  .form-actions { flex-direction: column; }
}

/* =====================================================
   CAMBIOS BODA — oct 2026 (paleta vino + contenido nuevo)
   ===================================================== */

/* Hero: etiqueta "Nuestra Boda" centrada y sin número */
.hero-kicker { justify-content: center; }

/* Pase digital: foto superior + QR genérico centrado */
.pass-photo { aspect-ratio: 3/2; overflow: hidden; }
.pass-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pass-top { text-align: center; }
.pass-mid-single { grid-template-columns: 1fr; }
.pass-mid-single .pass-qr { display: flex; justify-content: center; padding: 32px 0; }
.pass-qr .qr-box.qr-empty { width: auto; height: auto; padding: 14px; }

/* Nos casamos: frase */
.about-motto {
  text-align: center;
  margin-top: 72px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
}

/* Itinerario con foto de fondo */
.itinerary-chapter { position: relative; overflow: hidden; }
.itinerary-bg { position: absolute; inset: 0; z-index: 0; }
.itinerary-bg img {
  width: 100%; height: 125%;
  object-fit: cover;
  opacity: .6;
  filter: blur(1.5px) saturate(.95);
}
.itinerary-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,15,28,.7) 0%, rgba(61,15,28,.4) 50%, rgba(61,15,28,.75) 100%);
}
.itinerary-chapter .wrap { position: relative; z-index: 1; }
.tl-marker { background: rgba(61,15,28,.85); }
.tl-time small {
  font-family: 'Lato', sans-serif;
  font-size: .62rem;
  letter-spacing: .18em;
  color: rgba(247,243,236,.5);
  margin-left: 4px;
}

/* Galería de 5 fotos */
.gallery-five {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 88px;
  gap: 16px;
  align-items: stretch;
}
.gallery-five .gallery-item { aspect-ratio: auto; margin-top: 0; }
.gallery-five .g-a { grid-column: 1 / 5; grid-row: 1 / 5; }
.gallery-five .g-c { grid-column: 5 / 7; grid-row: 1 / 8; }
.gallery-five .g-b { grid-column: 1 / 3; grid-row: 5 / 8; }
.gallery-five .g-d { grid-column: 3 / 5; grid-row: 5 / 8; }
.gallery-five .g-e { grid-column: 1 / 7; grid-row: 8 / 13; }
@media (max-width: 800px) {
  .gallery-five { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .gallery-five .gallery-item { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .gallery-five .g-a, .gallery-five .g-e { grid-column: 1 / 3; aspect-ratio: 3/2; }
  .gallery-five .g-c { grid-column: 1 / 3; aspect-ratio: 3/4; }
  .gallery-five .g-a { order: 1; } .gallery-five .g-b { order: 2; } .gallery-five .g-d { order: 3; }
  .gallery-five .g-c { order: 4; } .gallery-five .g-e { order: 5; }
}

/* Padres */
.parent-block .parent-role { margin-bottom: 16px; }
.parent-block .parent-name { font-size: 1.35rem; margin-bottom: 6px; }

/* Regalos: dos opciones */
.gift-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 8px auto 0;
}
@media (max-width: 600px) { .gift-options { grid-template-columns: 1fr; } }
.gift-option {
  border: 1px solid var(--gold-soft);
  padding: 36px 24px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.gift-option:hover { border-color: var(--gold); transform: translateY(-3px); }
.gift-num {
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.gift-title {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.gift-detail {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-mid);
}
.gift-code {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-light);
}

/* Franja de 3 fotos */
.transition-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--ink-soft);
  height: 62vh;
  min-height: 360px;
}
.transition-strip .ts-item { overflow: hidden; }
.transition-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.transition-strip .ts-item:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .transition-strip { grid-template-columns: 1fr 1fr; height: auto; min-height: 0; }
  .transition-strip .ts-item { aspect-ratio: 1; }
  .transition-strip .ts-item:first-child { grid-column: 1 / 3; aspect-ratio: 16/9; }
}

/* Confirmar asistencia: teléfonos de los novios */
.rsvp-sub { font-size: 1.15rem; }
.rsvp-phones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rsvp-phones .btn-whatsapp { min-width: 200px; justify-content: center; }

/* Cierre con foto */
.closing-photo {
  max-width: 520px;
  margin: 8px auto 48px;
  box-shadow: 0 30px 60px rgba(61,15,28,.2);
}
.closing-photo img { width: 100%; display: block; }

/* Contador: que los dígitos no se recorten */
.countdown-num { line-height: 1.2; height: 1.2em; }
.countdown-num .digit { line-height: inherit; }

/* Textos del hero sin encimarse con el indicador de sección */
.hero-visual .vsig { top: 36px; bottom: auto; }
@media (min-width: 901px) { .hero-scrollcue { left: calc(50% + 64px); } }

/* =====================================================
   SOBRE DE ENTRADA (index3)
   ===================================================== */
#envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(116,37,58,.55) 0%, rgba(61,15,28,0) 70%),
    linear-gradient(180deg, #3d0f1c 0%, #2c0913 100%);
  overflow: hidden;
}
.env-wrap {
  --w: min(84vw, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--w) * .1);
}
.env-kicker {
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(247,243,236,.6);
}

.envelope {
  position: relative;
  width: var(--w);
  height: calc(var(--w) * .66);
  perspective: 1400px;
  cursor: pointer;
}
.env-shadow {
  position: absolute;
  left: 6%; right: 6%; bottom: -10%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(10,2,5,.55) 0%, rgba(10,2,5,0) 70%);
  filter: blur(6px);
  z-index: 0;
}
.env-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 3px;
  background:
    radial-gradient(circle at 6px 6px, rgba(184,154,108,.4) 1.1px, transparent 1.6px) 0 0 / 12px 12px,
    linear-gradient(180deg, #45111f 0%, #3a0e1a 100%);
}

/* Tarjeta interior */
.env-card {
  position: absolute;
  left: 6%; width: 88%;
  top: 6%; height: 86%;
  z-index: 3;
  background: #f7f3ec;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(20,4,9,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.env-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(184,154,108,.55);
  pointer-events: none;
}
.card-inner { text-align: center; padding: 0 8%; }
.card-kicker {
  font-family: 'Lato', sans-serif;
  font-size: calc(var(--w) * .024);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: calc(var(--w) * .025);
}
.card-names {
  font-family: 'Dancing Script', cursive;
  font-size: calc(var(--w) * .085);
  line-height: 1.15;
  color: var(--ink);
}
.card-names span { color: var(--gold); }
.card-rule {
  display: block;
  width: 22%;
  height: 1px;
  margin: calc(var(--w) * .03) auto;
  background: var(--gold);
  opacity: .6;
}
.card-date {
  font-family: 'Italiana', serif;
  font-size: calc(var(--w) * .042);
  letter-spacing: .14em;
  color: var(--ink);
}

/* Bolsillo frontal */
.env-front {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* Solapa superior (gira en 3D) */
.env-flap {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 59%;
  z-index: 5;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgba(20,4,9,.35));
}
.flap-face {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flap-inner { transform: rotateX(180deg); }

/* Sello de lacre dorado */
.env-seal {
  position: absolute;
  z-index: 6;
  width: calc(var(--w) * .2);
  height: calc(var(--w) * .2);
  left: calc(50% - var(--w) * .1);
  top: calc(var(--w) * .66 * .59 - var(--w) * .1);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .4s var(--ease);
}
.env-seal:hover, .env-seal:focus-visible { transform: scale(1.05); }
.env-seal:focus-visible { outline: 2px solid rgba(247,243,236,.6); outline-offset: 6px; border-radius: 50%; }
.seal-half { position: absolute; inset: 0; display: block; }
.seal-l { clip-path: polygon(0 0, 53% 0, 46% 28%, 55% 52%, 47% 76%, 52% 100%, 0 100%); }
.seal-r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 52% 100%, 47% 76%, 55% 52%, 46% 28%); }
.seal-face {
  position: absolute;
  inset: 0;
  border-radius: 49% 51% 47% 53% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,246,220,.85) 0%, rgba(255,246,220,0) 28%),
    radial-gradient(circle at 50% 50%, #d9b673 0%, #c39a55 45%, #9c7638 78%, #7d5c26 100%);
  box-shadow:
    0 5px 12px rgba(15,3,7,.5),
    inset 0 -4px 7px rgba(70,45,10,.45),
    inset 0 3px 5px rgba(255,240,200,.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-ring {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 3px rgba(80,55,15,.55),
    0 1px 0 rgba(255,240,200,.5);
}
.seal-mono {
  position: relative;
  font-family: 'Italiana', serif;
  font-size: calc(var(--w) * .052);
  letter-spacing: .02em;
  color: #7a5822;
  text-shadow: 0 1px 0 rgba(255,238,195,.65), 0 -1px 0 rgba(60,38,8,.4);
}
.seal-mono i {
  font-family: 'Dancing Script', cursive;
  font-style: normal;
  font-size: .8em;
  margin: 0 .08em;
}
/* destello sutil sobre el sello */
.seal-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,250,230,.55) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: sealShine 4.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes sealShine {
  0%, 70% { background-position: 150% 0; }
  100% { background-position: -60% 0; }
}

.env-open { margin-top: 0; }

@media (max-width: 480px) {
  .env-wrap { gap: 56px; }
  .env-kicker { font-size: .62rem; }
}

/* ---------- Sobre: versión "terciopelo" (basada en el diseño de referencia) ---------- */
#envelope-stage {
  background: #3a0d18 url('img/fondo-tela.jpg?v=1') center / cover no-repeat;
}
#envelope-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(150,40,60,.18) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 35%, rgba(18,3,8,.6) 100%);
  pointer-events: none;
}
@media (max-width: 700px) {
  #envelope-stage { background-position: 22% center; }
}
.env-wrap { position: relative; z-index: 1; }

.env-kicker {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  letter-spacing: .38em;
  color: #ead6b0;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* Sombra del sobre sobre la tela */
.env-back {
  box-shadow: 0 28px 50px rgba(12,2,5,.55), 0 8px 16px rgba(12,2,5,.35);
}
.env-shadow { opacity: .9; }

/* Textura de papel */
.env-tex {
  position: absolute;
  pointer-events: none;
  background: url('img/papel-textura.png?v=1') 0 0 / 160px 160px;
  mix-blend-mode: soft-light;
  opacity: .6;
}
.env-tex-front {
  inset: 0;
  z-index: 4;
  clip-path: polygon(0 0, 47% 55.5%, 50% 58.5%, 53% 55.5%, 100% 0, 100% 100%, 0 100%);
}
.env-tex-flap {
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 53.7% 94%, 50% 100%, 46.3% 94%);
}

/* Sello dorado pulido */
.seal-face {
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #fff3cf 0%, #f2d48f 16%, #d7b06a 40%, #b78c47 70%, #8a652b 100%);
  box-shadow:
    0 7px 16px rgba(15,3,7,.55),
    0 2px 4px rgba(15,3,7,.4),
    inset 0 -5px 9px rgba(95,62,15,.45),
    inset 0 4px 6px rgba(255,246,215,.6);
}
.seal-ring {
  inset: 9%;
  background: radial-gradient(circle at 40% 32%, #edd096 0%, #d1a960 55%, #b88d48 100%);
  box-shadow:
    inset 0 2px 4px rgba(95,62,18,.55),
    inset 0 -2px 3px rgba(255,240,200,.45),
    0 1px 1px rgba(255,240,200,.45);
}
.seal-mono {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: calc(var(--w) * .074);
  letter-spacing: 0;
  color: #86602a;
  text-shadow: 0 1.5px 0 rgba(255,240,205,.75), 0 -1px 1px rgba(70,45,10,.5);
}
.seal-mono i {
  font-family: inherit;
  font-size: .92em;
  margin: 0 .02em;
}

/* Botón con brillo dorado */
.env-open {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  letter-spacing: .3em;
  color: #f3e3c3;
  border-color: #c9a160;
  background: rgba(40,8,16,.28);
  box-shadow: 0 0 0 1px rgba(201,161,96,.12), 0 0 26px rgba(214,170,100,.22), inset 0 0 18px rgba(214,170,100,.08);
  text-shadow: 0 0 10px rgba(240,210,150,.35);
  transition: color .5s var(--ease), box-shadow .5s var(--ease);
}
.env-open:hover { box-shadow: 0 0 0 1px rgba(201,161,96,.3), 0 0 36px rgba(214,170,100,.38); }

/* Textura de fibra real (extraída de la referencia) */
.env-tex {
  background: url('img/papel-fibra.jpg?v=1') 0 0 / 260px 75px repeat;
  mix-blend-mode: overlay;
  opacity: .75;
}
.env-card { background-image: url('img/papel-fibra.jpg?v=1'); background-size: 260px 75px; background-blend-mode: soft-light; background-color: #f7f3ec; }

/* Sombra de la solapa superior sobre el bolsillo (doble: cercana y difusa) */
.env-flap {
  filter:
    drop-shadow(0 1.5px 1.5px rgba(14,2,6,.55))
    drop-shadow(0 7px 10px rgba(14,2,6,.5));
}

/* La sombra va en la cara exterior (un filtro en .env-flap aplana el 3D y oculta el forro) */
.env-flap { filter: none; }
.flap-outer {
  filter:
    drop-shadow(0 1.5px 1.5px rgba(14,2,6,.55))
    drop-shadow(0 7px 10px rgba(14,2,6,.5));
}

/* Sombra de la solapa superior un poco más intensa */
.flap-outer {
  filter:
    drop-shadow(0 2px 2px rgba(12,1,5,.65))
    drop-shadow(0 9px 13px rgba(12,1,5,.6));
}

/* Forro interior: mismo estampado de rombos que la solapa + profundidad */
.env-back {
  background:
    linear-gradient(180deg, rgba(14,2,6,.4) 0%, rgba(14,2,6,0) 22%, rgba(14,2,6,0) 50%, rgba(14,2,6,.6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%234a1220'/%3E%3Cpath d='M6,1.5 L7.5,6 L6,10.5 L4.5,6 Z' fill='%23c9a160' fill-opacity='.5'/%3E%3C/svg%3E") 0 0 / calc(var(--w) * .04) calc(var(--w) * .04) repeat,
    #4a1220;
}

/* Interior liso (opción 2): vino oscuro con fibra de papel y profundidad */
.env-back {
  background:
    linear-gradient(180deg, rgba(14,2,6,.4) 0%, rgba(14,2,6,0) 22%, rgba(14,2,6,0) 50%, rgba(14,2,6,.6) 100%),
    url('img/papel-fibra.jpg?v=1') 0 0 / 260px 75px repeat,
    #4a1220;
  background-blend-mode: normal, soft-light, normal;
}

/* Pista sutil en lugar del botón */
.env-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  letter-spacing: .06em;
  color: rgba(234,214,176,.6);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  margin-top: calc(var(--w) * -.02);
}

/* Latido dorado del sello */
.env-seal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226,190,120,.55);
  animation: sealPulse 3.2s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes sealPulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,190,120,.55); }
  45%  { box-shadow: 0 0 0 calc(var(--w) * .05) rgba(226,190,120,0); }
  100% { box-shadow: 0 0 0 calc(var(--w) * .05) rgba(226,190,120,0); }
}
.is-opening .env-seal::before,
.is-opening .seal-face::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .env-seal::before, .seal-face::after { animation: none; }
}

/* Sello: el recorte de cada mitad se amplía para no cortar la sombra (antes salía cuadrada) */
.seal-l { clip-path: polygon(-40% -40%, 53% -40%, 53% 0, 46% 28%, 55% 52%, 47% 76%, 52% 100%, 52% 140%, -40% 140%); }
.seal-r { clip-path: polygon(53% -40%, 140% -40%, 140% 140%, 52% 140%, 52% 100%, 47% 76%, 55% 52%, 46% 28%, 53% 0); }

/* Sombra redondeada más profunda y textura de cera */
.seal-face {
  box-shadow:
    0 1px 1px rgba(10,1,4,.55),
    0 4px 7px rgba(10,1,4,.45),
    0 12px 24px rgba(10,1,4,.5),
    inset 0 -5px 9px rgba(95,62,15,.45),
    inset 0 4px 6px rgba(255,246,215,.6);
}
.seal-ring {
  background:
    url('img/papel-fibra.jpg?v=1') 0 0 / 130px 38px repeat,
    radial-gradient(circle at 40% 32%, #edd096 0%, #d1a960 55%, #b88d48 100%);
  background-blend-mode: soft-light, normal;
}

/* Fotos de los lugares: enlace al mapa */
a.venue-photo-wrap { display: block; color: inherit; cursor: pointer; }
.venue-photo-wrap .vp-map {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: 'Lato', sans-serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(61,15,28,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .4s var(--ease);
}
a.venue-photo-wrap:hover .vp-map,
a.venue-photo-wrap:focus-visible .vp-map { background: rgba(61,15,28,.85); }
a.venue-photo-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Enlace a la mesa de regalos */
.gift-option .gift-link { margin-top: 18px; }

/* Botón de música */
.music-toggle {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 450;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,161,96,.6);
  background: rgba(61,15,28,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(20,3,8,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.music-toggle[hidden] { display: none; }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mt-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.mt-bars i {
  display: block;
  width: 3px; height: 100%;
  background: #e2c48a;
  border-radius: 1px;
  transform-origin: bottom;
  transform: scaleY(.25);
  transition: transform .3s var(--ease);
}
.music-toggle.is-playing .mt-bars i { animation: mtBar 1s ease-in-out infinite; }
.music-toggle.is-playing .mt-bars i:nth-child(2) { animation-delay: -.6s; }
.music-toggle.is-playing .mt-bars i:nth-child(3) { animation-delay: -.3s; }
.music-toggle.is-playing .mt-bars i:nth-child(4) { animation-delay: -.8s; }
@keyframes mtBar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music-toggle:not(.is-playing) { opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing .mt-bars i { animation: none; transform: scaleY(.7); }
}

/* Nos casamos: foto sobrepuesta en cuadrado para que se aprecie el paisaje */
.about-layer.front {
  width: 52%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.about-layer.front img { object-position: 6% 50%; }
@media (max-width: 900px) {
  .about-layer.front { width: 58%; }
}

/* Nos casamos: foto sobrepuesta horizontal (3:2) para mostrar todo el paisaje */
.about-layer.front {
  width: 64%;
  aspect-ratio: 3 / 2;
}
.about-layer.front img { object-position: 50% 50%; }
@media (max-width: 900px) {
  .about-layer.front { width: 72%; }
}

/* Móvil: nombres del hero centrados (en escritorio se quedan como están) */
@media (max-width: 900px) {
  .hero-names { text-align: center; }
}

/* Móvil: fecha y contador centrados, números un poco más grandes, "Desliza" centrado debajo */
@media (max-width: 900px) {
  .hero-date { text-align: center; }
  .countdown-bar { justify-content: center; gap: 22px; }
  .countdown-unit { text-align: center; min-width: 58px; }
  .countdown-num { font-size: 2.35rem; }
  .hero-copy { padding-bottom: 36px; }
  .hero-scrollcue {
    position: static;
    flex-direction: column;
    justify-self: center;
    gap: 8px;
    margin: 0 0 44px;
  }
}
@media (max-width: 380px) {
  .countdown-bar { gap: 14px; }
  .countdown-num { font-size: 2.1rem; }
}

/* Cierre: menos aire arriba de la frase */
.closing-chapter { padding-top: 84px; }
@media (max-width: 900px) { .closing-chapter { padding-top: 56px; } }

/* Pase digital: acabado de pase físico (filo dorado, sombra, muescas de boleto) */
.pass-section {
  background:
    radial-gradient(ellipse 45% 40% at 50% 50%, rgba(140,40,62,.35) 0%, rgba(61,15,28,0) 70%),
    var(--ink);
}
.pass-card {
  border: none;
  border-radius: 10px;
  background: linear-gradient(165deg, #5c1a2d 0%, #521628 45%, #44111e 100%);
  box-shadow:
    0 0 0 1px rgba(201,161,96,.38),
    inset 0 1px 0 rgba(255,235,200,.08),
    0 30px 60px rgba(10,1,4,.6),
    0 10px 22px rgba(10,1,4,.4);
}
.pass-photo { border-bottom: 1px solid rgba(201,161,96,.35); }
.pass-top { position: relative; }
.pass-notch {
  top: auto;
  bottom: -11px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(201,161,96,.38);
}
.pass-qr .qr-box {
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(201,161,96,.45), 0 8px 18px rgba(10,1,4,.35);
}

/* Pase: QR real y texto centrado */
.pass-message { text-align: center; }
.pass-qr .qr-box.qr-empty { padding: 10px; }
.qr-code { display: block; }

/* =====================================================
   DRESS CODE
   ===================================================== */
.dress-chapter { background: var(--ink-soft); color: var(--paper); text-align: center; }
.dress-chapter .kicker { color: rgba(247,243,236,.45); }
.dress-chapter .kicker::before, .dress-chapter .kicker::after { background: rgba(184,154,108,.3); }
.dress-chapter .chapter-head .display { color: var(--paper); }

.dress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 760px) { .dress-grid { grid-template-columns: 1fr; gap: 22px; } }

.dress-card {
  border: 1px solid rgba(201,161,96,.32);
  border-radius: 10px;
  padding: 40px 30px 34px;
  background: linear-gradient(165deg, rgba(255,235,200,.045) 0%, rgba(255,235,200,0) 55%);
  box-shadow: 0 18px 40px rgba(10,1,4,.28);
}
.dress-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: block;
  stroke: #d9b878;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dress-who {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e2c48a;
  margin-bottom: 16px;
}
.dress-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(247,243,236,.86);
  max-width: 340px;
  margin: 0 auto;
}
.avoid-label {
  font-family: 'Lato', sans-serif;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(234,214,176,.62);
  margin: 24px 0 12px;
}
.swatches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
}
.swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 50px;
  font-family: 'Lato', sans-serif;
  font-size: .62rem;
  letter-spacing: .08em;
  color: rgba(247,243,236,.72);
}
.swatches span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(201,161,96,.65), 0 0 0 4px rgba(201,161,96,.08), 0 4px 10px rgba(10,1,4,.35);
}
.dress-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(234,214,176,.78);
  max-width: 560px;
  margin: 52px auto 0;
}

/* Dress code en crema (para no encadenar tanto vino) */
.dress-chapter { background: var(--paper-dim); color: var(--ink); }
.dress-chapter .kicker { color: var(--text-light); }
.dress-chapter .kicker::before, .dress-chapter .kicker::after { background: var(--gold-soft); }
.dress-chapter .chapter-head .display { color: var(--ink); }
.dress-card {
  border-color: rgba(184,154,108,.45);
  background: linear-gradient(165deg, #faf7f1 0%, #f4eee3 100%);
  box-shadow: 0 18px 40px rgba(61,15,28,.10), 0 2px 6px rgba(61,15,28,.06);
}
.dress-icon { stroke: #a8843f; }
.dress-who { color: var(--ink); }
.dress-text { color: var(--text-mid); }
.avoid-label { color: #a8843f; }
.swatches li { color: var(--text-mid); }
.swatches span {
  box-shadow: 0 0 0 1px rgba(168,132,63,.55), 0 0 0 4px rgba(184,154,108,.12), 0 3px 8px rgba(61,15,28,.15);
}
.dress-note { color: var(--ink); opacity: .8; }
.dress-chapter { background: var(--paper); }

/* Tarjeta: silueta de la pareja entre nombres y fecha */
.card-kicker { margin-bottom: calc(var(--w) * .014); }
.card-silueta {
  display: block;
  height: calc(var(--w) * .2);
  width: auto;
  margin: calc(var(--w) * .01) auto calc(var(--w) * .016);
  /* refuerza un poco el trazo fino para que se lea en pantallas pequeñas */
  filter: drop-shadow(0 0 .35px #6b1626) drop-shadow(0 0 .35px #6b1626);
}
.card-silueta { height: calc(var(--w) * .27); margin: calc(var(--w) * .006) auto calc(var(--w) * .012); }
.card-names { line-height: 1.05; }

/* Silueta: refuerzo del trazo en el mismo vino de los nombres */
.card-silueta { filter: drop-shadow(0 0 .4px #3d0f1c) drop-shadow(0 0 .4px #3d0f1c); }
