/* ============================================================
   XV AÑOS DE FRANCESCA — ESTILOS PREMIUM v2
   Estructura tipo Fixdate · Paleta clásica elegante
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --ch:       #f5e6c8;
  --ch-lt:    #fdf6e7;
  --ch-dk:    #e8d0a0;
  --or:       #c9a84c;
  --or-lt:    #e2c46e;
  --or-dk:    #9a7535;
  --bo:       #6b1a2a;
  --vi:       #8b2635;
  --iv:       #faf5ed;
  --iv-dk:    #f0e8d5;
  --tx-dk:    #2c1a0e;
  --tx-md:    #5a3820;
  --tx-su:    #8a6040;

  --ff-h:  'Great Vibes', cursive;
  --ff-s:  'Cormorant Garamond', serif;
  --ff-b:  'Playfair Display', serif;

  --r:   14px;
  --r-l: 22px;
  --tr:  0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr-f:0.22s ease;

  /* Card glass */
  --card-bg:    linear-gradient(145deg, rgba(253,246,231,0.95), rgba(255,252,240,0.9));
  --card-b:     rgba(201,168,76,0.28);
  --card-sh:    0 6px 28px rgba(107,26,42,0.09), 0 1px 4px rgba(201,168,76,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  --card-sh-hv: 0 14px 40px rgba(107,26,42,0.15), 0 4px 12px rgba(201,168,76,0.2);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-b);
  background: var(--iv);
  color: var(--tx-dk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ══════════════════════════════════════════════════════════
   SPLASH
   ══════════════════════════════════════════════════════════ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-height: 100vh; text-align: center;
  background: radial-gradient(ellipse at center, #fdf6e7 0%, #f5e6c8 50%, #e2d2b0 100%);
  overflow: hidden;
  transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1), transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#splash.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
#splash-canvas { position: absolute; inset: 0; pointer-events: none; }
#splash::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.5;
}

.splash-corner {
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(201, 168, 76, 0.35));
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.4s ease;
}
.splash-corner svg { width: 100%; height: 100%; }
.splash-corner--tl { top: 0; left: 0; }
.splash-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.splash-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.splash-corner--br { bottom: 0; right: 0; transform: scale(-1); }
@media (min-width: 600px) { .splash-corner { width: 160px; height: 160px; } }

.splash-content {
  position: relative; z-index: 2;
  text-align: center; display: flex;
  flex-direction: column; align-items: center;
}

@keyframes revealSlow {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmerOnce {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.splash-monogram {
  font-family: var(--ff-h);
  font-size: clamp(96px, 22vw, 156px);
  background: linear-gradient(90deg, var(--or-dk) 0%, var(--or-lt) 35%, #ffffff 50%, var(--or-lt) 65%, var(--or-dk) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 25px rgba(201,168,76,0.38));
  opacity: 0;
  animation: 
    revealSlow 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards,
    shimmerOnce 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.9s 1 forwards;
  /* Prevent cursive glyph clipping */
  display: inline-block;
  width: max-content;
  padding: 0.05em 0.3em 0.05em 0.15em;
  overflow: visible;
}

.splash-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0; color: var(--or);
  opacity: 0;
  animation: revealSlow 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}
.splash-sep::before, .splash-sep::after {
  content: ''; width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.splash-sep-diamond { width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); }

.splash-nombre {
  font-family: var(--ff-h);
  font-size: clamp(54px, 14vw, 110px);
  background: linear-gradient(90deg, var(--bo) 0%, var(--vi) 35%, var(--or-lt) 50%, var(--vi) 65%, var(--bo) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  filter: drop-shadow(0 0 12px rgba(107,26,42,0.18));
  opacity: 0;
  animation: 
    revealSlow 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards,
    shimmerOnce 2.5s cubic-bezier(0.25, 1, 0.5, 1) 1.3s 1 forwards;
  /* Prevent cursive glyph clipping */
  padding: 0.1em 0.1em;
}
.splash-titulo {
  font-family: var(--ff-s);
  font-size: clamp(15px, 3.5vw, 24px);
  color: var(--tx-md); font-weight: 300;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-top: 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: revealSlow 2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}
.splash-fecha {
  font-family: var(--ff-s);
  font-size: clamp(13px, 3vw, 19px);
  color: var(--or-dk); font-weight: 400;
  letter-spacing: 0.32em; margin-top: 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: revealSlow 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.splash-btns {
  display: flex; gap: 16px; margin-top: 40px;
  flex-wrap: wrap; justify-content: center;
  opacity: 0;
  animation: revealSlow 2.4s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}
.splash-btn {
  font-family: var(--ff-s);
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bo);
  background: rgba(253, 246, 231, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 168, 76, 0.6);
  padding: 15px 28px; border-radius: 4px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 180px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(201,168,76,0.12);
  -webkit-font-smoothing: antialiased;
}
.splash-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--or);
  opacity: 0; transition: opacity 0.4s ease;
  z-index: 0;
}
.splash-btn:hover, .splash-btn:active {
  transform: scale(1.04) translateY(-1px);
  color: #ffffff;
  border-color: var(--or-lt);
  box-shadow: 0 8px 24px rgba(201,168,76,0.38);
}
.splash-btn:hover::before, .splash-btn:active::before {
  opacity: 1;
}
.splash-btn span, .splash-btn svg { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   FAB MÚSICA
   ══════════════════════════════════════════════════════════ */
#music-fab {
  position: fixed; bottom: 24px; right: 20px; z-index: 990;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--or), var(--ch-dk));
  border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(201,168,76,0.45);
  transition: var(--tr);
}
#music-fab.visible { display: flex; }
#music-fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(201,168,76,0.55); }
#music-fab svg { color: var(--bo); transition: transform 0.3s ease; }
#music-fab.playing svg {
  animation: rotateFabIcon 4s linear infinite;
}
#music-fab.playing {
  box-shadow: 0 8px 28px rgba(107,26,42,0.35), 0 0 15px rgba(201,168,76,0.4);
}
@keyframes rotateFabIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.music-fab-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.38);
  animation: ring 2.2s ease-in-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.45); opacity: 0; } }

