/* ==========================================================================
   PARA MI PRINCESITA ANDREITA - LUXURY ROMANTIC THEME (3D ENHANCED)
   Diseñado con amor por Kenn
   ========================================================================== */

:root {
  /* Paleta de Colores Ultra-Premium */
  --bg-dark-core: #08020d;
  --bg-dark-secondary: #13061e;
  --bg-dark-card: rgba(26, 10, 38, 0.72);
  --bg-card-hover: rgba(46, 16, 68, 0.85);
  
  --rose-gold: #f7cad0;
  --rose-gold-glow: #ff758f;
  --ruby-primary: #ff2a6d;
  --ruby-deep: #a4133c;
  --gold-accent: #ffd166;
  --gold-glow: #ffe066;
  --gold-bright: #fff275;
  
  --text-pure: #ffffff;
  --text-main: #f5ebf9;
  --text-muted: #cdb6d6;
  --text-gold: #ffeaa7;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-gold-glass: rgba(255, 209, 102, 0.35);
  --border-ruby-glass: rgba(255, 77, 109, 0.4);

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-ruby: 0 0 45px rgba(255, 42, 109, 0.45);
  --shadow-glow-gold: 0 0 40px rgba(255, 209, 102, 0.35);
  --shadow-card: 0 20px 45px -12px rgba(0, 0, 0, 0.65);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-script: 'Sacramento', cursive;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Resets y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-core);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, #1f0b2f 0%, #0c0414 45%, #06020a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Canvas Estelar de Fondo */
#starry-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Canvas 3D Three.js (Corazón Cristalino & Partículas 3D) */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.88;
  transition: opacity 0.8s ease;
}

.ambient-glow {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.14) 0%, rgba(164, 19, 60, 0.06) 50%, transparent 80%);
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.7; }
  100% { transform: translate(-50%, -45%) scale(1.22); opacity: 1; }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

/* Tipografía y Elementos Comunes */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff275 0%, #ffd166 35%, #ff758f 75%, #ff2a6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 15px rgba(255, 209, 102, 0.25));
}

.text-center {
  text-align: center;
}

/* Botones Luxury con Efectos 3D y Shimmer */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: linear-gradient(135deg, #ff2a6d 0%, #c9184a 50%, #800f2f 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 42, 109, 0.45);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(255, 42, 109, 0.65), 0 0 20px rgba(255, 209, 102, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-gold);
}

.btn-magical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  background: linear-gradient(135deg, #ffd166 0%, #ff9e00 100%);
  color: #2b1100;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 209, 102, 0.45);
  transition: var(--transition-bounce);
}

.btn-magical:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 45px rgba(255, 209, 102, 0.75);
}

.btn-outline-gold {
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--gold-accent);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
  background: rgba(255, 209, 102, 0.18);
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.25);
}

/* NAVBAR LUXURY */
.navbar-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  padding: 0.8rem 1.75rem;
  background: rgba(18, 6, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 42, 109, 0.1);
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
}

.heart-pulse {
  display: inline-block;
  animation: heartBeat 1.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.35); }
  28% { transform: scale(1); }
  42% { transform: scale(1.35); }
  70% { transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.music-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 42, 109, 0.18);
  border: 1px solid rgba(255, 42, 109, 0.4);
  color: var(--text-pure);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.music-toggle-btn:hover {
  background: rgba(255, 42, 109, 0.35);
  border-color: var(--ruby-primary);
  box-shadow: var(--shadow-glow-ruby);
}

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

.music-wave i {
  display: inline-block;
  width: 3px;
  height: 100%;
  background: var(--gold-accent);
  border-radius: 3px;
  animation: waveAnim 1.2s infinite ease-in-out;
  animation-play-state: paused;
}

.music-toggle-btn.playing .music-wave i {
  animation-play-state: running;
}

.music-wave i:nth-child(2) { animation-delay: 0.2s; }
.music-wave i:nth-child(3) { animation-delay: 0.4s; }
.music-wave i:nth-child(4) { animation-delay: 0.1s; }

@keyframes waveAnim {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   SECCIÓN 1: HERO (GRAN APERTURA)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding: 8.5rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-backdrop-shimmer {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 850px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(255, 42, 109, 0.2) 0%, rgba(255, 209, 102, 0.1) 50%, transparent 80%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.badge-birthday {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.6rem;
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.25) 0%, rgba(255, 209, 102, 0.25) 100%);
  border: 1px solid var(--gold-accent);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(255, 42, 109, 0.35), 0 0 20px rgba(255, 209, 102, 0.4);
  animation: pulseBirthday 2s infinite ease-in-out;
}

