/* =====================================================================
   XV AÑOS · ISABELLA — styles.css v7.0
   Paleta: Rosa · Lavanda · Morado suave
   Diseño: Editorial premium · Minimalista · Sin separadores decorativos
   ===================================================================== */

/* ── FUENTES ────────────────────────────────────────────────────────
   Playfair Display  → títulos principales (editorial, refinado)
   Cormorant Garamond → títulos secundarios, pase (serif elegante)
   Jost               → body text (sans-serif moderna, light)
   Dancing Script     → firma / nombre hero (script)
   ------------------------------------------------------------------- */

/* ── VARIABLES ─────────────────────────────────────────────────────── */
:root {
  /* Paleta principal — rosa / lavanda / morado suave */
  --blush:       #fdf4f8;          /* fondo general */
  --blush-2:     #f8ecf3;          /* fondo secciones alternas */
  --petal-1:     #f0d5e4;          /* rosa palo claro */
  --petal-2:     #e2b5cf;          /* rosa palo medio */
  --rose-soft:   #c98eb0;          /* rosa suave principal */
  --lavender-1:  #e8e0f0;          /* lavanda clara */
  --lavender-2:  #c5b3dc;          /* lavanda media */
  --plum-light:  #9b7cb6;          /* morado suave */
  --plum:        #7a5a9a;          /* morado elegante */
  --plum-dark:   #5c3f7a;          /* morado oscuro (texto/botones) */

  --gold:        #c9a96e;          /* acento dorado */
  --gold-pale:   #ede0c6;

  --white:       #ffffff;
  --off-white:   #fdfbfd;
  --ink:         #2d1f36;          /* texto principal — morado muy oscuro */
  --ink-soft:    #5a4568;          /* texto secundario */
  --gray:        #9885a8;          /* texto terciario */
  --gray-light:  #ddd4e6;

  /* Tipografías */
  --title:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --script:  'Dancing Script', cursive;
  --sans:    'Jost', 'Montserrat', system-ui, sans-serif;

  /* Util */
  --r:    16px;
  --r-sm: 8px;
  --bdr:  1px solid rgba(155, 124, 182, 0.16);

  /* Aliases compat */
  --font-d:       var(--title);
  --font-s:       var(--script);
  --font-b:       var(--sans);
  --font-display: var(--title);
  --font-script:  var(--script);
  --font-body:    var(--sans);
  --radius:       var(--r);
  --radius-sm:    var(--r-sm);
  --border:       var(--bdr);
  --border-rose:  var(--bdr);
}

/* ── RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--blush); color: var(--ink); overflow-x: hidden; font-weight: 300; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── ICONOS ─────────────────────────────────────────────────────────── */
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { display: block; width: 100%; height: 100%; }
.ico-14 { width: 14px; height: 14px; }
.ico-16 { width: 16px; height: 16px; }
.ico-18 { width: 18px; height: 18px; }
.ico-20 { width: 20px; height: 20px; }
.ico-24 { width: 24px; height: 24px; }
.ico-28 { width: 28px; height: 28px; }
.ico-32 { width: 32px; height: 32px; }

/* ── PRINT ──────────────────────────────────────────────────────────── */
@media print {
  nav, .music-player, .petals-wrap, #countdown, #phrase, #itinerary,
  #location, #dresscode, #gallery, #gifts, #hospedaje, #instagram,
  #padrinos, #trivia, #rsvp, #acceso, footer, .env-overlay { display: none !important; }
  #pases { padding: 0 !important; }
  .pase-layout { grid-template-columns: 1fr !important; }
  .pase-preview { position: static !important; }
}

/* ====================================================================
   SOBRE — ANIMACIÓN DE APERTURA
==================================================================== */
.env-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blush-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.env-overlay.closed { opacity: 0; visibility: hidden; pointer-events: none; }

.env-scene {
  display: flex; flex-direction: column;
  align-items: center; gap: 44px;
}