/* ══════════════════════════════════════════════════════════
   CONTENIDO PRINCIPAL
   ══════════════════════════════════════════════════════════ */
#main-content {
  opacity: 0;
  filter: blur(16px);
  transform: scale(0.98);
  transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), filter 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}
#main-content.visible {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

/* ── Contenedor global de secciones ─────────────────────── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  overflow: hidden; padding: 60px 24px 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,38,53,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.09) 0%, transparent 55%),
    linear-gradient(180deg, var(--iv) 0%, var(--ch-lt) 50%, var(--iv) 100%);
}
.hero-orn {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 480px); opacity: 0.4;
  pointer-events: none;
}
.hero-orn--t { top: 8px; }
.hero-orn--b { bottom: 8px; transform: translateX(-50%) rotate(180deg); }

.hero-content { position: relative; z-index: 2; }
.hero-pre {
  font-family: var(--ff-s);
  font-size: clamp(10px, 2.4vw, 13px);
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--or-dk); margin-bottom: 6px;
  position: relative;
  left: 5.5vw; /* Desplazar a la derecha para balancear el rulo de la F */
}
.hero-nombre {
  font-family: var(--ff-h);
  font-size: clamp(62px, 17vw, 124px);
  color: var(--bo); line-height: 0.95;
  animation: glow 4s ease-in-out infinite alternate;
  position: relative;
  left: -2.2vw; /* Desplazar a la izquierda para compensar el rulo inicial */
}
.hero-titulo {
  font-family: var(--ff-s);
  font-size: clamp(14px, 3.5vw, 26px);
  color: var(--tx-md); font-weight: 300;
  letter-spacing: 0.26em; text-transform: uppercase;
  margin-top: 4px;
}
.hero-fecha-txt {
  font-family: var(--ff-s);
  font-size: clamp(13px, 3vw, 18px);
  color: var(--or-dk); letter-spacing: 0.22em;
  margin-top: 16px;
}

