/* 
   ===============================================
   Mobile First, Luxury / Refined Aesthetics 
   Design System variables
   ===============================================
*/

:root {
  /* Color Palette Refined */
  --color-bg-primary: #FAFAFA; /* Soft luxury off-white */
  --color-bg-secondary: #FFFFFF; /* Pure white for contrast areas */
  --color-bg-dark: #3d232c; /* Deep vintage dusty rose / rosewood */
  
  --color-accent-dark: #641E3A; /* Refined burgundy/wine replacing old dark maroon */
  --color-accent-light: #D4B9C8; /* Muted elegant mauve/pink */
  --color-accent-gold: #C2A878; /* Soft golden touch for elegance */
  
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-text-inverse: #FDFDFD;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Shadows and FX */
  --shadow-subtle: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-float: 0 15px 40px rgba(100, 30, 58, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50%;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================== BASE RESETS ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================== LAYOUT & UTILS ================== */
.wrap-container {
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.bg-light {
  background-color: var(--color-bg-primary);
}

.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

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

.padding-top-lg {
  padding-top: 60px;
}

/* ================== TYPOGRAPHY & HEADERS ================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--color-accent-dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.light-text {
  color: var(--color-bg-primary);
}

.divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-dark);
  margin: 0 auto;
  position: relative;
}

.light-divider {
  background-color: var(--color-accent-gold);
}

.divider::after {
  content: "✧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg-primary);
  padding: 0 10px;
  color: var(--color-accent-dark);
  font-size: 14px;
}

.light-divider::after {
  background: var(--color-bg-dark);
  color: var(--color-accent-gold);
}

/* ================== WELCOME POPUP ================== */
.welcome-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(61, 35, 44, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease;
}

.popup-content {
  background: var(--color-bg-primary);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(212, 185, 200, 0.3);
  max-width: 90%;
  width: 400px;
}

.popup-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 10px;
}

.popup-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-accent-dark);
  margin-bottom: 0;
}

.popup-name {
  font-family: var(--font-display);
  font-size: 4rem;
  font-style: italic;
  color: var(--color-accent-gold);
  line-height: 1;
  margin-bottom: 40px;
}

.btn-primary {
  background-color: var(--color-accent-dark);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--color-bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ================== MUSIC CONTROL ================== */
.music-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: var(--radius-round);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-accent-light);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.music-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-accent-dark);
  color: #fff;
}

/* ================== HERO SECTION ================== */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Alineado abajo para no tapar el rostro */
  align-items: center;
  background-image: url('../images/elena-fotoprncipal.jpg');
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed; /* Parallax subtle */
  text-align: center;
  color: #fff;
  padding-bottom: 120px; /* Para dar espacio superior e inferior al texto abajo */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61, 35, 44, 0.3) 0%, rgba(61, 35, 44, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  padding: 0 20px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 20px;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 6rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 0.9;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}

/* Timer */
.timer-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.timer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.countdown-wrapper {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.time-box {
  display: flex;
  flex-direction: column;
  min-width: 60px;
}

.time-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.time-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* ================== ABOUT SECTION ================== */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about-image-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
}

.rounded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  position: relative;
}

.ring-decoration {
  position: absolute;
  inset: -15px;
  border: 1px solid var(--color-accent-gold);
  border-radius: 50%;
  z-index: 1;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-align: center;
}

/* ================== LOGISTICS SECTION ================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.logistics-card {
  background: var(--color-bg-secondary);
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  border-top: 4px solid var(--color-accent-gold);
}

.card-icon {
  font-size: 2rem;
  color: var(--color-accent-gold);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent-dark);
  margin-bottom: 20px;
}

.card-info p {
  margin-bottom: 8px;
  color: var(--color-text-light);
}

.card-info strong {
  color: var(--color-text-main);
  font-weight: 500;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 25px 0;
  border: 1px solid #ebebeb;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  color: #fff;
}

.btn-waze {
  background-color: #33ccff;
}

.btn-waze:hover { background-color: #2bb5e3; transform: translateY(-2px); }

.btn-google {
  background-color: #4285F4;
}

.btn-google:hover { background-color: #3873d6; transform: translateY(-2px); }

/* ================== ITINERARY SECTION ================== */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background-color: var(--color-accent-light);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--color-accent-gold);
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 0 0 1px var(--color-accent-light);
}

.timeline-content {
  background: var(--color-bg-secondary);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  border-left: 3px solid var(--color-accent-dark);
}

.timeline-content .time {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.timeline-content .event {
  font-weight: 400;
  color: var(--color-text-main);
  font-size: 1rem;
}

/* ================== GALLERY SECTION (SWIPER) ================== */
.gallery-section {
  padding: 80px 0 100px 0;
}

.swiper {
  width: 100%;
  padding-bottom: 50px !important;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 280px; 
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.swiper-slide-active {
  transform: scale(1.05);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: var(--color-accent-gold) !important;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-accent-gold) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ================== PARENTS & PADRINOS ================== */
.family-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

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

.avatar-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  padding: 5px;
  border: 1px solid var(--color-accent-light);
  background-color: var(--color-bg-secondary);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.family-member .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  font-weight: 500;
}

.family-quote {
  text-align: center;
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ================== INTERACT MODULE (GIFTS/CALENDAR) ================== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.btn-action {
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-accent-gold);
  padding: 15px 30px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-action:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

.pulse-anim {
  animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 168, 120, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(194, 168, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 168, 120, 0); }
}

.hashtag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent-light);
  letter-spacing: 2px;
}

/* ================== RSVP WHATSAPP ================== */
.rsvp-card {
  background-color: var(--color-bg-secondary);
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(0,0,0,0.03);
}

.rsvp-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.rsvp-deadline {
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.rsvp-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #25D366; /* Official WhatsApp Green */
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background-color: #1ea952;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* ================== FOOTER ================== */
.footer-section {
  background-color: #1A1614;
  color: rgba(255,255,255,0.6);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-link {
  color: var(--color-accent-gold);
  font-weight: 500;
}

/* ================== DESKTOP / TABLET OVERRIDES ================== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 8rem;
  }
  
  .about-content {
    flex-direction: row;
    align-items: center;
  }
  
  .about-image-wrapper {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
  }
  
  .about-text p {
    text-align: left;
    font-size: 1.2rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeline::before {
    left: 50%;
  }
  
  .timeline-item {
    width: 50%;
    padding-left: 0;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -13px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--color-accent-dark);
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: -13px;
  }
  
  .family-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
