/* ==========================================================================
   ESTILOS PRINCIPALES - FELIZ CUMPLEAÑOS MADELEINE CÁRDENAS FARFÁN 💖
   ========================================================================== */

:root {
  --primary-color: #ff3366;
  --primary-light: #ff7597;
  --primary-dark: #b80036;
  --secondary-color: #ffd166;
  --gold-accent: #ffdf79;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #ffb300 50%, #ff8f00 100%);
  --rose-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --romantic-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --wine: #7a2e2e;
  --wine-soft: #a8483f;
  --cream: #fbf7ee;
  --dark-bg: #0b0512;
  --dark-surface: rgba(22, 10, 32, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text-main: #ffffff;
  --text-muted: #e4cde5;
  --font-cursive: 'Great Vibes', cursive;
  --font-parisienne: 'Parisienne', cursive;
  --font-handwriting: 'Dancing Script', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 51, 102, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 117, 179, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.09) 0%, transparent 60%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Canvas de Efectos */
#canvas-particles,
#canvas-fireworks,
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#canvas-fireworks { z-index: 99999; }
#cursor-canvas { z-index: 99998; }

/* ==========================================================================
   PANTALLA DE APERTURA / REGALO MÁGICO (INTRO MODAL)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #240b36 0%, #0d0614 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  backdrop-filter: blur(20px);
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 51, 102, 0.3);
  backdrop-filter: blur(25px);
  padding: 3.2rem 2.5rem;
  border-radius: 30px;
  text-align: center;
  max-width: 530px;
  width: 90%;
  position: relative;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gift-box-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
}

.gift-heart-pulse {
  font-size: 4.5rem;
  display: inline-block;
  animation: pulseGlow 1.5s infinite alternate;
  filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.6)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 35px rgba(255, 117, 179, 1)); }
}

.intro-tag {
  display: inline-block;
  background: rgba(255, 51, 102, 0.2);
  color: var(--gold-accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.4);
  margin-bottom: 1.2rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffd1dc 60%, #ff8da1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-subtitle {
  font-family: var(--font-parisienne);
  font-size: 2.7rem;
  color: var(--primary-light);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 15px rgba(255, 117, 179, 0.5);
}

.intro-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

.btn-open-gift {
  background: var(--rose-gradient);
  color: white;
  border: none;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 51, 102, 0.5);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.btn-open-gift:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 51, 102, 0.7);
}

/* ==========================================================================
   REPRODUCTOR DE MÚSICA FLOTANTE (ESTILO VINILO GLASSMORPHISM)
   ========================================================================== */
.music-player-capsule {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background: rgba(20, 8, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  padding: 10px 18px 10px 12px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 51, 102, 0.3);
  transition: var(--transition-smooth);
}

.music-player-capsule:hover {
  box-shadow: 0 20px 40px rgba(255, 51, 102, 0.4);
  transform: translateY(-3px);
}

.vinyl-disc {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 25%, #111 26%, #333 45%, #111 70%, #000 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: spinDisc 5s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

@keyframes spinDisc {
  100% { transform: rotate(360deg); }
}

.vinyl-center {
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid white;
}

.music-info {
  display: flex;
  flex-direction: column;
}

.music-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.music-artist {
  font-size: 0.72rem;
  color: var(--gold-accent);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-bar {
  width: 3px;
  background: var(--primary-light);
  border-radius: 3px;
  height: 4px;
  transition: height 0.2s ease;
}

.music-bars.active .music-bar:nth-child(1) { animation: soundWave 0.8s ease-in-out infinite alternate; }
.music-bars.active .music-bar:nth-child(2) { animation: soundWave 1.2s ease-in-out infinite alternate 0.2s; }
.music-bars.active .music-bar:nth-child(3) { animation: soundWave 0.6s ease-in-out infinite alternate 0.4s; }
.music-bars.active .music-bar:nth-child(4) { animation: soundWave 1.0s ease-in-out infinite alternate 0.1s; }

@keyframes soundWave {
  0% { height: 3px; }
  100% { height: 14px; }
}

.btn-player-ctrl {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.btn-player-ctrl:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

#yt-player-container {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL Y CONTENEDOR
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 10px;
  position: relative;
}

.badge-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  color: var(--gold-accent);
  font-weight: 500;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.hero-title-prefix {
  font-family: var(--font-cursive);
  font-size: 3.6rem;
  color: var(--primary-light);
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 117, 179, 0.6);
  margin-bottom: 0.5rem;
}

.hero-main-name {
  font-family: var(--font-serif);
  font-size: 4.3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #ffe3ea 40%, #ff8ea7 80%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 51, 102, 0.4));
  margin-bottom: 1.5rem;
}

.hero-quote {
  max-width: 680px;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-family: var(--font-body);
}

.hero-quote strong {
  color: #fff;
  font-weight: 600;
}

/* Polaroid Destacada en Hero */
.hero-polaroid-container {
  margin: 1.5rem auto 2.5rem;
}

.hero-main-polaroid {
  display: inline-block;
  background: #ffffff;
  padding: 14px 14px 24px;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.65), 0 0 30px rgba(255, 51, 102, 0.3);
  transform: rotate(-2.5deg);
  transition: var(--transition-smooth);
}

.hero-main-polaroid:hover {
  transform: rotate(0deg) scale(1.04) translateY(-8px);
}

.hero-img-wrap {
  width: min(80vw, 360px);
  height: 280px;
  overflow: hidden;
  border-radius: 4px;
}

.script-caption {
  font-family: var(--font-parisienne) !important;
  font-size: 1.5rem !important;
  color: #241a12 !important;
  margin-top: 10px;
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn-romantic {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-romantic.primary {
  background: var(--rose-gradient);
  color: white;
  box-shadow: 0 10px 25px rgba(255, 51, 102, 0.4);
}

.btn-romantic.primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 15px 35px rgba(255, 51, 102, 0.6);
}

.btn-romantic.glass {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-romantic.glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

/* Estadísticas de Amor */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 117, 179, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN DE GALERÍA POLAROID 3D INTERACTIVA
   ========================================================================== */
.section-heading-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-light);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #ffd1dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  padding: 10px 0;
  margin-bottom: 6rem;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  transform-origin: center center;
}

.polaroid-card:nth-child(3n+1) { transform: rotate(-2.5deg); }
.polaroid-card:nth-child(3n+2) { transform: rotate(1.8deg); }
.polaroid-card:nth-child(3n+3) { transform: rotate(-1.2deg); }
.polaroid-card:nth-child(4n) { transform: rotate(2.4deg); }

.polaroid-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 24px;
  background: rgba(255, 235, 170, 0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 2px;
  z-index: 2;
}

.polaroid-card:hover {
  transform: scale(1.06) rotate(0deg) translateY(-10px) !important;
  box-shadow: 0 25px 50px rgba(255, 51, 102, 0.35), 0 10px 20px rgba(0,0,0,0.4);
  z-index: 10;
}

.polaroid-img-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 4px;
  background: #20102b;
  position: relative;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.08);
}

