/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --sage-dark: #4a5a3a;
  --sage: #5b6b4a;
  --sage-medium: #6b7b58;
  --sage-light: #8a9a72;
  --sage-pale: #a8b896;

  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-dark: #e8e0d4;

  --text-dark: #3a3a30;
  --text-warm: #5c4a3a;

  --gold: #c4a96a;
  --gold-light: #d4be8a;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}


/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  z-index: 900;
  display: flex;
  justify-content: center;
  transition: all 0.35s ease;
  background: transparent;
}

.mobile-nav.scrolled {
  background: #d5ccbb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-decoration: none;
}


/* =========================
   MUSIC TOGGLE
========================= */

.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 232, 0.55);
  background: rgba(74, 90, 58, 0.62);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.music-toggle.playing {
  border-color: var(--gold-light);
  background: rgba(74, 90, 58, 0.85);
}

.music-icon {
  width: 20px;
  height: 20px;
}


/* =========================
   GENERIC SECTIONS
========================= */

.section {
  position: relative;
  min-height: 100svh;
  padding: 5.5rem 1.35rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.light-section {
  background: var(--cream-light);
}

.cream-section {
  background: var(--cream);
}

.sage-section {
  background: var(--sage-dark);
}


/* =========================
   HERO SECTION
========================= */

.hero-main {
  min-height: 100svh;
  background-image: url('assets/portadavertical.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
}

.hero-main-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: min(86vw, 650px);
  height: auto;
  display: block;
  padding-top: 180px;
}

.scroll-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  margin: auto auto 0;
  color: var(--cream);
  opacity: 0.72;
  animation: bounce 2s ease infinite;
}

.scroll-btn svg {
  width: 28px;
  height: 28px;
}


/* =========================
   SECTION 2 - INTRO
========================= */

.intro-section {
  min-height: 72svh;
  background-image: url('assets/Background.svg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
  overflow: hidden;
}

.intro-inner {
  min-height: 72svh;
  width: 100%;
  max-width: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.intro-combo {
  position: relative;
  width: min(92vw, 760px);
  height: 430px;
  margin: 0 auto;
  overflow: visible;
  transform: translateY(-1.5rem);
}

.intro-svg {
  position: absolute;
  left: 50%;
  display: block;
  height: auto;
  max-width: none;
}

.intro-svg-top {
  width: min(72vw, 520px);
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
}

.intro-svg-bottom {
  width: min(86vw, 680px);
  top: 30%;
  transform: translateX(-50%);
  z-index: 1;
}


/* =========================
   SECTION 3 - DETAILS
========================= */

.details-section {
  min-height: auto;
  padding: 4.5rem 1.25rem 5rem;
  background: #f2efe9;
  overflow: visible;
}

.details-inner {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.details-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.details-title {
  width: min(82vw, 300px);
  margin-bottom: 2.35rem;
}

.details-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Date block */

.date-block {
  margin-bottom: 3rem;
}

.date-label {
  width: min(38vw, 135px);
  margin-bottom: 0.9rem;
}

.date-text {
  width: min(72vw, 285px);
}


/* Ceremony block */

.ceremony-block {
  margin-bottom: 3.6rem;
}

.ceremony-title {
  width: min(54vw, 190px);
  margin-bottom: 1rem;
}

.church-illustration {
  width: min(74vw, 300px);
  margin-bottom: 1rem;
}

.church-text {
  width: min(82vw, 340px);
}


/* Reception block */

.reception-block {
  margin-bottom: 0;
}

.reception-title {
  width: min(54vw, 195px);
  margin-bottom: 1rem;
}

.venue-illustration {
  width: min(76vw, 310px);
  margin-bottom: 1rem;
}

.venue-text {
  width: min(82vw, 340px);
}


/* =========================
   OPTIONAL GENERIC SVG FRAMES
========================= */

.svg-frame {
  width: 100%;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-svg {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
}

.hero-svg {
  max-width: 340px;
}

.church-svg {
  max-width: 360px;
}

.venue-svg,
.rsvp-svg {
  max-width: 330px;
}


/* =========================
   TEXT BLOCKS
========================= */

.section-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--sage-medium);
  margin-bottom: 1.4rem;
  font-weight: 400;
}

.section-kicker.light {
  color: var(--sage-pale);
}

.section-copy {
  max-width: 330px;
  margin: 0 auto;
}

.section-copy h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 8vw, 2.25rem);
  font-weight: 300;
  color: var(--sage-dark);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.section-copy p {
  font-size: 0.9rem;
  color: var(--sage-medium);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.light-copy h2,
.light-copy p {
  color: var(--cream);
}

.light-copy p {
  opacity: 0.82;
}


/* =========================
   MINI DETAILS
========================= */

.mini-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-card {
  padding: 1.3rem 1rem;
  border: 1px solid var(--cream-dark);
  background: var(--cream-light);
  border-radius: 100px 100px 10px 10px;
}

.mini-card span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--sage-light);
  margin-bottom: 0.45rem;
}

.mini-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--sage-dark);
}


/* =========================
   RSVP SECTION
========================= */