@keyframes pulseBirthday {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(255, 42, 109, 0.35), 0 0 20px rgba(255, 209, 102, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 12px 40px rgba(255, 42, 109, 0.6), 0 0 35px rgba(255, 209, 102, 0.7); }
}

.badge-royal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.4rem;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 100px;
  color: var(--gold-accent);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 25px rgba(255, 209, 102, 0.2);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

/* SECCIÓN CUMPLEAÑOS */
.section-birthday {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.birthday-card-wrapper {
  background: linear-gradient(135deg, rgba(45, 14, 60, 0.85) 0%, rgba(22, 6, 32, 0.95) 100%);
  border: 2px solid var(--border-gold-glass);
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card), 0 0 45px rgba(255, 209, 102, 0.25);
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.birthday-cake-interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cake-illustration {
  position: relative;
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.candle-flame {
  font-size: 2.2rem;
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  animation: flickerFlame 0.8s infinite alternate ease-in-out;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes flickerFlame {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); filter: drop-shadow(0 0 8px #ffd166); }
  100% { transform: translateX(-50%) scale(1.2) rotate(3deg); filter: drop-shadow(0 0 16px #ff758f); }
}

.candle-flame.blown-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) scale(0.3);
}

.birthday-wishes-text {
  max-width: 650px;
  margin: 0 auto;
}

.birthday-wishes-text p {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.65;
  color: var(--text-pure);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.birthday-author {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-accent);
  font-weight: 700;
}

.birthday-action-area {
  margin-top: 1.5rem;
}

.wish-status-text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--rose-gold);
  font-style: italic;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
}

.typewriter-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 2.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.typewriter-prefix {
  color: var(--text-muted);
  font-weight: 500;
}

.typewriter-highlight {
  color: var(--gold-accent);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.cursor-blink {
  color: var(--ruby-primary);
  font-weight: 700;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Contador de Amor con Efecto 3D Tilt */
.love-counter-wrapper {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-ruby-glass);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  max-width: 780px;
  margin: 0 auto 2.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card), 0 0 35px rgba(255, 42, 109, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
}

.counter-header .counter-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ruby-primary);
  display: block;
  margin-bottom: 0.4rem;
}

.counter-header h3 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 1.75rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.4rem 0.5rem;
  transition: var(--transition-bounce);
  transform-style: preserve-3d;
}

.countdown-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-accent);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 10px 25px rgba(255, 209, 102, 0.2);
}

.count-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 25px rgba(255, 209, 102, 0.6);
}

.count-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.counter-footer {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--rose-gold);
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-top: 3.5rem;
  transition: var(--transition-smooth);
}

.scroll-down-indicator:hover {
  color: var(--gold-accent);
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-glass);
  border-radius: 20px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--gold-accent);
  border-radius: 2px;
  animation: mouseWheel 1.8s infinite;
}

@keyframes mouseWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ==========================================================================
   SECCIÓN 2: LÍNEA DE TIEMPO / NUESTRA HISTORIA (3D TILT)
   ========================================================================== */
.section-timeline, .section-reasons, .section-capsules, .section-letter, .section-vows, .section-certificate, .section-wheel {
  padding: 6.5rem 0;
  position: relative;
  z-index: 2;
}

.section-heading {
  margin-bottom: 4.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ruby-primary);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.1rem;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--ruby-primary) 15%, var(--gold-accent) 85%, transparent 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.5);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.75rem 2.75rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-dark-secondary);
  border: 2px solid var(--ruby-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow-ruby);
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2) rotate(15deg);
}

.timeline-item.left .timeline-dot {
  right: -24px;
}

.timeline-item.right .timeline-dot {
  left: -24px;
}

.timeline-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.timeline-card:hover {
  border-color: var(--border-ruby-glass);
  box-shadow: var(--shadow-glow-ruby), var(--shadow-card);
}

.timeline-card.highlight-card {
  border-color: var(--border-gold-glass);
  background: rgba(38, 14, 55, 0.85);
}

.timeline-card.highlight-card:hover {
  box-shadow: var(--shadow-glow-gold), var(--shadow-card);
}

.timeline-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--text-pure);
}

.timeline-card p {
  color: var(--text-main);
  font-size: 1.02rem;
  margin-bottom: 1.3rem;
  line-height: 1.7;
}