.env-wrap {
  position: relative;
  width: 280px; height: 190px;
}

/* Cuerpo del sobre */
.env-body {
  position: absolute; inset: 0;
  background: var(--white);
  border-radius: 4px 4px 10px 10px;
  border: 1px solid var(--petal-1);
  overflow: visible;
}

/* Flap inferior (triángulo abajo) — decorativo */
.env-flap-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: var(--petal-1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 0 0 10px 10px;
}

/* Flap superior — la tapa que se abre */
.env-flap-top {
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 100px;
  background: var(--lavender-1);
  border: 1px solid var(--petal-1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.6s ease;
  z-index: 2;
}

/* La carta que sube del sobre */
.env-letter {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  height: 155px;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--petal-1);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s,
              opacity 0.6s ease 0.4s;
  z-index: 1;
}
.env-letter-inner { text-align: center; }
.env-letter-tag {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 8px;
}
.env-letter-name {
  font-family: var(--script); font-size: 2.2rem;
  color: var(--plum-dark); line-height: 1;
}
.env-letter-sub {
  font-family: var(--serif); font-size: 0.85rem; font-weight: 300;
  color: var(--plum-light); letter-spacing: 3px;
  text-transform: uppercase; margin-top: 4px;
}

/* Animación activa */
.env-overlay.opening .env-flap-top {
  transform: rotateX(-160deg);
  background: var(--petal-2);
}
.env-overlay.opening .env-letter {
  transform: translateY(-130px);
}

/* Botón de apertura */
.env-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.65rem; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--plum-dark);
  padding: 14px 32px;
  border: 1px solid var(--plum-light);
  border-radius: 50px; background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.env-cta:hover { background: var(--plum-dark); color: #fff; border-color: var(--plum-dark); }

/* ====================================================================
   PÉTALOS FLOTANTES
==================================================================== */
.petals-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.petal {
  position: absolute; top: -16px;
  border-radius: 50% 0 50% 50%;
  opacity: 0.15;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg) translateX(0);     opacity: 0.15; }
  50%  { transform: translateY(50vh)  rotate(360deg) translateX(18px); opacity: 0.08; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(-14px); opacity: 0; }
}

/* ====================================================================
   NAV
==================================================================== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 52px; height: 64px;
  background: rgba(253, 244, 248, 0.97);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(155, 124, 182, 0.10);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: var(--script); font-size: 1.7rem;
  color: var(--plum-dark); letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.57rem; font-weight: 400; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--plum); border-bottom-color: var(--plum); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--ink); transition: transform 0.3s, opacity 0.3s;
}
.nav-links.open {
  display: flex; flex-direction: column;
  position: fixed; top: 64px; right: 0;
  width: min(260px, 80vw); height: calc(100dvh - 64px);
  background: var(--blush); border-left: var(--bdr);
  padding: 32px 28px; gap: 24px; overflow-y: auto;
  animation: slideInR 0.28s ease;
}
@keyframes slideInR { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ====================================================================
   BOTONES
==================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  border-radius: 50px; padding: 13px 28px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--plum-dark); color: #fff;
  border: 1px solid var(--plum-dark);
}
.btn-primary:hover { background: var(--plum); border-color: var(--plum); }
.btn-outline {
  background: transparent; color: var(--plum-dark);
  border: 1px solid var(--plum-dark);
}
.btn-outline:hover { background: var(--plum-dark); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ====================================================================
   REVEAL ON SCROLL
==================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ====================================================================
   SECCIÓN BASE
==================================================================== */
section { padding: 100px 24px; position: relative; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  display: block;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--plum-light); margin-bottom: 12px;
}
.section-title {
  font-family: var(--title);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400; color: var(--ink); line-height: 1.05; margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--plum); }
.section-sub {
  font-size: 0.78rem; font-weight: 300; color: var(--gray);
  letter-spacing: 0.3px; line-height: 2; max-width: 460px;
}