/* ── Separador ───────────────────────────────────────────── */
.sep {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin: 18px 0;
}
.sep-line {
  width: clamp(36px, 10vw, 70px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.sep-line--r { background: linear-gradient(90deg, var(--or), transparent); }
.sep-d {
  width: 7px; height: 7px; background: var(--or);
  transform: rotate(45deg); box-shadow: 0 0 8px rgba(201,168,76,0.45);
}

/* ══════════════════════════════════════════════════════════
   CUENTA REGRESIVA — estilo compacto pill
   ══════════════════════════════════════════════════════════ */
#countdown {
  padding: 0 16px 0;
  position: relative;
}
.countdown-wrap {
  max-width: 680px; margin: 0 auto;
}
/* Card contenedora */
.countdown-card {
  background: linear-gradient(135deg, var(--bo) 0%, var(--vi) 100%);
  border-radius: var(--r-l);
  padding: 28px 20px 22px;
  box-shadow: 0 10px 40px rgba(107,26,42,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
  margin: 16px auto 36px;
}
.countdown-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(201,168,76,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.countdown-eyebrow {
  font-family: var(--ff-s);
  font-size: 11px; letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  text-align: center; margin-bottom: 16px;
  position: relative;
}
.countdown-grid {
  display: flex; gap: 8px; justify-content: center;
  position: relative;
}
.countdown-item {
  flex: 1; max-width: 88px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.countdown-box {
  width: 100%; aspect-ratio: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  position: relative; overflow: hidden;
}
.countdown-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: rgba(255,255,255,0.05);
  border-radius: 12px 12px 0 0;
}
.countdown-num {
  font-family: var(--ff-s);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 600; color: var(--ch-lt);
  line-height: 1; position: relative; z-index: 1;
}
.countdown-label {
  font-family: var(--ff-s);
  font-size: clamp(8px, 1.8vw, 11px);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201,168,76,0.7);
}
.countdown-sep {
  font-family: var(--ff-s);
  font-size: clamp(20px, 5vw, 30px);
  color: rgba(201,168,76,0.4);
  align-self: center; padding-bottom: 18px;
  line-height: 1; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADER reutilizable
   ══════════════════════════════════════════════════════════ */
.sh {
  text-align: center;
  margin-top: clamp(48px, 8vw, 72px);
  margin-bottom: clamp(24px, 5vw, 36px);
}
.sh-label {
  font-family: var(--ff-s);
  font-size: clamp(10px, 2.2vw, 12px);
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--or-dk); margin-bottom: 22px;
}
.sh-title {
  font-family: var(--ff-h);
  font-size: clamp(32px, 7.5vw, 52px);
  color: var(--bo); line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   MENSAJE DE BIENVENIDA
   ══════════════════════════════════════════════════════════ */
#bienvenida { padding: 0 16px; }
.bienvenida-card {
  max-width: 680px; margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-l);
  padding: clamp(26px, 5vw, 44px) clamp(20px, 4.5vw, 42px);
  box-shadow: var(--card-sh);
  position: relative; overflow: hidden;
}
.bienvenida-card::before {
  content: '"';
  font-family: var(--ff-h);
  font-size: 110px; color: rgba(201,168,76,0.12);
  position: absolute; top: -18px; left: 18px;
  line-height: 1; pointer-events: none;
}
.bienvenida-texto {
  font-family: var(--ff-s);
  font-size: clamp(15px, 3.2vw, 18px);
  color: var(--tx-md); font-weight: 400;
  line-height: 1.88; font-style: italic;
  white-space: pre-line; position: relative; z-index: 1;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN "LA FIESTA" — Grid de tarjetas Fixdate
   ══════════════════════════════════════════════════════════ */
#fiesta { padding: 0 16px; }
.fiesta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 680px; margin: 0 auto;
}
@media (max-width: 768px) {
  .fiesta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .f-card {
    justify-content: space-between;
    min-height: 200px;
  }
}

/* Tarjeta base */
.f-card {
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-l);
  padding: 22px 18px 20px;
  box-shadow: var(--card-sh);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
  transition: var(--tr);
  cursor: default;
  position: relative; overflow: hidden;
  height: 100%;
}
.f-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.f-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-sh-hv);
  border-color: rgba(201,168,76,0.5);
}

.f-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--or-dk); flex-shrink: 0;
}
.f-card-titulo {
  font-family: var(--ff-s);
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--or-dk); font-weight: 600;
}
.f-card-valor {
  font-family: var(--ff-h);
  font-size: clamp(24px, 5.5vw, 36px);
  color: var(--bo); line-height: 1.1;
}
.f-card-sub {
  font-family: var(--ff-s);
  font-size: clamp(11px, 2.5vw, 13px);
  color: var(--tx-su); line-height: 1.45;
  font-style: italic;
}

