/* ═══════════════════════════════════════════════════════════════
   Soledad & Mariano — Invitación de Casamiento (Premium Burgundy)
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Cream & Blush Palette */
  --cream:        #fcf9f5;
  --cream-dark:   #f0e8db;
  --blush:        #f5e6e6;
  --gold:         #d4af37;
  
  /* Burgundy Palette */
  --burgundy:     #6f1a30;
  --burgundy-light: #8e2540;
  --burgundy-dark:  #4a0e1e;
  
  --dark:         #1a1013;
  --text:         #332528;
  --text-light:   #665558;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Segoe UI', sans-serif;
  --font-script:  'Great Vibes', cursive;

  --transition:   0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow:       0 4px 30px rgba(111, 26, 48, 0.08);
  --shadow-lg:    0 12px 60px rgba(111, 26, 48, 0.15);
}

/* ── Lucide icons global ── */
[data-lucide] {
  display: inline-block;
  stroke-width: 1.5;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pre {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-pre.light { color: var(--blush); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--burgundy);
  line-height: 1.1;
}
.section-title.light { color: white; }

/* AOS-style fade-in */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(252, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(111,26,48,0.05);
  padding: 1rem 2.5rem;
}
#navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
#navbar ul a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--transition);
  position: relative;
}
#navbar.scrolled ul a { color: var(--text); }
#navbar ul a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
#navbar ul a:hover::after { transform: scaleX(1); }
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream);
  transition: color var(--transition);
}
.nav-logo span { color: var(--gold); font-style: italic; }
#navbar.scrolled .nav-logo { color: var(--burgundy); }

@media (max-width: 768px) {
  #navbar ul { display: none; }
}

/* ══════════════════════════════════════════════════
   WELCOME OVERLAY
══════════════════════════════════════════════════ */
.welcome-overlay {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.8s ease;
}
.welcome-overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-inner {
  text-align: center; padding: 3rem; background: white;
  border-radius: 20px; border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-lg); max-width: 90%;
}
.overlay-title {
  font-family: var(--font-script); font-size: 4rem; color: var(--burgundy);
  margin-bottom: 1rem; line-height: 1;
}
.overlay-p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 2rem; }
.btn-primary {
  display: inline-block; padding: 0.85rem 2rem;
  background: var(--burgundy); color: white;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: none; border-radius: 50px; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--burgundy-light); transform: translateY(-2px); }
.btn-text {
  display: block; margin: 1.5rem auto 0;
  background: none; border: none; color: var(--text-light);
  font-family: var(--font-sans); font-size: 0.85rem; text-decoration: underline;
  cursor: pointer; transition: color var(--transition);
}
.btn-text:hover { color: var(--burgundy); }