/* ====================================================================
   HERO — FOTO DE FONDO
==================================================================== */
#hero {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
  position: relative; overflow: hidden;

  background-image: url("../imgs/2.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(30, 12, 42, 0.46);
}
#hero > * { position: relative; z-index: 2; }
.hero-blob { display: none; }

.hero-rule {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-rule-diamond { width: 5px; height: 5px; background: rgba(197, 179, 220, 0.7); transform: rotate(45deg); }
.hero-rule-icon { color: rgba(197, 179, 220, 0.9); }

.hero-pre {
  font-family: var(--sans); font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 300; letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60); margin-bottom: 10px;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}
.hero-name {
  font-family: var(--script);
  font-size: clamp(5rem, 16vw, 11rem);
  color: #ffffff; line-height: 0.92; margin: 0;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}
.hero-xv {
  font-family: var(--title);
  font-size: clamp(0.65rem, 2vw, 0.9rem); font-weight: 300;
  letter-spacing: 14px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  opacity: 0; animation: fadeUp 0.7s 0.9s forwards;
}
.hero-divider {
  display: flex; align-items: center; gap: 20px; margin: 26px 0;
  opacity: 0; animation: fadeUp 0.7s 1.1s forwards;
}
.hero-divider-line { flex: 1; max-width: 80px; height: 1px; background: rgba(197, 179, 220, 0.40); }
.hero-divider-icon { color: rgba(197, 179, 220, 0.85); }
.hero-date {
  font-family: var(--title);
  font-size: clamp(0.8rem, 2vw, 1rem); font-weight: 300;
  letter-spacing: 4px; color: rgba(255, 255, 255, 0.72);
  opacity: 0; animation: fadeUp 0.7s 1.3s forwards;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.38); z-index: 2;
  opacity: 0; animation: fadeUp 0.7s 1.9s forwards;
}
.hero-scroll span:first-child { font-size: 0.5rem; letter-spacing: 4px; text-transform: uppercase; }
.hero-scroll .ico { animation: bounce 2s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

@media (max-width: 768px) {
  #hero { background-attachment: scroll; background-position: center center; }
}

/* ====================================================================
   COUNTDOWN
==================================================================== */
#countdown { background: var(--plum-dark); padding: 80px 24px; }
.cd-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cd-tag {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255,255,255,0.42); display: block; margin-bottom: 6px;
}
.cd-title {
  font-family: var(--title);
  font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 300;
  color: rgba(255,255,255,0.75); margin-bottom: 52px;
  font-style: italic;
}
.cd-grid { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-block {
  display: flex; flex-direction: column; align-items: center;
  min-width: 104px; padding: 22px 14px;
  border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r);
}
.cd-num {
  font-family: var(--title); font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300; color: var(--lavender-1); line-height: 1;
}
.cd-label {
  font-size: 0.5rem; font-weight: 300; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-top: 10px;
}
.cd-colon {
  font-family: var(--title); font-size: 2.5rem;
  color: rgba(255,255,255,0.14); padding-bottom: 18px; line-height: 1;
}

/* ====================================================================
   PHRASE
==================================================================== */
#phrase {
  background: var(--blush-2); text-align: center; padding: 100px 24px;
}
.phrase-quote-icon { color: var(--lavender-2); margin-bottom: 18px; }
.phrase-quote {
  font-family: var(--title);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-style: italic; font-weight: 300; color: var(--ink);
  line-height: 1.72; max-width: 740px; margin: 0 auto 26px;
}
.phrase-attr { font-family: var(--script); font-size: 1.25rem; color: var(--plum-light); }