/* Botón de tarjeta */
.f-card-btn {
  margin-top: auto;
  font-family: var(--ff-s);
  font-size: clamp(10px, 2.2vw, 12px);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--bo);
  background: transparent;
  border: 1px solid var(--or);
  padding: 9px 18px; border-radius: 3px;
  cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 6px;
}
.f-card-btn:hover {
  background: linear-gradient(135deg, var(--or-lt), var(--ch-dk));
  box-shadow: 0 4px 16px rgba(201,168,76,0.28);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   DETALLES — layout 2 col mobile-first
   ══════════════════════════════════════════════════════════ */
#detalles { padding: 0 16px; }
.detalles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 680px; margin: 0 auto;
}
@media (max-width: 360px) {
  .detalles-grid { grid-template-columns: 1fr; }
}

.d-card {
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r);
  padding: 18px 14px;
  box-shadow: var(--card-sh);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-align: center;
  transition: var(--tr);
}
.d-card:hover { transform: translateY(-3px); box-shadow: var(--card-sh-hv); }
.d-card--wide { grid-column: 1 / -1; }
.d-card-icon { color: var(--or); }
.d-card-label {
  font-family: var(--ff-s);
  font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--or-dk);
}
.d-card-val {
  font-family: var(--ff-s);
  font-size: clamp(13px, 3.2vw, 16px);
  color: var(--tx-dk); font-weight: 500;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════
   UBICACIÓN
   ══════════════════════════════════════════════════════════ */
#ubicacion { padding: 0 16px; }
.ubicacion-card {
  max-width: 680px; margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-l);
  box-shadow: var(--card-sh);
  overflow: hidden;
}
.mapa-wrapper iframe {
  width: 100%; height: 240px;
  border: none; display: block;
}
.ubicacion-footer {
  padding: 16px 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.ubicacion-dir {
  font-family: var(--ff-s);
  font-size: clamp(12px, 2.8vw, 15px);
  color: var(--tx-md); line-height: 1.4;
  font-style: italic; flex: 1;
}
.btn-llegar {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-s);
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bo);
  background: linear-gradient(135deg, var(--or-lt), var(--ch-dk));
  border: 1px solid var(--or);
  padding: 11px 20px; border-radius: 3px;
  cursor: pointer; transition: var(--tr);
  box-shadow: 0 3px 14px rgba(201,168,76,0.2);
  white-space: nowrap; text-decoration: none;
}
.btn-llegar:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(201,168,76,0.35); }

/* ══════════════════════════════════════════════════════════
   RSVP — bloque destacado
   ══════════════════════════════════════════════════════════ */
#rsvp { padding: 0 16px; }
.rsvp-card {
  max-width: 680px; margin: 0 auto;
  background: linear-gradient(140deg, var(--bo) 0%, var(--vi) 100%);
  border-radius: var(--r-l);
  padding: 36px 24px;
  box-shadow: 0 12px 48px rgba(107,26,42,0.32);
  text-align: center; position: relative; overflow: hidden;
}
.rsvp-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 65%);
}
.rsvp-card-titulo {
  font-family: var(--ff-h);
  font-size: clamp(30px, 7.5vw, 46px);
  color: var(--ch-lt); position: relative;
}
.rsvp-card-texto {
  font-family: var(--ff-s);
  font-size: clamp(13px, 2.8vw, 16px);
  color: rgba(245,230,200,0.72);
  margin-top: 10px; line-height: 1.7; position: relative;
}
.btn-confirmar {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 24px;
  font-family: var(--ff-s);
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bo);
  background: linear-gradient(135deg, var(--or-lt), var(--ch-dk));
  border: none; padding: 15px 32px; border-radius: 3px;
  cursor: pointer; transition: var(--tr);
  box-shadow: 0 4px 18px rgba(201,168,76,0.32);
  position: relative; text-decoration: none;
}
.btn-confirmar:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(201,168,76,0.5); }

/* ══════════════════════════════════════════════════════════
   REGALOS
   ══════════════════════════════════════════════════════════ */
#regalos {
  padding: 0 16px;
}
#regalos .sep {
  margin: 10px 0;
}
#regalos .sh {
  margin-bottom: 12px;
}
.regalos-card {
  max-width: 680px; margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-l);
  padding: 30px 24px;
  box-shadow: var(--card-sh);
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.regalos-icon { color: var(--or); }
.regalos-texto {
  font-family: var(--ff-s);
  font-size: clamp(14px, 3vw, 17px);
  color: var(--tx-md); font-style: italic;
  line-height: 1.65;
}
.btn-ver-mas {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-s);
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bo);
  background: transparent; border: 1px solid var(--or);
  padding: 11px 24px; border-radius: 3px;
  cursor: pointer; transition: var(--tr);
}
.btn-ver-mas:hover {
  background: linear-gradient(135deg, var(--or-lt), var(--ch-dk));
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(201,168,76,0.28);
}