/* ══════════════════════════════════════════════════
   FLOATING MUSIC TOGGLE
══════════════════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--burgundy);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(111,26,48,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}
.music-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}
.music-toggle:hover {
  background: var(--burgundy);
  color: white;
  transform: translateY(-2px);
}
.music-toggle.playing {
  animation: spinDisc 3s linear infinite;
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,16,19,0.4) 0%, rgba(26,16,19,0.2) 40%, rgba(26,16,19,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 2rem;
}
.hero-pre {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 1rem; display: block;
}
.names-script {
  font-family: var(--font-script);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.names-script span { font-family: var(--font-serif); font-size: 0.5em; color: var(--gold); }
.hero-date {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: rgba(255,255,255,0.95); letter-spacing: 0.4em;
  margin-bottom: 3rem;
}
.hero-cta {
  display: inline-block; padding: 0.85rem 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.7); color: white;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; border-radius: 50px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.hero-cta:hover {
  background: var(--burgundy); border-color: var(--burgundy); transform: translateY(-2px);
}

/* Falling petals */
.petals-anim { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petals-anim span {
  position: absolute; top: -20px; width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(245,230,230,0.8), rgba(245,230,230,0.3));
  border-radius: 50% 0 50% 0; animation: falling linear infinite;
}
@keyframes falling {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(20vw, 100vh) rotate(360deg); opacity: 0; }
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  margin: 0 auto; animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ══════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════ */
.countdown-section {
  background: var(--cream);
  padding: 6rem 0 3rem; text-align: center;
}
.countdown {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.countdown-item {
  display: flex; flex-direction: column; align-items: center;
  background: white; border: 1px solid var(--cream-dark);
  border-radius: 16px; padding: 1.5rem 2.2rem;
  box-shadow: var(--shadow); min-width: 110px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.countdown-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.countdown-num {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 300;
  color: var(--burgundy); line-height: 1;
}
.countdown-label {
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem;
}
.countdown-sep { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); margin-top: -1rem; }

/* ══════════════════════════════════════════════════
   HISTORIA
══════════════════════════════════════════════════ */
.historia {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}
.timeline {
  position: relative; max-width: 700px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--burgundy-light), transparent);
}
.timeline-item {
  display: flex; align-items: flex-start; gap: 2rem; margin-bottom: 3.5rem;
  justify-content: flex-end; padding-right: calc(50% + 2.5rem); position: relative;
}
.timeline-item.right {
  justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 2.5rem);
  flex-direction: row-reverse;
}
.timeline-icon {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; background: white;
  border: 2px solid var(--burgundy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy); font-size: 1.2rem; box-shadow: var(--shadow); z-index: 1;
}
.timeline-content {
  background: white; border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--cream-dark); max-width: 280px; text-align: left;
}
.timeline-year {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase;
  display: block; margin-bottom: 0.4rem;
}
.timeline-content h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400;
  color: var(--burgundy); margin-bottom: 0.5rem;
}
.timeline-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   ITINERARIO / EVENTO (Glassmorphism)
══════════════════════════════════════════════════ */
.evento {
  position: relative; padding: 6rem 0;
  background: var(--burgundy-dark); overflow: hidden;
}
.evento-bg-overlay {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
}
.evento-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; position: relative; z-index: 2;
}
.glassmorphism {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 2.5rem; text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}
.glassmorphism:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.evento-card-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.evento-card h3 {
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 300;
  color: white; margin-bottom: 0.5rem;
}
.evento-hora { font-family: var(--font-script); font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }
.evento-lugar { font-family: var(--font-serif); font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 0.3rem; }
.evento-dir { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
.evento-map-btn {
  display: inline-block; padding: 0.6rem 1.4rem; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-sans); font-size: 0.75rem;
  letter-spacing: 0.1em; border-radius: 50px; text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.evento-map-btn:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════════════════════════
   LOGISTICA
══════════════════════════════════════════════════ */
.logistica {
  padding: 6rem 0; background: var(--cream);
}
.logistica-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.logistica-card {
  background: white; border-radius: 20px; padding: 3rem; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--cream-dark);
}
.logistica-icon { color: var(--burgundy); margin-bottom: 1rem; width: 40px; height: 40px; }
.logistica-card h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--burgundy); margin-bottom: 1rem; }
.logistica-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.btn-outline {
  background: transparent; border: 1px solid var(--burgundy); color: var(--burgundy);
  padding: 0.7rem 1.5rem; border-radius: 50px; font-family: var(--font-sans); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: var(--burgundy); color: white; }

/* ══════════════════════════════════════════════════
   TRIVIA
══════════════════════════════════════════════════ */
.trivia-section {
  padding: 6rem 0; background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}