/* ====================================================================
   ITINERARY — TIMELINE
==================================================================== */
#itinerary { background: var(--blush); }
.timeline { margin-top: 56px; position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 1px; background: var(--lavender-2); opacity: 0.5;
}
.tl-item {
  position: relative; padding: 0 0 40px 32px;
  opacity: 0; animation: fadeLeft 0.6s ease forwards;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:nth-child(1){animation-delay:.05s}.tl-item:nth-child(2){animation-delay:.12s}
.tl-item:nth-child(3){animation-delay:.19s}.tl-item:nth-child(4){animation-delay:.26s}
.tl-item:nth-child(5){animation-delay:.33s}.tl-item:nth-child(6){animation-delay:.40s}
.tl-item:nth-child(7){animation-delay:.47s}.tl-item:nth-child(8){animation-delay:.54s}
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.tl-dot {
  position: absolute; left: -29px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blush); border: 1.5px solid var(--plum-light);
  transition: background 0.25s;
}
.tl-item:hover .tl-dot { background: var(--plum-light); }
.tl-icon { color: var(--plum-light); margin-bottom: 3px; }
.tl-time {
  font-family: var(--title); font-size: 1.5rem;
  color: var(--plum); font-weight: 400;
}
.tl-event {
  font-family: var(--title); font-size: 1.1rem;
  font-weight: 400; color: var(--ink); margin: 2px 0 4px;
}
.tl-desc { font-size: 0.74rem; color: var(--gray); font-weight: 300; line-height: 1.7; }

/* ====================================================================
   LOCATION — ESTILO EDITORIAL (como referencia)
==================================================================== */
#location { background: var(--blush-2); }

.loc-editorial { max-width: 1000px; }

.loc-ed-header { margin-bottom: 40px; }
.loc-ed-tag {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--plum-light); display: block; margin-bottom: 10px;
}
.loc-ed-title {
  font-family: var(--title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400; color: var(--ink); line-height: 1;
}

.loc-ed-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px; align-items: start;
}

.loc-ed-info { padding-top: 8px; }

.loc-ed-rule {
  width: 40px; height: 1px;
  background: var(--plum-light); margin-bottom: 28px;
}

.loc-ed-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 16px; margin-bottom: 20px;
}
.loc-ed-label {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gray); padding-top: 2px;
}
.loc-ed-val {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.65;
}