/* ══════════════════════════════════════════════════════════
   GALERÍA
   ══════════════════════════════════════════════════════════ */
#galeria { padding: 0 16px; }
.carousel {
  max-width: 520px; margin: 0 auto; position: relative;
}
.carousel-track-wrap {
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: 0 10px 48px rgba(44,26,14,0.14);
  border: 2px solid rgba(201,168,76,0.38);
  position: relative; aspect-ratio: 3/4;
  background: var(--ch-dk);
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform 0.62s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast; /* Optimiza nitidez en navegadores basados en Blink/WebKit */
  image-rendering: crisp-edges;
}
.carousel-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(145deg, var(--ch-dk), var(--ch));
  color: var(--or-dk);
}
.carousel-placeholder-txt {
  font-family: var(--ff-s); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6;
}
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(250,245,237,0.92);
  border: 1px solid rgba(201,168,76,0.45);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--bo); transition: var(--tr-f); z-index: 10;
  box-shadow: 0 2px 10px rgba(44,26,14,0.14);
}
.carousel-nav:hover { background: var(--ch-lt); transform: translateY(-50%) scale(1.1); }
.carousel-nav--l { left: -15px; }
.carousel-nav--r { right: -15px; }
.carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 15px; }
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(201,168,76,0.28);
  border: 1px solid rgba(201,168,76,0.45);
  cursor: pointer; transition: var(--tr-f);
}
.carousel-dot.active { background: var(--or); transform: scale(1.35); }

/* ══════════════════════════════════════════════════════════
   MODAL DE REGALOS
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8888;
  background: rgba(44,26,14,0.72);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: linear-gradient(145deg, var(--ch-lt), #fff8ee);
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: var(--r-l);
  padding: clamp(26px, 5vw, 44px) clamp(20px, 4.5vw, 40px);
  width: 100%; max-width: 460px;
  position: relative;
  box-shadow: 0 20px 72px rgba(44,26,14,0.28);
  transform: scale(0.9) translateY(18px);
  transition: transform 0.34s cubic-bezier(0.34,1.56,0.64,1), opacity 0.34s ease;
  max-height: 90vh; overflow-y: auto;
}
#modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border: none;
  background: none; cursor: pointer; color: var(--tx-su);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--tr-f);
}
.modal-close:hover { background: rgba(201,168,76,0.14); color: var(--bo); }
.modal-titulo {
  font-family: var(--ff-h);
  font-size: clamp(34px, 8vw, 50px);
  color: var(--bo); text-align: center; line-height: 1;
}
.modal-texto {
  font-family: var(--ff-s);
  font-size: clamp(13px, 3vw, 16px);
  color: var(--tx-md); text-align: center;
  line-height: 1.75; font-style: italic; margin-top: 8px;
}
.modal-dato-group { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-dato {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--r); padding: 13px 15px;
}
.modal-dato-label {
  font-family: var(--ff-s);
  font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--or-dk); margin-bottom: 3px;
}
.modal-dato-valor {
  font-family: var(--ff-s);
  font-size: clamp(14px, 3vw, 16px);
  color: var(--tx-dk); font-weight: 500; word-break: break-all;
}
.modal-btn-copy {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 7px;
  font-family: var(--ff-s);
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bo);
  background: transparent; border: 1px solid rgba(201,168,76,0.36);
  padding: 8px; border-radius: 6px; cursor: pointer; transition: var(--tr-f);
}
.modal-btn-copy:hover { background: rgba(201,168,76,0.12); }
.modal-btn-copy.copied { color: #2a7a4a; border-color: #2a7a4a; }

/* ══════════════════════════════════════════════════════════
   MODAL MÚSICA (sugerir canción)
   ══════════════════════════════════════════════════════════ */