.timeline-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 42, 109, 0.18);
  border: 1px solid rgba(255, 42, 109, 0.35);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-gold);
}

.timeline-tag.gold-tag {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.45);
  color: var(--gold-accent);
}

/* ==========================================================================
   SECCIÓN 3: RAZONES POR LAS QUE TE AMO (INTERACTIVO 3D)
   ========================================================================== */
.reason-deck-wrapper {
  max-width: 720px;
  margin: 0 auto;
  perspective: 1200px;
}

.reason-card-container {
  background: linear-gradient(135deg, rgba(40, 15, 58, 0.88) 0%, rgba(20, 7, 30, 0.96) 100%);
  border: 2px solid var(--border-gold-glass);
  border-radius: 32px;
  padding: 3.5rem 3rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--shadow-glow-gold);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transform-style: preserve-3d;
}

.reason-card-crown {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  animation: floatBadge 3s ease-in-out infinite alternate;
}

.reason-counter-badge {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  background: rgba(255, 209, 102, 0.18);
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 50px;
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.reason-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.45;
  color: var(--text-pure);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.reason-card-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-gold);
}

.reason-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECCIÓN 4: CÁPSULAS EMOCIONALES ("Abre esto cuando...")
   ========================================================================== */
.capsules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.capsule-btn {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform-style: preserve-3d;
}

.capsule-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--ruby-primary);
  box-shadow: var(--shadow-glow-ruby), var(--shadow-card);
}

.capsule-icon {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.capsule-btn:hover .capsule-icon {
  transform: scale(1.25) rotate(10deg);
}

.capsule-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.3;
}

.capsule-sub {
  font-size: 0.92rem;
  color: var(--rose-gold);
}

/* ==========================================================================
   SECCIÓN 5: CARTA DE AMOR CON SOBRE DE CERA INTERACTIVO 3D
   ========================================================================== */
.envelope-interactive-area {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  perspective: 1200px;
}

.envelope-wrapper {
  width: 340px;
  height: 230px;
  background: #3e122b;
  border-radius: 14px;
  margin: 0 auto 1.75rem;
  position: relative;
  cursor: pointer;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 42, 109, 0.2);
  transition: var(--transition-bounce);
  transform-style: preserve-3d;
}

.envelope-wrapper:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 30px 60px rgba(255, 42, 109, 0.35);
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 170px solid transparent;
  border-right: 170px solid transparent;
  border-top: 120px solid #5a193d;
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.envelope-wrapper.opened .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.wax-seal {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 65px;
  background: radial-gradient(circle, #ffd700 0%, #b8860b 80%, #7d5a00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.7);
  z-index: 6;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.2) rotate(10deg);
}

.seal-letter {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #3b2800;
}

.envelope-hint {
  text-align: center;
  color: var(--gold-accent);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

/* Carta Completa Desplegada */
.letter-paper-full {
  background: #fdfbf7;
  border: 1px solid #e0d0b8;
  border-radius: 24px;
  padding: 3.75rem 3.25rem;
  color: #2e1a29;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 209, 102, 0.25);
  position: relative;
  display: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-paper-full.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #d5c0a3;
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
}

.letter-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #7b6250;
  font-style: italic;
}

.letter-stamp {
  font-size: 0.88rem;
  font-weight: 700;
  background: #f0e2ce;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  color: #8c2d19;
  border: 1px solid #c99a77;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: #590d22;
  margin-bottom: 1.75rem;
}

.letter-body p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.75;
  color: #3b2432;
  margin-bottom: 1.6rem;
}

.letter-signature-phrase {
  font-weight: 700;
  color: #800f2f !important;
  font-size: 1.55rem !important;
}

.letter-footer {
  margin-top: 3rem;
  border-top: 1px dashed #d5c0a3;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.signature-ken .sig-name {
  display: block;
  font-family: var(--font-script);
  font-size: 3.8rem;
  color: #800f2f;
  line-height: 1;
}

.signature-ken .sig-role {
  display: block;
  font-size: 1rem;
  color: #6a4c58;
}

/* ==========================================================================
   SECCIÓN 6: VOTOS Y PROMESAS
   ========================================================================== */
.vows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.vow-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.vow-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-glow-gold), var(--shadow-card);
}

.vow-icon {
  font-size: 2.8rem;
  margin-bottom: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vow-card:hover .vow-icon {
  transform: scale(1.2) rotate(12deg);
}

.vow-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
  color: var(--text-pure);
}

