/* ══════════════════════════════════════════════════════════════
   DAAL WEDDING — styles.css
   Premium edition with fluid animations & micro-interactions
══════════════════════════════════════════════════════════════ */

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

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:    #2C5F6F;
  --secondary:  #D4A574;
  --accent:     #E88D67;
  --sand:       #F7F3ED;
  --white:      #FFFFFF;
  --dark:       #1A1A1A;
  --light-gray: #F5F5F5;
  --muted:      #888;

  /* Animation easings */
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-sin: cubic-bezier(0.37, 0, 0.63, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL — base state
   JS adds .is-visible via IntersectionObserver
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 32px;
  transition: background 0.45s ease, box-shadow 0.45s ease;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 60px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: block;
  padding: 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 60px;
  white-space: nowrap;
  color: #1A1A1A;
  transition: color 0.4s ease, opacity 0.3s ease;
  position: relative;
}

/* Underline hover effect */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
  transform-origin: right;
}
nav ul li a:hover::after { transform: scaleX(1); transform-origin: left; }
nav ul li a:hover { opacity: 0.75; }

.nav-logo { display: none; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(0,0,0,0.05); }
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease, background 0.4s ease;
  transform-origin: center;
  background: #1A1A1A;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Section themes ── */
nav.theme-inicio    { background: rgba(255,255,255,0.97); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
nav.theme-inicio ul li a { color: #1A1A1A; }
nav.theme-inicio .hamburger span { background: #1A1A1A; }

nav.theme-countdown { background: #F7F3ED; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
nav.theme-countdown ul li a { color: #1A1A1A; }
nav.theme-countdown .hamburger span { background: #1A1A1A; }

nav.theme-historia  { background: #ffffff; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
nav.theme-historia ul li a { color: #1A1A1A; }
nav.theme-historia .hamburger span { background: #1A1A1A; }

nav.theme-evento    { background: #F7F3ED; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
nav.theme-evento ul li a { color: #1A1A1A; }
nav.theme-evento .hamburger span { background: #1A1A1A; }

nav.theme-dresscode { background: #ffffff; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
nav.theme-dresscode ul li a { color: #1A1A1A; }
nav.theme-dresscode .hamburger span { background: #1A1A1A; }

nav.theme-rsvp      { background: #F7F3ED; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
nav.theme-rsvp ul li a { color: #1A1A1A; }
nav.theme-rsvp ul li a:hover { color: #D4A574; opacity: 1; }
nav.theme-rsvp .hamburger span { background: #1A1A1A; }

nav.theme-recomendados { background: #F7F3ED; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
nav.theme-recomendados ul li a { color: #1A1A1A; }
nav.theme-recomendados .hamburger span { background: #1A1A1A; }

nav.theme-video     { background: rgba(26,26,26,0.88); box-shadow: 0 2px 20px rgba(0,0,0,0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
nav.theme-video ul li a { color: #F7F3ED; }
nav.theme-video ul li a:hover { color: #D4A574; opacity: 1; }
nav.theme-video .hamburger span { background: #F7F3ED; }

/* ── Mobile Nav ── */
@media (max-width: 700px) {
  nav { padding: 0 20px; }

  nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }

  .nav-logo {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: inherit;
  }

  .hamburger { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    height: auto;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: inherit;
  }

  nav.theme-rsvp ul, nav.theme-video ul { border-top: 1px solid rgba(255,255,255,0.12); }

  nav.theme-inicio {
    background: linear-gradient(180deg, rgba(0,0,0,0.979) 0%, rgba(25,15,8,0.759) 60%, rgba(0,0,0,0.9) 100%);
    border-bottom: 1px solid rgba(180,130,60,0.2);
  }
  nav.theme-inicio ul li a,
  nav.theme-inicio .hamburger span { color: #F7F3ED; }
  nav.theme-inicio .hamburger span { background: #F7F3ED; }

  nav ul.open {
    display: flex;
    animation: slideDown 0.28s var(--ease-out-expo);
  }

  nav ul li { width: 100%; }

  nav ul li a {
    line-height: 1;
    padding: 13px 4px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: block;
  }
  nav ul li a::after { display: none; }
  nav.theme-rsvp ul li a, nav.theme-video ul li a { border-bottom: 1px solid rgba(255,255,255,0.08); }
  nav ul li:last-child a { border-bottom: none; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url('https://daal-bucket.s3.us-east-2.amazonaws.com/assets/fondo-hero.jpg');
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeHero 0.8s ease 0.1s forwards;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212,165,116,0.08) 0%, transparent 65%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

@keyframes fadeHero { to { opacity: 1; } }

.hero-content { animation: heroContentIn 1.4s var(--ease-out-expo) 0.3s both; }

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

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .ampersand {
  font-size: clamp(4rem, 10vw, 9rem);
  font-style: italic;
  color: var(--secondary);
  display: block;
  margin: 0.5rem 0;
  animation: ampersandPulse 4s ease-in-out infinite;
}

@keyframes ampersandPulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(212,165,116,0)); }
  50%       { filter: drop-shadow(0 0 18px rgba(212,165,116,0.45)); }
}

.hero .date {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-top: 2rem;
  opacity: 0.95;
  animation: heroContentIn 1.4s var(--ease-out-expo) 0.7s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeHero 1s ease 1.5s both;
  cursor: pointer;
}

.scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '↓';
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  animation: scrollChevron 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}
@keyframes scrollChevron {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(5px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS — base
══════════════════════════════════════════════════════════════ */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: -0.01em;
}

section h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  margin: 1rem auto 0;
  border-radius: 2px;
  transition: width 0.8s var(--ease-out-expo) 0.2s;
}

section h2.is-visible::after { width: 80px; }

/* ══════════════════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════════════════ */
.countdown-section {
  background: var(--sand);
  padding: 6rem 2rem;
  overflow: hidden;
  position: relative;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(26,26,26,0.15));
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.countdown-box {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  position: relative;
  overflow: visible;
}

.countdown-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212,165,116,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 12px rgba(0,0,0,0.06), 0 24px 60px rgba(0,0,0,0.12);
}
.countdown-box:hover::before { opacity: 1; }

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--dark);
  display: block;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--dark) 30%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

@media (max-width: 600px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .countdown-box {
    padding: 1.4rem 0.8rem;
  }
  .countdown-number {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }
}

/* ══════════════════════════════════════════════════════════════
   OUR STORY
══════════════════════════════════════════════════════════════ */
.our-story { background: var(--white); }

.story-content { max-width: 800px; margin: 0 auto; text-align: center; }

.story-content p {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.timeline { margin-top: 5rem; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--secondary), var(--secondary), transparent);
  transform: translateX(-50%);
  opacity: 0.35;
}

.timeline-item { display: flex; justify-content: flex-start; margin-bottom: 3.5rem; position: relative; }
.timeline-item:nth-child(even) { justify-content: flex-end; }

.timeline-content {
  background: var(--light-gray);
  padding: 2rem 2.2rem;
  border-radius: 20px;
  width: 45%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  border: 1px solid rgba(212,165,116,0.12);
}

.timeline-content:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.10);
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.timeline-date {
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: 'Libre Baskerville', serif;
}

.timeline-content p {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: center;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212,165,116,0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  z-index: 1;
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 0 5px rgba(212,165,116,0.18);
}

/* ══════════════════════════════════════════════════════════════
   EVENT DETAILS
══════════════════════════════════════════════════════════════ */
.event-details { background: var(--sand); padding: 6rem 2rem; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.event-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 48px rgba(0,0,0,0.10);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease;
}

.event-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.06), 0 32px 72px rgba(0,0,0,0.16);
}

.event-header,
.event-header-reception {
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.event-header { background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.55)), url("./assets/catedral.jpeg"); }
.event-header-reception { background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.55)), url("./assets/la_santa.jpeg"); }

.event-header::after,
.event-header-reception::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.event-card:hover .event-header::after,
.event-card:hover .event-header-reception::after { transform: translateX(100%); }

.event-header h3,
.event-header-reception h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.event-body { padding: 2rem; }

.event-info { margin-bottom: 1.5rem; margin-top: 1.5rem; text-align: justify; }

.event-info strong {
  color: var(--dark);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Lato', sans-serif;
}

.event-info p { color: #555; line-height: 1.7; }

.event-header-sobres {
  color: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.50)), url("./assets/fondo_lluvia.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.env-rain { position: absolute; inset: 0; pointer-events: none; }
.env-rain span { position: absolute; font-size: 1.1rem; opacity: 0.18; animation: fall linear infinite; }
.env-rain span:nth-child(1) { left: 7%;  animation-duration: 4.2s; animation-delay: 0s; }
.env-rain span:nth-child(2) { left: 22%; animation-duration: 5.5s; animation-delay: 1.1s; font-size: 1.6rem; }
.env-rain span:nth-child(3) { left: 40%; animation-duration: 3.8s; animation-delay: 0.6s; }
.env-rain span:nth-child(4) { left: 58%; animation-duration: 4.9s; animation-delay: 2s;   font-size: 1.4rem; }
.env-rain span:nth-child(5) { left: 75%; animation-duration: 5s;   animation-delay: 0.3s; }
.env-rain span:nth-child(6) { left: 88%; animation-duration: 4.4s; animation-delay: 1.6s; font-size: 0.9rem; }

@keyframes fall {
  0%   { top: -40px; opacity: 0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.18; }
  100% { top: 110%; opacity: 0; }
}

.event-header-sobres h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.sobres-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}
.sobres-button:hover { background: var(--white); color: var(--dark); transform: scale(1.04); }

.map-button-event,
.map-button-reception {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease, color 0.3s ease;
}

.map-button-event:hover,
.map-button-reception:hover {
  background: var(--dark);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(26,26,26,0.2);
}

/* ══════════════════════════════════════════════════════════════
   DRESS CODE
══════════════════════════════════════════════════════════════ */
.dresscode-section { background: var(--white); padding: 6rem 2rem; }

.dc-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-family: 'Lato', sans-serif;
}

.dc-toggle { display: flex; justify-content: center; margin-bottom: 3rem; }

.dc-btn {
  padding: 0.8rem 3rem;
  border: 1.5px solid var(--dark);
  background: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  color: var(--dark);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease, transform 0.2s var(--ease-spring);
  /* Sin pseudo-elemento: transición directa de background */
}

.dc-btn:hover {
  background: var(--dark);
  color: var(--white);
}

.dc-btn.active {
  background: var(--dark);
  color: var(--white);
}

.dc-btn:first-child { border-radius: 50px 0 0 50px; border-right: 1px solid var(--dark); }
.dc-btn:last-child  { border-radius: 0 50px 50px 0; border-left: 1px solid var(--dark); }

.dc-btn span { position: relative; z-index: 1; }

.dc-panel { display: none; max-width: 860px; margin: 0 auto; animation: dcFadeUp 0.5s var(--ease-out-expo); }
.dc-panel.active { display: block; }

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

.dc-description {
  text-align: center;
  color: #555;
  font-size: 1.4rem;
  line-height: 1.9;
  margin: 0 auto 2.5rem;
  max-width: 680px;
}
.dc-description strong { color: var(--primary); }
.dc-warning { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; color: #c0392b; font-style: italic; }

.dc-carousel-wrapper { position: relative; max-width: 700px; margin: 0 auto; }

.dc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08), 0 30px 80px rgba(0,0,0,0.18);
  aspect-ratio: 3/4;
  background: var(--sand);
  transition: box-shadow 0.3s ease;
}

.dc-carousel:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.10), 0 40px 100px rgba(0,0,0,0.22); }

.dc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.dc-slide.active { opacity: 1; }

.dc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.dc-slide.active img { transform: scale(1.03); }

.dc-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.dc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-spring), box-shadow 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
}
.dc-arrow:hover { background: var(--dark); color: var(--white); transform: translateY(-50%) scale(1.12); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.dc-arrow-prev { left: -24px; }
.dc-arrow-next { right: -24px; }

.dc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.6rem; }
.dc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring);
}
.dc-dot.active { background: var(--dark); transform: scale(1.45); }

.dc-counter { text-align: center; margin-top: 0.8rem; font-size: 0.8rem; color: #aaa; letter-spacing: 0.15em; font-family: 'Lato', sans-serif; }
.dc-note    { text-align: center; margin-top: 2.5rem; font-size: 1.1rem; color: #aaa; font-style: italic; }

@media (max-width: 768px) {
  .dc-arrow-prev { left: 6px; }
  .dc-arrow-next { right: 6px; }
  .dc-arrow { width: 40px; height: 40px; font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════════════════ */
.rsvp {
  background: var(--sand);
  color: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.rsvp::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.rsvp h2 { color: var(--dark); }
.rsvp h2::after { background: linear-gradient(to right, var(--secondary), var(--accent)); }

.rsvp-form {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.06);
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.2);
}

.submit-button {
  background: var(--white);
  color: var(--dark);
  padding: 1rem 3.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: color 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  overflow: hidden;
}

.submit-button span { position: relative; z-index: 1; }

.submit-button:hover {
  background: linear-gradient(135deg, var(--dark), rgb(55, 53, 53));
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(212,165,116,0.35);
}
.submit-button:hover::before { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   HERO VIDEO
══════════════════════════════════════════════════════════════ */
.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  z-index: 1;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

@media (max-width: 700px) {
  .bg-video { filter: brightness(65%); }
}

.hero-overlay {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--sand);
  color: var(--dark);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

footer p { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic; margin-bottom: 1rem; }

.hashtag {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}
.hashtag:hover { transform: scale(1.06); }

/* ══════════════════════════════════════════════════════════════
   MUSIC BUTTON
══════════════════════════════════════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--dark);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  background: var(--dark);
  color: var(--white);
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.music-btn.playing { animation: musicPulse 2.5s ease-in-out infinite; }

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 0 rgba(212,165,116,0); }
  50%       { box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 10px rgba(212,165,116,0.12); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — general
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }

  .timeline::before { left: 20px; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
  .timeline-item:nth-child(even) .timeline-content { margin-left: 60px; }
  .timeline-dot { left: 20px; }

  .rsvp-form { padding: 2rem 1.5rem; }
  .events-grid { grid-template-columns: 1fr; }
  .dc-btn { padding: 0.8rem 1.8rem; }
}