.trivia-box {
  background: white; border-radius: 20px; padding: 3rem; max-width: 600px; margin: 0 auto;
  box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--cream-dark);
}
.trivia-question { font-family: var(--font-serif); font-size: 1.8rem; color: var(--burgundy); margin-bottom: 2rem; }
.trivia-options { display: flex; flex-direction: column; gap: 1rem; }
.btn-trivia {
  background: var(--cream); color: var(--text); border: 1px solid var(--cream-dark);
  padding: 1rem; border-radius: 12px; font-family: var(--font-sans); font-size: 1rem;
  cursor: pointer; transition: var(--transition);
}
.btn-trivia:hover { background: var(--blush); border-color: var(--burgundy-light); }
.btn-trivia.correct { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.btn-trivia.wrong { background: #ffebee; border-color: #f44336; color: #c62828; }
.trivia-feedback { margin-top: 1.5rem; font-weight: 500; font-size: 1.1rem; min-height: 24px; color: var(--burgundy); }

/* ══════════════════════════════════════════════════
   MÚSICA INTEGRADA
══════════════════════════════════════════════════ */
.musica {
  position: relative; padding: 5rem 0; overflow: hidden; text-align: center;
}
.musica-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--dark) 100%); z-index: -1;
}
.musica-sub { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 3rem; margin-top: -2rem; }
.music-player {
  display: flex; align-items: center; gap: 1.5rem; max-width: 400px; margin: 0 auto;
  padding: 1.5rem 2rem;
}
.mp-disc {
  width: 60px; height: 60px; border-radius: 50%;
  background: conic-gradient(var(--gold), var(--burgundy-dark), var(--gold));
  box-shadow: 0 0 20px rgba(212,175,55,0.3); flex-shrink: 0;
}
.mp-disc.spinning { animation: spinDisc 3s linear infinite; }
@keyframes spinDisc { 100% { transform: rotate(360deg); } }
.mp-info { flex: 1; text-align: left; }
.mp-title { font-family: var(--font-serif); font-size: 1.2rem; color: white; margin-bottom: 0.2rem; }
.mp-artist { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.mp-play {
  width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--gold);
  background: transparent; color: var(--gold); display: flex; justify-content: center; align-items: center;
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.mp-play:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════════════════════════
   REGALOS & RSVP
══════════════════════════════════════════════════ */
.regalos { padding: 6rem 0; background: var(--cream); }
.rsvp-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; max-width: 900px; margin: 0 auto;
}
.regalo-card, .rsvp-form-card {
  background: white; border-radius: 20px; padding: 3rem;
  box-shadow: var(--shadow); border: 1px solid var(--cream-dark); text-align: center;
}
.regalo-icon { color: var(--gold); width: 45px; height: 45px; margin-bottom: 1rem; }
.regalo-card h3, .rsvp-form-card h3 { font-family: var(--font-serif); font-size: 1.8rem; color: var(--burgundy); margin-bottom: 1rem; }
.regalo-card p, .rsvp-form-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.6; }
.bank-details { background: var(--cream); padding: 1.5rem; border-radius: 12px; border: 1px dashed var(--gold); text-align: left; }
.bank-details p { margin-bottom: 0.5rem; color: var(--text); font-size: 0.9rem; }

.rsvp-form-card form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.rsvp-form-card input, .rsvp-form-card select, .rsvp-form-card textarea {
  width: 100%; padding: 1rem; border: 1px solid var(--cream-dark); border-radius: 8px;
  background: var(--cream); font-family: var(--font-sans); font-size: 0.9rem;
}
.rsvp-form-card input:focus, .rsvp-form-card select:focus, .rsvp-form-card textarea:focus {
  outline: none; border-color: var(--burgundy);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--burgundy-dark); padding: 5rem 2rem; text-align: center;
}
.footer-names { font-family: var(--font-script); font-size: 3.5rem; color: var(--cream); margin-bottom: 0.5rem; }
.footer-date { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 2rem; }
.footer-credit { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown { gap: 0.5rem; }
  .countdown-item { min-width: 75px; padding: 1rem; }
  .countdown-num { font-size: 2rem; }
  .countdown-sep { font-size: 1.5rem; }
  .timeline::before { left: 30px; }
  .timeline-item, .timeline-item.right {
    justify-content: flex-start; padding-left: 80px; padding-right: 0; flex-direction: column; text-align: left;
  }
  .timeline-icon { left: 30px; }
  .evento-cards, .logistica-grid, .rsvp-container { grid-template-columns: 1fr; }
}