.rsvp-section {
  background:
    linear-gradient(rgba(74, 90, 58, 0.88), rgba(74, 90, 58, 0.88)),
    url('assets/portada.jpg') center center / cover no-repeat;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 3rem 1.5rem;
  background: var(--sage-dark);
  color: var(--cream);
  text-align: center;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  opacity: 0.65;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-logo {
    width: 70vw;
    padding-top: 260px;
  }

  .intro-section {
      min-height: 86svh;
      background-size: cover;
      background-position: center center;
    }

    .intro-inner {
      min-height: 86svh;
      align-items: center;
      justify-content: center;
      padding-top: 0;
      padding-bottom: 0;
    }

    .intro-combo {
      width: 94vw;
      height: 360px;
      transform: translateY(-0.5rem);
    }

    .intro-svg-top {
      width: 86vw;
      top: 0;
    }

    .intro-svg-bottom {
      width: 94vw;
    }

  .details-section {
    padding: 4rem 1.25rem 5rem;
  }

  .details-inner {
    max-width: 390px;
  }

  .details-title {
    width: min(84vw, 305px);
    margin-bottom: 2.2rem;
  }

  .date-block {
    margin-bottom: 2.8rem;
  }

  .date-label {
    width: min(40vw, 140px);
    margin-bottom: 0.85rem;
  }

  .date-text {
    width: min(76vw, 295px);
  }

  .ceremony-block {
    margin-bottom: 3.4rem;
  }

  .ceremony-title {
    width: min(56vw, 195px);
    margin-bottom: 0.95rem;
  }

  .church-illustration {
    width: min(78vw, 315px);
    margin-bottom: 0.95rem;
  }

  .church-text {
    width: min(86vw, 350px);
  }

  .reception-title {
    width: min(56vw, 200px);
    margin-bottom: 0.95rem;
  }

  .venue-illustration {
    width: min(80vw, 325px);
    margin-bottom: 0.95rem;
  }

  .venue-text {
    width: min(86vw, 350px);
  }
    .gallery-section {
    padding: 4rem 1.25rem 4.5rem;
  }

  .gallery-title {
    width: min(76vw, 270px);
    margin-bottom: 1.8rem;
  }

  .gallery-carousel {
    max-width: 350px;
  }

  .carousel-slide img {
    height: 480px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .carousel-btn-prev {
    left: -0.25rem;
  }

  .carousel-btn-next {
    right: -0.25rem;
  }

    .footer {
      min-height: 5svh;
      padding: 2.5rem 1.25rem;
    }
  
}


/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 768px) {
  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-inner {
    max-width: 900px;
  }

  .section-svg {
    max-width: 460px;
  }

  .hero-svg {
    max-width: 500px;
  }

  .mini-details {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-section {
    min-height: 72svh;
  }

  .intro-inner {
    min-height: 72svh;
    align-items: flex-start;
    padding-bottom: 3rem;
  }

  .intro-combo {
    width: min(86vw, 900px);
    height: 430px;
    transform: translateY(2.5rem);
  }

  .intro-svg-top {
    width: min(52vw, 620px);
    top: 0;
  }

  .intro-svg-bottom {
    width: min(68vw, 760px);
    top: 30%;
  }

  .details-section {
    padding: 5.5rem 2rem 6rem;
  }

  .details-inner {
    max-width: 560px;
  }

  .details-title {
    width: min(34vw, 360px);
    margin-bottom: 2.6rem;
  }

  .date-block {
    margin-bottom: 3.3rem;
  }

  .date-label {
    width: min(14vw, 145px);
    margin-bottom: 0.95rem;
  }

  .date-text {
    width: min(28vw, 310px);
  }

  .ceremony-block {
    margin-bottom: 3.9rem;
  }

  .ceremony-title {
    width: min(20vw, 210px);
    margin-bottom: 1.1rem;
  }

  .church-illustration {
    width: min(31vw, 340px);
    margin-bottom: 1.1rem;
  }

  .church-text {
    width: min(38vw, 400px);
  }

  .reception-title {
    width: min(20vw, 215px);
    margin-bottom: 1.1rem;
  }

  .venue-illustration {
    width: min(33vw, 360px);
    margin-bottom: 1.1rem;
  }

  .venue-text {
    width: min(38vw, 400px);
  }
    .footer {
    min-height: 36svh;
    padding: 3.5rem 2rem;
  }

  .footer-logo {
    width: min(12vw, 150px);
  }
}

/* =========================
   SECTION 4 - GALLERY
========================= */

.gallery-section {
  min-height: auto;
  padding: 4.5rem 1.25rem 5rem;
  background: var(--cream-light);
  overflow: hidden;
}

.gallery-inner {
  max-width: 430px;
}

.gallery-title {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto 2rem;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.carousel-window {
  width: 100%;
  overflow: hidden;
  border-radius: 180px 180px 12px 12px;
  background: var(--cream-dark);
  box-shadow: 0 16px 38px rgba(58, 58, 48, 0.16);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(112, 80, 53, 0.3);
  background: rgba(245, 240, 232, 0.72);
  color: #705035;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn-prev {
  left: -0.35rem;
}

.carousel-btn-next {
  right: -0.35rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(112, 80, 53, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 22px;
  background: #705035;
}

/* =========================
   FOOTER LOGO
========================= */

/* =========================
   FOOTER LOGO
========================= */

.footer {
  min-height: 5svh;
  padding: 3rem 1.5rem;
  background-image: url('assets/Background.svg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.footer-logo {
  display: block;
  width: min(12vw,50px);
  height: auto;
  margin: 0 auto;
}