.vow-card p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SECCIÓN 7: CERTIFICADO DE AMOR ETERNO
   ========================================================================== */
.certificate-wrapper {
  max-width: 880px;
  margin: 0 auto 2.75rem;
  background: #fdfaf3;
  color: #2a1b18;
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(255, 209, 102, 0.2);
  transform-style: preserve-3d;
}

.cert-border-outer {
  border: 4px solid #b8860b;
  padding: 10px;
  border-radius: 16px;
}

.cert-border-inner {
  border: 2px dashed #b8860b;
  padding: 3.5rem 3rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle, #ffffff 60%, #faf3e0 100%);
}

.cert-crown {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.cert-main-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  color: #6b1426;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.cert-subtitle {
  font-size: 1rem;
  color: #8c7355;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.25rem;
}

.cert-intro {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.cert-names-box {
  margin: 1.75rem 0;
}

.cert-name-highlight {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #800f2f;
  border-bottom: 3px solid #b8860b;
  padding: 0 1.75rem 0.4rem;
}

.cert-statement {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  color: #3b2820;
}

.cert-badges-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.cert-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: #5c3826;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
}

.cert-signature-col {
  width: 200px;
}

.cert-line {
  height: 1px;
  background: #3b2820;
  margin-bottom: 0.6rem;
}

.cert-sign-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: #800f2f;
}

.cert-sign-sub {
  font-size: 0.85rem;
  color: #8c7355;
}

.cert-seal-gold {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #ffd700 0%, #b8860b 80%, #614600 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gold-seal-inner {
  border: 2px dashed #422d00;
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #3b2800;
  line-height: 1.15;
  text-align: center;
}

/* ==========================================================================
   SECCIÓN 8: RULETA DE MIMOS Y DESEOS
   ========================================================================== */
.roulette-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.roulette-box {
  background: var(--bg-dark-card);
  border: 2px solid var(--border-gold-glass);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(255, 209, 102, 0.15);
  transform-style: preserve-3d;
}

.roulette-result-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  transition: var(--transition-smooth);
}

.roulette-icon {
  font-size: 3rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roulette-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.15rem;
}

/* ==========================================================================
   FOOTER LUXURY
   ========================================================================== */
.luxury-footer {
  padding: 5.5rem 0 3.5rem;
  border-top: 1px solid var(--border-glass);
  background: #060209;
  position: relative;
  z-index: 2;
}

.footer-heart-symbol {
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
}

.footer-title {
  font-size: 2.4rem;
  color: var(--text-pure);
  margin-bottom: 1.1rem;
}

.footer-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.25rem;
}

.footer-credits {
  font-size: 1rem;
  color: var(--rose-gold);
}

/* ==========================================================================
   MODAL PARA CÁPSULAS EMOCIONALES
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 2, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: linear-gradient(135deg, #250b38 0%, #11041c 100%);
  border: 1px solid var(--border-ruby-glass);
  border-radius: 32px;
  max-width: 580px;
  width: 100%;
  padding: 3.5rem 2.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), var(--shadow-glow-ruby);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.3rem;
  right: 1.6rem;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--ruby-primary);
  transform: rotate(90deg) scale(1.15);
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1.1rem;
  animation: floatBadge 3s ease-in-out infinite alternate;
}

.modal-title {
  font-size: 2.2rem;
  color: var(--gold-accent);
  margin-bottom: 1.3rem;
}

.modal-content p {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   PARTÍCULAS Y CORAZONES FLOTANTES
   ========================================================================== */
.floating-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.6rem;
  animation: floatUpAndFade 2.5s ease-out forwards;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  50% {
    transform: translate(calc(var(--rand-x, 0) * 1px), -90px) scale(1.25) rotate(calc(var(--rand-r, 0) * 1deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--rand-x, 0) * 2px), -220px) scale(1.45) rotate(calc(var(--rand-r, 0) * 2deg));
  }
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.7rem;
  }
  
  .nav-links {
    display: none;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 65px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item.left, .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 0;
    right: auto;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .letter-paper-full {
    padding: 2.25rem 1.75rem;
  }

  .letter-salutation {
    font-size: 1.9rem;
  }

  .letter-body p {
    font-size: 1.2rem;
  }

  .cert-border-inner {
    padding: 1.75rem 1.25rem;
  }

  .cert-main-title {
    font-size: 2rem;
  }

  .cert-name-highlight {
    font-size: 1.75rem;
  }

  .cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }
}