.loc-ed-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink);
  padding: 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.loc-ed-btn:hover { background: var(--ink); color: #fff; }

.loc-ed-map {
  height: 380px;
  border-radius: var(--r);
  overflow: hidden;
  border: var(--bdr);
}

/* ====================================================================
   DRESSCODE
==================================================================== */
#dresscode { background: var(--blush); }
.dc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.dc-card {
  padding: 44px 28px; border-radius: var(--r);
  background: var(--white); border: var(--bdr); text-align: center;
  transition: border-color 0.25s;
}
.dc-card:hover { border-color: var(--lavender-2); }
.dc-card.dc-avoidance { border-color: rgba(200, 70, 70, 0.15); }
.dc-icon { color: var(--plum-light); display: flex; justify-content: center; margin-bottom: 18px; }
.dc-card h4 {
  font-family: var(--title); font-size: 1.3rem; font-weight: 400;
  color: var(--ink); margin-bottom: 10px;
}
.dc-card p { font-size: 0.74rem; color: var(--gray); font-weight: 300; line-height: 1.85; }
.dc-palette { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dc-dot { width: 24px; height: 24px; border-radius: 50%; outline: 1px solid rgba(0,0,0,0.08); }

/* ====================================================================
   GALLERY — GRID UNIFORME
==================================================================== */
#gallery { background: var(--blush-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  margin-top: 52px;
}
.g-item {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  position: relative; background: var(--petal-1);
  aspect-ratio: 1;
  transition: transform 0.35s ease;
}
/* Featured: tall item */
.g-item.g-tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
/* Wide item */
.g-item.g-wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.g-item:hover img { transform: scale(1.06); }
.g-overlay {
  position: absolute; inset: 0;
  background: rgba(30, 12, 42, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s;
}
.g-item:hover .g-overlay { background: rgba(30, 12, 42, 0.34); }
.g-zoom { color: #fff; opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.3s; }
.g-item:hover .g-zoom { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(18, 6, 28, 0.97);
  z-index: 9998; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(8px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 10px; animation: zoomIn 0.4s ease; }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: scale(1); } }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: rgba(255,255,255,0.65);
  cursor: pointer; padding: 8px; transition: color 0.2s, transform 0.3s;
}
.lb-close:hover { color: #fff; transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; cursor: pointer;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ====================================================================
   GIFTS — CON BOTÓN "IR A MESA"
==================================================================== */
#gifts { background: var(--blush); }
.gifts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.gift-card {
  padding: 38px 20px 28px; border-radius: var(--r);
  background: var(--white); border: var(--bdr); text-align: center;
  transition: border-color 0.25s;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
}
.gift-card:hover { border-color: var(--lavender-2); }
.gift-icon { color: var(--plum-light); display: flex; justify-content: center; margin-bottom: 14px; }
.gift-card h4 {
  font-family: var(--title); font-size: 1.2rem; font-weight: 400;
  color: var(--ink); margin-bottom: 8px;
}
.gift-card p { font-size: 0.73rem; color: var(--gray); font-weight: 300; line-height: 1.75; flex: 1; }
.gift-badge {
  display: inline-block; margin-top: 12px; padding: 3px 12px;
  background: var(--lavender-1); color: var(--plum-dark);
  font-family: var(--sans); font-size: 0.57rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 50px; border: 1px solid var(--lavender-2);
}
.gift-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 10px 22px;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--plum-dark);
  border: 1px solid var(--plum-light);
  border-radius: 50px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  width: 100%;
}
.gift-card:hover .gift-btn { background: var(--plum-dark); color: #fff; border-color: var(--plum-dark); }

/* ====================================================================
   HOSPEDAJE — CARRUSEL
==================================================================== */
#hospedaje { background: var(--blush-2); }
.hotel-carousel { margin-top: 56px; position: relative; overflow: hidden; }
.hc-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.hc-slide {
  min-width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--r); overflow: hidden; border: var(--bdr); background: var(--white);
}
.hc-img { position: relative; min-height: 380px; background: var(--petal-1); overflow: hidden; }
.hc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-img-ov { position: absolute; inset: 0; background: rgba(30, 12, 42, 0.06); }
.hc-stars { position: absolute; bottom: 16px; left: 16px; color: var(--gold); display: flex; gap: 3px; }
.hc-info { padding: 42px 40px; display: flex; flex-direction: column; }
.hc-info h3 {
  font-family: var(--title); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400; color: var(--ink); margin-bottom: 22px; line-height: 1.1;
}
.hc-detail {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.75rem; color: var(--ink-soft); font-weight: 300;
  margin-bottom: 11px; line-height: 1.55;
}
.hc-detail .ico { color: var(--plum-light); flex-shrink: 0; margin-top: 1px; }
.hc-detail strong { font-weight: 500; color: var(--plum); }
.hc-code {
  display: inline-block; margin: 16px 0 4px; padding: 9px 20px;
  background: var(--lavender-1); border-radius: 8px;
  border: 1px solid var(--lavender-2);
  font-size: 0.88rem; font-weight: 400; color: var(--plum-dark); letter-spacing: 3px;
}
.hc-code-label { font-size: 0.64rem; color: var(--gray); margin-bottom: 20px; font-weight: 300; }
.hc-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 22px; }
.hc-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--lavender-2); background: var(--white);
  color: var(--plum); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer;
}
.hc-btn:hover { background: var(--plum-dark); color: #fff; border-color: var(--plum-dark); }
.hc-dots { display: flex; gap: 8px; align-items: center; }
.hc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lavender-2); cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.hc-dot.active { background: var(--plum-dark); transform: scale(1.3); }