.modal-musica-track {
  display: flex; align-items: center; gap: 12px;
  background: rgba(107,26,42,0.06);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--r); padding: 14px 16px;
  margin-top: 16px;
}
.modal-musica-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bo), var(--vi));
  display: flex; align-items: center; justify-content: center;
  color: var(--ch-lt); flex-shrink: 0;
}
.modal-musica-info { flex: 1; }
.modal-musica-title {
  font-family: var(--ff-s); font-size: 15px;
  font-weight: 600; color: var(--tx-dk);
}
.modal-musica-artist {
  font-family: var(--ff-s); font-size: 13px;
  color: var(--tx-su); font-style: italic;
}
.modal-wa-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-top: 16px; justify-content: center;
  font-family: var(--ff-s);
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bo);
  background: linear-gradient(135deg, var(--or-lt), var(--ch-dk));
  border: none; padding: 13px 24px; border-radius: 3px;
  cursor: pointer; transition: var(--tr);
  box-shadow: 0 3px 14px rgba(201,168,76,0.24);
  text-decoration: none;
}
.modal-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(201,168,76,0.38); }

/* ══════════════════════════════════════════════════════════
   SECCIÓN FINAL
   ══════════════════════════════════════════════════════════ */
#final { padding: 0 16px; }
.final-card {
  max-width: 680px; margin: 0 auto;
  background: linear-gradient(140deg, var(--bo) 0%, var(--vi) 100%);
  border-radius: var(--r-l);
  padding: 48px 24px;
  box-shadow: 0 12px 50px rgba(107,26,42,0.28);
  text-align: center; position: relative; overflow: hidden;
}
.final-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.13) 0%, transparent 65%);
}
.final-msg {
  font-family: var(--ff-s);
  font-size: clamp(15px, 3.5vw, 20px);
  color: rgba(245,230,200,0.82);
  line-height: 1.7; max-width: 420px;
  margin: 0 auto; position: relative;
}
.final-firma {
  font-family: var(--ff-h);
  font-size: clamp(44px, 11vw, 80px);
  color: var(--ch-lt); margin-top: 14px;
  position: relative;
  animation: glow 4s ease-in-out infinite alternate;
}
.final-sep {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin: 20px 0;
}
.final-sep-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5));
}
.final-sep-line--r { background: linear-gradient(90deg, rgba(201,168,76,0.5), transparent); }
.final-sep-d {
  width: 6px; height: 6px;
  background: rgba(201,168,76,0.6); transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════
   PAGE LAYOUT — espaciado vertical uniforme
   ══════════════════════════════════════════════════════════ */
.section {
  padding-top: clamp(36px, 7vw, 56px);
  padding-bottom: 0;
}
.section:last-child { padding-bottom: clamp(36px, 7vw, 56px); }

/* ══════════════════════════════════════════════════════════
   ANIMACIONES SCROLL
   ══════════════════════════════════════════════════════════ */
.fi, .fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.72s ease, transform 0.72s ease; }
.fi.vis, .fade-in.visible { opacity: 1; transform: translateY(0); }
.fi-d1 { transition-delay: 0.08s; }
.fi-d2 { transition-delay: 0.16s; }
.fi-d3 { transition-delay: 0.24s; }

/* ══════════════════════════════════════════════════════════
   UTILIDADES
   ══════════════════════════════════════════════════════════ */
.tc { text-align: center; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--iv); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   INNER FRAME Y CORNER ORNAMENTS FOR HERO
   ══════════════════════════════════════════════════════════ */
.hero-inner-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  pointer-events: none;
  z-index: 1;
}
.hero-inner-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 168, 76, 0.14);
}
.hero-corner {
  position: absolute;
  width: clamp(70px, 12vw, 110px);
  height: clamp(70px, 12vw, 110px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
  transition: opacity var(--tr);
}
.hero-corner svg { width: 100%; height: 100%; }
.hero-corner--tl { top: 16px; left: 16px; }
.hero-corner--tr { top: 16px; right: 16px; transform: scaleX(-1); }
.hero-corner--bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.hero-corner--br { bottom: 16px; right: 16px; transform: scale(-1); }

@media (max-width: 480px) {
  .hero-inner-frame { inset: 8px; }
  .hero-inner-frame::after { inset: 2px; }
  .hero-corner--tl { top: 8px; left: 8px; }
  .hero-corner--tr { top: 8px; right: 8px; }
  .hero-corner--bl { bottom: 8px; left: 8px; }
  .hero-corner--br { bottom: 8px; right: 8px; }
}