.polaroid-caption {
  font-family: var(--font-parisienne);
  font-size: 1.35rem;
  color: #2b1736;
  text-align: center;
  margin-top: 14px;
  line-height: 1.2;
}

.polaroid-heart-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 1rem;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.polaroid-card:hover .polaroid-heart-badge {
  opacity: 1;
}

/* ==========================================================================
   SECCIÓN INTERACTIVA: PASTEL DE CUMPLEAÑOS Y PEDIR UN DESEO 🎂🕯️
   ========================================================================== */
.cake-interactive-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 35px;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 6rem;
  backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
}

.cake-wrapper {
  position: relative;
  width: 250px;
  height: 210px;
  margin: 2rem auto 2.5rem;
}

.cake-plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 16px;
  background: #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.cake-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px 12px 6px 6px;
}

.layer-bottom {
  bottom: 16px;
  width: 200px;
  height: 60px;
  background: linear-gradient(to right, #ff416c, #ff758c);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.15);
}

.layer-middle {
  bottom: 76px;
  width: 150px;
  height: 50px;
  background: linear-gradient(to right, #ffd166, #ffe082);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15);
}

.layer-top {
  bottom: 126px;
  width: 100px;
  height: 45px;
  background: linear-gradient(to right, #ff8da1, #ffa8ba);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.15);
}

.candle {
  position: absolute;
  bottom: 171px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 35px;
  background: repeating-linear-gradient(45deg, #fff, #fff 5px, #ff3366 5px, #ff3366 10px);
  border-radius: 3px;
  z-index: 5;
}

.candle-wick {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: #333;
}

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #ffd700 0%, #ff4500 80%);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 12px #ffbb00);
  animation: flicker 0.8s ease-in-out infinite alternate;
  transform-origin: center bottom;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-3deg) scale(0.95); }
  100% { transform: translateX(-50%) rotate(3deg) scale(1.1); }
}

.flame.blown-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-15px) scale(0.2);
  pointer-events: none;
}

.smoke-cloud {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 1s ease;
}