/* ====================================================================
   INSTAGRAM
==================================================================== */
#instagram { background: var(--plum-dark); padding: 88px 24px; text-align: center; }
.ig-inner { max-width: 560px; margin: 0 auto; }
.ig-icon { color: var(--lavender-1); display: flex; justify-content: center; margin-bottom: 20px; }
.ig-hashtag { font-family: var(--script); font-size: clamp(2rem, 7vw, 3.8rem); color: #fff; margin-bottom: 14px; }
.ig-desc { font-size: 0.77rem; color: rgba(255,255,255,0.42); font-weight: 300; line-height: 1.85; margin-bottom: 28px; }
.ig-copy-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-family: var(--sans); font-size: 0.64rem; font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 12px 26px; border-radius: 50px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.25s, border-color 0.25s;
}
.ig-copy-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.50); }

/* ====================================================================
   FAMILIA & PADRINOS — estilo editorial como referencia
==================================================================== */
#padrinos { background: var(--blush-2); }

.fp-eyebrow {
  display: block; text-align: center;
  font-family: var(--sans); font-size: 0.56rem; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--plum-light); margin-bottom: 12px;
}
.fp-title {
  font-family: var(--title);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400; color: var(--ink); line-height: 1.05;
  text-align: center; margin-bottom: 52px;
}

.fp-block { margin-bottom: 52px; }

.fp-block-rule {
  width: 40px; height: 1px;
  background: var(--plum-light); opacity: 0.5;
  margin: 0 auto 18px;
}
.fp-block-label {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gray); text-align: center; margin-bottom: 36px;
}

.fp-people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  justify-items: center;
}
.fp-padrinos-grid { grid-template-columns: repeat(3, 1fr); }

.fp-person { text-align: center; }

.fp-person-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); margin: 0 auto 10px;
  transition: border-color 0.2s, color 0.2s;
}
.fp-person:hover .fp-person-icon { border-color: var(--plum-light); color: var(--plum-light); }
.fp-person-icon--star { border-color: var(--gold-pale); color: var(--gold); }
.fp-person:hover .fp-person-icon--star { border-color: var(--gold); }

.fp-person-role {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 5px;
}
.fp-person-name {
  font-family: var(--title); font-size: 1.1rem; font-weight: 400;
  color: var(--ink); line-height: 1.2;
}

/* ====================================================================
   TRIVIA
==================================================================== */
#trivia { background: var(--blush); }
.trivia-wrap { max-width: 680px; margin: 52px auto 0; }
.trivia-card { background: var(--white); border-radius: var(--r); padding: 48px 46px; border: var(--bdr); }
.trivia-prog { display: flex; gap: 6px; margin-bottom: 30px; }
.tpd { flex: 1; height: 2px; border-radius: 2px; background: var(--lavender-1); transition: background 0.3s; }
.tpd.done    { background: var(--plum); }
.tpd.current { background: var(--plum-light); }
.trivia-qnum { font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; color: var(--plum-light); margin-bottom: 10px; }
.trivia-question { font-family: var(--title); font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 400; color: var(--ink); margin-bottom: 28px; line-height: 1.35; }
.trivia-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.trivia-opt {
  padding: 14px 18px; border: var(--bdr); border-radius: var(--r-sm);
  background: var(--blush); font-size: 0.8rem; color: var(--ink); text-align: left;
  font-weight: 300; font-family: var(--sans);
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.trivia-opt:hover:not(:disabled) { border-color: var(--plum-light); background: var(--lavender-1); }
.trivia-opt.correct { border-color: #4caf50; background: #f0f8f0; color: #1b5e20; }
.trivia-opt.wrong   { border-color: #ef5350; background: #fff4f4; color: #b71c1c; }
.trivia-result { text-align: center; }
.trivia-result .res-icon { color: var(--plum); display: flex; justify-content: center; margin-bottom: 16px; }
.trivia-result h3 { font-family: var(--title); font-size: 2rem; font-weight: 400; color: var(--ink); margin-bottom: 7px; }
.trivia-result p { font-size: 0.79rem; color: var(--gray); font-weight: 300; }
.score-bar { height: 3px; border-radius: 2px; background: var(--lavender-1); margin: 18px 0; overflow: hidden; }
.score-fill { height: 100%; border-radius: 2px; background: var(--plum); transition: width 1s ease; }

/* ====================================================================
   RSVP
==================================================================== */
#rsvp { background: var(--blush-2); }
.rsvp-wrap { max-width: 560px; margin: 52px auto 0; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: var(--sans);
  font-size: 0.57rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: var(--bdr); border-radius: var(--r-sm);
  background: var(--white); font-family: var(--sans); font-size: 0.83rem;
  font-weight: 300; color: var(--ink); outline: none;
  transition: border-color 0.2s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--plum-light); }
.form-textarea { min-height: 110px; resize: vertical; }
.radio-row { display: flex; gap: 10px; }
.radio-opt {
  flex: 1; padding: 12px; border: var(--bdr); border-radius: var(--r-sm);
  background: var(--white); cursor: pointer; text-align: center;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 300; color: var(--gray);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.radio-opt:hover { border-color: var(--lavender-2); background: var(--lavender-1); }
.radio-opt.active { border-color: var(--plum-dark); background: var(--lavender-1); color: var(--plum-dark); font-weight: 400; }
.rsvp-ok {
  text-align: center; padding: 48px 28px;
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--lavender-2); display: none;
  animation: popIn 0.5s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.rsvp-ok-icon { margin-bottom: 16px; color: var(--plum-light); }
.rsvp-ok h3 { font-family: var(--script); font-size: 2.4rem; color: var(--plum); margin-bottom: 8px; }
.rsvp-ok p  { font-size: 0.78rem; color: var(--gray); font-weight: 300; line-height: 1.7; margin-bottom: 22px; }

/* ====================================================================
   PASES / QR
==================================================================== */
#pases { background: var(--blush); }
.pase-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 56px; align-items: start; }
.pase-form { display: flex; flex-direction: column; gap: 18px; }
.pase-preview { position: sticky; top: 80px; }
.pase-tip {
  font-size: 0.69rem; color: var(--gray); font-weight: 300; line-height: 1.7;
  padding: 13px 17px; background: var(--lavender-1); border-radius: var(--r-sm);
  border: 1px solid var(--lavender-2);
}
.pase-card {
  background: var(--white); border-radius: 20px; padding: 42px 34px;
  border: var(--bdr); text-align: center; position: relative; overflow: hidden;
  transition: border-color 0.25s;
}
.pase-card:hover { border-color: var(--lavender-2); }
.pase-card-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--lavender-2); }
.pase-ornament { color: var(--plum-light); margin-bottom: 8px; }
.pase-event-name { font-family: var(--script); font-size: 2.8rem; color: var(--plum-dark); }
.pase-sub-line { font-family: var(--sans); font-size: 0.52rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--gray); margin-top: 4px; }
.pase-hr { width: 36px; height: 1px; background: var(--lavender-2); margin: 16px auto; }
.pase-guest-label { font-family: var(--sans); font-size: 0.52rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.pase-guest-name { font-family: var(--title); font-size: 1.8rem; font-weight: 400; color: var(--ink); }
.pase-guest-count { font-size: 0.72rem; color: var(--gray); margin-bottom: 20px; }
.pase-qr-wrap { display: flex; justify-content: center; padding: 14px; background: var(--blush); border-radius: 12px; border: var(--bdr); margin: 8px 0; }
#paseQRCanvas canvas, #paseQRCanvas img { width: 128px !important; height: 128px !important; }
.pase-qr-placeholder {
  width: 128px; height: 128px; background: var(--lavender-1); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; margin: 0 auto; color: var(--plum-light); font-size: 0.63rem; letter-spacing: 1px;
}
.pase-footer-row { display: flex; justify-content: space-around; margin-top: 18px; padding-top: 14px; border-top: var(--bdr); }
.pfi-item label { font-family: var(--sans); font-size: 0.48rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 3px; }
.pfi-item span { font-family: var(--title); font-size: 0.9rem; font-weight: 400; color: var(--ink); }
.pase-id { font-size: 0.58rem; color: var(--gray); margin-top: 12px; letter-spacing: 1px; }

/* ====================================================================
   MÚSICA
==================================================================== */
.music-player { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.music-tip {
  background: var(--ink); color: rgba(255,255,255,0.9);
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 1px;
  padding: 8px 14px; border-radius: 50px; white-space: nowrap;
  opacity: 0; transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}
.music-player:hover .music-tip { opacity: 1; transform: none; }
.music-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--plum-dark); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.2s;
}
.music-btn:hover { background: var(--plum); transform: scale(1.08); }
.music-btn.playing { animation: musicRing 2.5s ease-in-out infinite; }
@keyframes musicRing { 0%,100% { outline: 0px solid rgba(122,90,154,0); } 50% { outline: 5px solid rgba(122,90,154,0.22); } }