.smoke-cloud.active {
  opacity: 0.8;
  transform: translateX(-50%) translateY(-35px) scale(1.4);
}

.wish-instruction {
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
  color: var(--text-main);
}

.btn-blow-candle {
  background: var(--gold-gradient);
  color: #2b1700;
  border: none;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-blow-candle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 179, 0, 0.6);
}

.wish-message-reveal {
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 117, 179, 0.4);
  border-radius: 20px;
  display: none;
  animation: fadeInWish 0.8s ease forwards;
}

@keyframes fadeInWish {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wish-message-reveal h3 {
  font-family: var(--font-serif);
  color: var(--gold-accent);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   SECCIÓN: CARTAS Y VERSOS (ESTILO TICKETS & PERGAMINO)
   ========================================================================== */
.ticket-letters-section {
  margin-bottom: 6rem;
}

.ticket-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.romantic-ticket {
  width: 100%;
  background: var(--cream);
  color: #241a12;
  position: relative;
  padding: 3.2rem 3rem 2.8rem;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: rotate(-0.6deg);
  transition: var(--transition-smooth);
}

.ticket-stack .romantic-ticket:nth-child(even) { transform: rotate(0.8deg); }
.ticket-stack .romantic-ticket:hover {
  transform: rotate(0deg) scale(1.015) translateY(-5px);
  box-shadow: 0 35px 70px rgba(255, 51, 102, 0.25);
}

/* Borde dentado estilo ticket */
.romantic-ticket::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background-image:
    linear-gradient(45deg, var(--wine) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wine) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wine) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wine) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
  border-radius: 12px 12px 0 0;
}

.romantic-ticket::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 10px;
  background-image:
    linear-gradient(45deg, var(--wine) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wine) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wine) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wine) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
  border-radius: 0 0 12px 12px;
}

.ticket-tag {
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--wine-soft);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ticket-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #1a0f1d;
  margin-bottom: 1.4rem;
}

.romantic-ticket p {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  color: #312117;
}

.ticket-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
  color: var(--wine-soft);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.ticket-divider::before,
.ticket-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(122, 46, 46, 0.3);
}

.ticket-signoff {
  margin-top: 1.5rem;
  font-family: var(--font-parisienne);
  font-size: 2.1rem;
  color: var(--wine);
  text-align: right;
}

.poem-ticket {
  background: linear-gradient(to bottom, #fffdf8 0%, #fff7eb 100%);
}

.poem-body p {
  font-style: italic;
  line-height: 2.1;
  font-size: 1.4rem;
  text-align: center;
}

/* ==========================================================================
   SECCIÓN: RAZONES POR LAS QUE ERES ESPECIAL
   ========================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 6rem;
}

.reason-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px 24px;
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.reason-card::after {
  content: '❤️';
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 4rem;
  opacity: 0.05;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
  box-shadow: 0 15px 35px rgba(255, 51, 102, 0.2);
}

.reason-card:hover::after {
  opacity: 0.15;
  transform: scale(1.1);
}

.reason-number {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  background: var(--rose-gradient);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.reason-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
}

.reason-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   MODAL LIGHTBOX PARA FOTOS
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 3, 15, 0.93);
  backdrop-filter: blur(25px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  font-family: var(--font-parisienne);
  font-size: 2rem;
  color: var(--gold-accent);
  margin-top: 15px;
}

.lightbox-btn-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.6);
  transition: var(--transition-smooth);
}

.lightbox-btn-close:hover {
  transform: scale(1.15) rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-nav:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -25px; }
.lightbox-next { right: -25px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 50px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
}

.footer-signoff-script {
  font-family: var(--font-parisienne);
  font-size: 2.8rem;
  color: var(--gold-accent);
  margin-bottom: 0.8rem;
}

.footer-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-highlight {
  color: var(--primary-light);
  font-weight: 700;
}

.footer-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title-prefix { font-size: 2.5rem; }
  .hero-main-name { font-size: 2.8rem; }
  .hero-quote { font-size: 1.15rem; }
  .section-title { font-size: 2.2rem; }
  .romantic-ticket { padding: 2.4rem 1.6rem 2rem; }
  .romantic-ticket p { font-size: 1.15rem; line-height: 1.7; }
  .ticket-title { font-size: 1.7rem; }
  .poem-body p { font-size: 1.2rem; }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .polaroid-img-wrapper { height: 230px; }
  
  .music-player-capsule {
    bottom: 15px;
    right: 15px;
    left: 15px;
    justify-content: space-between;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-btn-close { top: 10px; right: 10px; }
}