/* ====================================================================
   FOOTER
==================================================================== */
footer {
  background: var(--ink); text-align: center;
  padding: 68px 24px; border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-name { font-family: var(--script); font-size: 3rem; color: var(--lavender-1); display: block; margin-bottom: 14px; }
footer p { font-family: var(--sans); font-size: 0.67rem; font-weight: 300; letter-spacing: 2px; color: rgba(255,255,255,0.26); }
footer p + p { margin-top: 6px; }
.footer-admin-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 26px;
  font-size: 0.57rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.15); transition: color 0.2s;
}
.footer-admin-link:hover { color: rgba(255,255,255,0.42); }

/* ====================================================================
   RESPONSIVE — ≤960px
==================================================================== */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .loc-ed-body { grid-template-columns: 1fr; gap: 32px; }
  .loc-ed-map  { height: 300px; }
  .loc-ed-row  { grid-template-columns: 90px 1fr; }
  .dc-grid    { grid-template-columns: 1fr 1fr; }
  .gifts-grid { grid-template-columns: 1fr 1fr; }
  .fp-people-grid { grid-template-columns: repeat(3, 1fr); }
  .fp-padrinos-grid { grid-template-columns: repeat(3, 1fr); }
  .hc-slide   { grid-template-columns: 1fr; }
  .hc-img     { min-height: 230px; order: -1; }
  .hc-info    { padding: 28px 26px; }
  .pase-layout { grid-template-columns: 1fr; }
  .pase-preview { position: static; }
}

/* ====================================================================
   RESPONSIVE — ≤640px
==================================================================== */
@media (max-width: 640px) {
  section { padding: 72px 18px; }
  .hero-name { font-size: clamp(4rem, 18vw, 6rem); }
  .hero-xv   { letter-spacing: 7px; }
  .cd-grid   { gap: 6px; }
  .cd-block  { min-width: 72px; padding: 12px 7px; }
  .cd-colon  { font-size: 1.7rem; }
  .dc-grid   { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-item.g-tall { grid-row: span 1; aspect-ratio: 1; }
  .g-item.g-wide { grid-column: span 1; aspect-ratio: 1; }
  .gifts-grid { grid-template-columns: 1fr 1fr; }
  .fp-people-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .fp-padrinos-grid { grid-template-columns: 1fr 1fr; }
  .trivia-opts { grid-template-columns: 1fr; }
  .trivia-card { padding: 28px 20px; }
  .radio-row { flex-direction: column; }
  .pase-card { padding: 30px 20px; }
  .pase-event-name { font-size: 2.2rem; }
  .music-player { bottom: 14px; right: 14px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  .env-wrap { width: 220px; height: 150px; }
  .env-flap-top { height: 80px; }
  .env-letter { height: 122px; }
  .env-letter-name { font-size: 1.7rem; }
  .loc-ed-row { grid-template-columns: 1fr; gap: 4px; }
  .loc-ed-label { display: none; }
}

@media (max-width: 400px) {
  .gifts-grid { grid-template-columns: 1fr; }
  .fp-people-grid { grid-template-columns: 1fr 1fr; }
  .cd-block { min-width: 62px; }
  .cd-num   { font-size: 2.4rem; }
}