/* =========================================================
   Thania y Jonathan digital invitation
   ========================================================= */

@font-face {
  font-family: 'Abramo Script';
  src: url('assets/fonts/Abramo-Script.otf') format('opentype');
}

@font-face {
  font-family: 'BDSans';
  src: url('assets/fonts/BDSans-Bold.otf') format('opentype');
  font-weight: 700;
}

@font-face {
  font-family: 'BDSans';
  src: url('assets/fonts/BDSans-Regular.otf') format('opentype');
  font-weight: 400;
}

@font-face {
  font-family: 'BDScript';
  src: url('assets/fonts/BDScript-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Bicers';
  src: url('assets/fonts/bicers.otf') format('opentype');
}

@font-face {
  font-family: 'MagicalWishes';
  src: url('assets/fonts/magical-wishes.ttf') format('truetype');
}

@font-face {
  font-family: 'MiracleHistory';
  src: url('assets/fonts/Miracle History.ttf') format('truetype');
}

@font-face {
  font-family: 'Bambang Signature';
  src: url('assets/fonts/BAMBANG SIGNATURE.TTF') format('truetype');
}

:root {
  --green: #636e56;
  --green-dark: #515b49;
  --sage: #747c67;
  --taupe: #ad9d92;
  --paper: #f6f4ef;
  --ink: #59614d;
  --soft-ink: #8c837a;
  --gold: #c7b584;
  --coffee: #83784f;
}

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

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green) url('assets/img/policy-section-texture.png') center/cover no-repeat;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), visibility 700ms ease;
}

.site-preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.preloader-floral {
  width: clamp(200px, 48vw, 320px);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
  transform-origin: center center;
  animation: preloader-spin 8s linear infinite;
  will-change: transform;
}

@keyframes preloader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body.is-loading {
  overflow: hidden;
}

html {
  background: #e9e5de;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e9e5de;
  color: var(--ink);
  font-family: 'Bicers', serif;
  overflow-x: hidden;
}

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

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

.invitation-shell {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
}

.photo-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-section {
  height: 100vh;
  height: 100svh;
  background-image: url('assets/img/hero-bg.png');
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(32, 31, 25, 0.12), rgba(32, 31, 25, 0.04) 48%, rgba(32, 31, 25, 0.28));
}

.hero-content {
  display: flex;
  height: 100vh;
  height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  gap: clamp(20px, 4.5vh, 40px);
}

.parents-section>*,
.palette-section>*,
.policy-section>*,
.dress-section>*,
.rsvp-content>* {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(180px, 40vw, 290px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8vh, 16px);
}

.hero-names {
  margin: 0;
  font-family: 'MagicalWishes', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 5%;
}

.hero-date {
  margin: 0;
  font-family: 'MagicalWishes', cursive;
  font-weight: normal;
  font-size: clamp(1.9rem, 6vw, 3rem);
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1;
}


/* Music play button overlay */
.music-play-btn {
  position: relative;
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  margin: 4px auto 6px;
  transform-origin: center bottom;
}

/* notas.png — estática, ocupa el espacio del botón */
.music-notas {
  display: block;
  position: relative;
  z-index: 1;
}

/* bocina.png — superpuesta al borde derecho de notas, más pequeña */
.music-bocina {
  display: block;
  position: absolute;
  width: 65%;
  height: auto;
  bottom: 13%;
  right: -28%;
  z-index: 2;
  animation: music-dance 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}

/* bocina.png — animación intensa al reproducir */
.music-play-btn.is-playing .music-bocina {
  animation: music-dance-playing 1.8s ease-in-out infinite;
}

@keyframes music-dance {

  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  20% {
    transform: rotate(-3deg) translateY(-5px) scale(1.02);
  }

  40% {
    transform: rotate(2.5deg) translateY(-2px) scale(0.99);
  }

  60% {
    transform: rotate(-2deg) translateY(-4px) scale(1.01);
  }

  80% {
    transform: rotate(3deg) translateY(-1px) scale(1);
  }
}

@keyframes music-dance-playing {

  0%,
  100% {
    transform: rotate(0deg) translateY(0) scale(1);
  }

  25% {
    transform: rotate(-4.5deg) translateY(-7px) scale(1.04);
  }

  50% {
    transform: rotate(0deg) translateY(0) scale(0.98);
  }

  75% {
    transform: rotate(4.5deg) translateY(-7px) scale(1.04);
  }
}

.music-play-btn .parents-music {
  margin: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

.music-play-label {
  position: absolute;
  /* centered on the paper area of notas.png */
  top: 47%;
  left: 52%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-family: 'Bicers', serif;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: bold;
  letter-spacing: normal;
  color: #5a4a3a;
  pointer-events: none;
  transition: opacity 180ms ease;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
  z-index: 4;
}

.music-play-btn:hover .music-play-label {
  opacity: 0.7;
}

.music-play-btn:active {
  transform: scale(0.97);
}

.paper-section-parents {
  background: var(--paper) url('assets/img/parents-bg.png') center/cover no-repeat;
  text-align: center;
}

.paper-section {
  background: var(--paper) url('assets/img/paper-texture-background.png') center/cover no-repeat;
  text-align: center;
}

.parents-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 34px 54px;
}

.intro-text {
  margin: 0 0 42px;
  color: var(--green);
  font-family: 'Bambang Signature', cursive;
  font-size: clamp(1.3rem, 5.2vw, 1.95rem);
  font-weight: bold;
  line-height: 1.15;
  text-wrap: balance;
  -webkit-text-stroke: 0.4px var(--green-dark);

}

.section-title,
.palette-section h2,
.policy-section p,
.rsvp-section p {
  font-family: 'Bicers', serif;
  font-weight: 400;
}

.section-title {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-family: 'MagicalWishes', cursive;
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 1px var(--green-dark);
}

.name-group {
  display: grid;
  gap: 0px;
  margin-bottom: 30px;
}

.name-group p {
  margin: 0;
  color: var(--ink);
  font-family: 'Bicers', serif;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.02;
  -webkit-text-stroke: 0.35px var(--ink);
}

.name-group p:nth-child(3) {
  margin-top: 14px;
}

.typewriter-text {
  visibility: hidden;
}

.typewriter-text.tw-active {
  visibility: visible;
}

.parents-floral {
  width: clamp(150px, 38vw, 220px);
  margin: 22px auto 36px;
}

.parents-music {
  width: clamp(130px, 34vw, 200px);
  margin: 0;
}

/* ==========================================================================
   Countdown Section (Scrapbook / Photo Layout) - Refactored
   ========================================================================== */
.countdown-section {
  position: relative;
  min-height: auto;
  background: var(--paper) url('assets/img/countdown-fondo.png') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(190px, 18vh, 260px) 15px clamp(35px, 4vh, 55px);
  box-sizing: border-box;
}

.countdown-container {
  position: relative;
  width: min(98vw, 820px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Top Left Scrap Paper Note Image (countdown-frase.png) - BEHIND Photo (z-index: 1) */
.countdown-phrase-img {
  position: absolute;
  top: -16%;
  left: -8%;
  z-index: 1;
  width: 50%;
  max-width: 380px;
  height: auto;
  transform: rotate(-7deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

/* Top Right Bouquet Doodle - In Background (z-index: 1) */
.countdown-doodle-bouquet {
  position: absolute;
  top: -19%;
  right: 10%;
  z-index: 1;
  width: 32%;
  max-width: 255px;
  height: auto;
  pointer-events: none;
}

/* Central Photo Container (z-index: 2, ON TOP of paper note and doodles) */
.countdown-photo-wrapper {
  position: relative;
  width: 96%;
  max-width: 700px;
  margin: 0 auto;
  z-index: 2;
  box-shadow: none;
  border: none;
  outline: none;
}

.countdown-photo {
  display: block;
  width: 125%;
  max-width: none;
  margin-left: -12.5%;
  height: auto;
}

/* "SÓLO FALTAN" + countdown numbers overlay on photo (z-index: 5) */
.countdown-overlay-content {
  position: absolute;
  top: 28%;
  left: 0;
  width: 100%;
  padding: 0 8%;
  box-sizing: border-box;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.countdown-solo-faltan {
  margin: 0;
  font-family: 'MagicalWishes', cursive;
  font-size: clamp(1.3rem, 3.5vw, 2.5rem);
  margin-top: -10%;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.countdown-numbers {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 180px;
  margin-top: 2px;
}

.countdown-numbers span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.countdown-numbers strong {
  font-family: 'Bicers', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem) !important;
  line-height: 1;
  letter-spacing: 0.06em;
}

.countdown-numbers small {
  font-family: 'Bicers', serif;
  font-weight: 600;
  font-size: clamp(0.35rem, 0.9vw, 0.45rem) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
  opacity: 0.88;
}

/* Bottom Right Table Doodle - Behind Photo (z-index: 1) */
.countdown-doodle-table {
  position: absolute;
  bottom: 8%;
  right: 7%;
  z-index: 1;
  width: 35%;
  max-width: 230px;
  height: auto;
  pointer-events: none;
}

.wedding-day {
  font-family: 'BDSans', sans-serif;
  -webkit-text-stroke: 1px var(--paper);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.events-section {
  position: relative;
  min-height: calc(100vw * 1.292);
  background: url('assets/img/events-bg.png') top center / 100% 100% no-repeat;
}

.events-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(390px, 64vw, 580px) 20px 70px;
}


.event-card {
  width: min(355px, 90vw);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 25px 30px;
  text-align: center;
  background: url('assets/img/events-rectangulo.png') center/100% 100% no-repeat;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.38));
}

.card-icon {
  width: clamp(160px, 48vw, 220px);
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.event-card h3 {
  margin: 10px 0 0;
  color: var(--green-dark);
  font-family: 'MagicalWishes', cursive;
  font-size: clamp(2.3rem, 7.5vw, 3rem);
  font-weight: 600;
}

.card-venue-type {
  margin: 0 0 2px;
  color: var(--taupe);
  font-family: 'Bambang Signature', cursive;
  font-size: clamp(1.4rem, 4.8vw, 1.95rem);
  line-height: 1.1;
  font-weight: 600;
}

.card-subtitle {
  margin: 4px 0 12px;
  color: var(--green-dark);
  font-family: 'Bicers', serif;
  font-size: clamp(0.95rem, 3.2vw, 1.25rem);
  line-height: 1.25;
  font-weight: 600;
  -webkit-text-stroke: 0.35px var(--green-dark);
}

.card-empty-line {
  display: inline-block;
  visibility: hidden;
  user-select: none;
}

.card-time {
  margin: 0 0 6px;
  color: var(--taupe);
  font-family: 'Bicers', serif;
  font-size: clamp(1.15rem, 3.8vw, 1.55rem);
  -webkit-text-stroke: 0.35px var(--taupe);
  font-weight: 600;
}

.event-card a {
  width: 170px;
  aspect-ratio: 148 / 36;
  margin-top: 16px;
  background: url('assets/img/events-ubicacion.png') center/contain no-repeat;
  transition: transform 0.25s ease, filter 0.25s ease;
  display: block;
}

.event-card a:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.dress-section {
  position: relative;
  min-height: 130vh;
  min-height: 130svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 32px);
  padding: clamp(40px, 6vh, 70px) 20px;
  background: #f7f5f0 url('assets/img/dress-bg.png') center/cover no-repeat;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.dress-title {
  margin: 0;
  font-family: 'Bicers', serif;
  font-size: clamp(2rem, 6.8vw, 3.6rem);
  font-weight: 400;
  color: var(--green-dark);
  -webkit-text-stroke: 0.5px var(--green-dark);
  line-height: 1.15;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.05em;
}

.dress-title .dress-initial {
  font-family: 'MagicalWishes', cursive;
  font-size: 1.05em;
  font-weight: 400;
  line-height: 0.7;
  display: inline-block;
  vertical-align: -0.04em;
}

.dress-photo-card {
  position: relative;
  width: 96%;
  max-width: 560px;
  margin: clamp(-38px, -5.5vh, -72px) auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dress-main-img {
  width: 100%;
  height: auto;
  display: block;
}

.dress-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8vh, 16px);
}

.dress-code-illustration {
  width: clamp(138px, 24vw, 193px);
  height: auto;
  display: block;
  animation: dress-code-float 3.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes dress-code-float {

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

  50% {
    transform: translateY(-6px);
  }
}

.dress-code-label {
  font-family: 'Bicers', serif;
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  font-weight: 400;
  color: var(--green-dark);
  -webkit-text-stroke: 0.4px var(--green-dark);
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1;
}

.palette-section {
  padding: 60px 48px 60px;
}

.palette-section h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Bicers', serif;
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  -webkit-text-stroke: 0.5px var(--green-dark);
  font-weight: 700;
}

.palette-subtitle {
  margin: 8px 0 20px;
  color: var(--soft-ink);
  font-size: 0.85rem;
  font-weight: 700;
  -webkit-text-stroke: 0.5px var(--soft-ink);
}

.palette-swatches {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 12px);
  margin-bottom: 36px;
}

.swatch {
  display: block;
  width: clamp(140px, 28vw, 240px);
}

.swatch img {
  display: block;
  width: 100%;
  height: auto;
}


.gallery-title {
  margin: 0 0 32px !important;
  text-align: center;
  font-family: 'MagicalWishes', cursive !important;
  font-weight: 400 !important;
  font-size: clamp(2.4rem, 10vw, 4rem) !important;
  color: var(--green-dark);
  -webkit-text-stroke: 0.5px var(--green-dark);
}

.gallery-modern {
  position: relative;
  padding: 48px 16px 56px;
  background: var(--paper) url('assets/img/paper-texture-background.png') center/cover no-repeat;
  overflow: hidden;
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 46px;
}

.gallerySwiper {
  width: 100%;
  padding: 10px 0 46px;
  overflow: hidden;
}

.gallerySwiper .swiper-slide {
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #ded9cf;
  box-shadow: 0 8px 24px rgba(60, 54, 43, 0.14);
  transition: box-shadow 350ms ease;
}

.gallerySwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 500ms ease;
}

.gallerySwiper .swiper-slide-active img {
  transform: scale(1.02);
}

.gallerySwiper .swiper-pagination {
  bottom: 4px !important;
}

.gallerySwiper .swiper-pagination-bullet {
  width: 6px !important;
  height: 6px !important;
  background: var(--soft-ink) !important;
  opacity: 0.45 !important;
}

.gallerySwiper .swiper-pagination-bullet-active {
  background: var(--green-dark) !important;
  opacity: 1 !important;
}

.gallery-nav-btn {
  position: absolute;
  top: calc(50% - 20px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--green-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
}

.gallery-nav-btn:hover {
  background: var(--green-dark);
  color: #fff;
}

.gallery-nav-btn:active {
  transform: scale(0.92);
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 15, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  font-size: 1.1rem;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Gifts Section (Gift Registry - Mesa de Regalos)
   ========================================================================== */
.gifts-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 4vw, 50px) 20px 60px;
  overflow: hidden;
}

.gifts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url('assets/img/mesa.png') center 60%/cover no-repeat;
}

.gifts-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.15);
}

.gifts-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 20px 0;
}

.gifts-title {
  font-family: 'MagicalWishes', cursive;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 clamp(30px, 8vw, 90px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gifts-title span {
  font-family: 'MagicalWishes', cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 8.5vw, 5.8rem);
  line-height: 0.95;
  text-transform: none;
}

.gifts-info-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 0;
  gap: 0;
}

.gift-option {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  flex: 0 0 auto;
}

.gift-option:first-child {
  text-align: left;
  margin-left: 8%;
}

.gift-option:last-child {
  text-align: right;
  margin-right: 8%;
}

.gift-store-name {
  font-family: 'Bicers', serif;
  font-size: clamp(1rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.1;
  white-space: nowrap;
}

.gift-store-code {
  font-family: 'Bicers', serif;
  font-size: clamp(0.95rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  opacity: 0.95;
  white-space: nowrap;
  text-align: center;
}

.policy-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: clamp(30px, 6vw, 50px) clamp(20px, 6vw, 40px);
  text-align: center;
  background: var(--green) url('assets/img/policy-section-texture.png') center/cover no-repeat;
}

.policy-icon {
  width: clamp(180px, 32vw, 290px);
  height: auto;
  margin: 0;
}

.policy-section p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.95rem, 4.6vw, 1.15rem);
  line-height: 1.15;
  margin-top: -2%;
  margin-bottom: 3%;
}

/* ==========================================================================
   Confirm / RSVP Section (Scrapbook Layout)
   ========================================================================== */
.confirm-section {
  position: relative;
  min-height: 115vh;
  min-height: 115svh;
  height: 115vh;
  height: 115svh;
  background: var(--paper) url('assets/img/confirm-fondo.png') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 50px) 20px;
  box-sizing: border-box;
  text-align: center;
}

.confirm-container {
  position: relative;
  width: min(96vw, 780px);
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: -6% auto -12%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-photo-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Top-Left Notebook Note + Flower */
.confirm-note-wrapper {
  position: absolute;
  top: 8%;
  left: 3%;
  width: 44%;
  max-width: 270px;
  z-index: 2;
  pointer-events: none;
  animation: note-float 4.6s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

.confirm-note-img {
  width: 100%;
  height: auto;
  display: block;
}

.confirm-flower-img {
  position: absolute;
  bottom: -38%;
  left: 28%;
  right: auto;
  width: 52%;
  max-width: 130px;
  height: auto;
  animation: flower-float 3.8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes note-float {

  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-4px) rotate(-4.5deg);
  }
}

@keyframes flower-float {

  0%,
  100% {
    transform: translateY(0) rotate(12deg) scale(1);
  }

  50% {
    transform: translateY(-3px) rotate(15deg) scale(1.02);
  }
}

/* Bottom-Right Glasses Doodle */
.confirm-glasses-img {
  position: absolute;
  bottom: 15%;
  right: 9%;
  width: 38%;
  max-width: 235px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  animation: glasses-float 4s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes glasses-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

/* Text & Button */
.confirm-message {
  position: relative;
  z-index: 3;
  margin: clamp(-36px, -5vw, -22px) 0 20px;
  color: var(--green-dark);
  font-family: 'Bicers', serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 3.6vw, 1.25rem);
  line-height: 1.28;
  -webkit-text-stroke: 0.35px var(--green-dark);
}

.confirm-btn-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  width: clamp(230px, 58vw, 310px);
  margin: 0 auto;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.confirm-btn-link:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.confirm-btn-link:active {
  transform: scale(0.97);
}

.confirm-btn-img {
  width: 100%;
  height: auto;
  display: block;
}


@media (min-width: 720px) {

  .hero-section,
  .hero-content {
    height: 100vh;
    height: 100svh;
  }

  .hero-section {
    background-image: url('assets/img/fotoportada.png');
    background-position: center 95%;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 30px;
  }

  .hero-logo {
    width: clamp(220px, 24vw, 360px);
    margin-top: 10px;
  }

  .hero-names {
    font-size: clamp(3.2rem, 5.5vw, 4.6rem);
    letter-spacing: 0.1em;
    -webkit-text-stroke: 0.35px var(--paper);

  }

  .hero-date {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    letter-spacing: 0.08em;
    -webkit-text-stroke: 0.35px var(--paper);
  }

  .countdown-label {
    font-size: clamp(2.2rem, 4.2vw, 4rem);
  }


  .parents-section {
    min-height: 112vh;
    min-height: 112svh;
    padding: 76px 40px 64px;
  }

  .parents-section>.intro-text,
  .parents-section>.section-title,
  .parents-section>.name-group,
  .parents-section>.parents-floral,
  .parents-section>.parents-music {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .parents-section>.intro-text {
    max-width: 820px;
    white-space: nowrap;
  }

  .intro-text {
    margin-bottom: 48px;
    font-size: clamp(1.4rem, 2vw, 2rem);
  }

  .section-title {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  }

  .name-group {
    gap: 0px;
    margin-bottom: 38px;
  }

  .name-group p {
    font-size: clamp(0.95rem, 1.35vw, 1.28rem);
  }

  .parents-floral {
    width: clamp(190px, 18vw, 280px);
    margin-block: 28px 44px;
  }

  .parents-music {
    width: clamp(262px, 25vw, 386px);
    margin-block: 28px 44px;
  }



  .countdown-photo-wrapper {
    width: min(52vw, calc(86vh / 1.119));
    max-width: 560px;
  }

  .countdown-solo-faltan {
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  }

  .countdown-numbers {
    gap: clamp(12px, 2.5vw, 32px);
  }

  .countdown-numbers span {
    min-width: 0;
    flex: 1;
  }

  .countdown-numbers strong {
    font-size: clamp(2.6rem, 7vw, 5rem);
  }

  .countdown-numbers small {
    font-size: clamp(0.62rem, 0.9vw, 0.85rem);
  }



  .events-section {
    min-height: calc(100vw * 1.008);
    background-size: 100% auto;
    background-position: top center;
    overflow: hidden;
  }

  .events-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    gap: clamp(20px, 3.5vw, 48px);
    padding: clamp(550px, 64vw, 900px) 20px 80px;
  }

  .event-card {
    width: clamp(320px, 28.5vw, 415px);
    height: auto;
    aspect-ratio: auto;
    padding: clamp(32px, 2.8vw, 44px) clamp(24px, 2.3vw, 34px) clamp(30px, 2.5vw, 40px);
    justify-content: flex-start;
  }

  .card-icon {
    width: clamp(170px, 16vw, 240px);
    height: auto;
    max-height: 240px;
    margin-bottom: 0;
  }

  .event-card h3 {
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
    margin: 12px 0 0;
  }

  .card-venue-type {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    margin: 0 0 4px;
  }

  .card-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1.25;
    margin: 4px 0 14px;
  }

  .card-time {
    font-size: clamp(1.2rem, 1.5vw, 1.65rem);
    margin: 0 0 8px;
  }

  .event-card a {
    width: clamp(170px, 15vw, 218px);
    margin-top: 18px;
  }

  .dress-section {
    min-height: 130vh;
    min-height: 130svh;
    padding: clamp(50px, 6vh, 80px) 40px clamp(40px, 5vh, 70px);
    gap: clamp(16px, 2.5vh, 32px);
  }

  .dress-photo-card {
    width: min(52vw, calc(86vh / 1.119));
    max-width: 560px;
  }

  .dress-code-illustration {
    width: 182px;
  }

  .palette-section {
    padding: 72px 40px 64px;
  }

  .palette-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  }

  .palette-subtitle {
    margin: 10px 0 28px;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  }

  .palette-swatches {
    margin-bottom: 44px;
  }

  .swatch {
    width: clamp(180px, 18vw, 260px);
  }

  .palette-floral {
    width: clamp(160px, 16vw, 240px);
    margin-bottom: 40px;
  }

  .gallery-title {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem) !important;
    margin-bottom: 40px !important;
  }

  .gallery-modern {
    padding: 56px 0 72px;
  }

  .gallery-wrapper {
    max-width: 1140px;
    padding: 0 56px;
  }

  .gallerySwiper {
    padding: 10px 0 52px;
  }

  .gallery-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .gallery-prev {
    left: 0;
  }

  .gallery-next {
    right: 0;
  }



  .policy-section {
    gap: 0;
    padding: clamp(40px, 5vw, 60px) 40px;
  }

  .policy-section p {
    font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  }

  .rsvp-section {
    background-position: center 20%;
  }

  .rsvp-copy h2 {
    font-size: clamp(2.2rem, 4.2vw, 4rem);
  }

  .rsvp-copy p,
  .rsvp-footer p {
    font-size: clamp(0.78rem, 1.3vw, 1.1rem);
  }

  .rsvp-actions {
    gap: 24px;
    padding: 0 clamp(20px, 6vw, 36px);
  }

  .rsvp-actions a {
    width: clamp(190px, 20vw, 280px);
  }

  .rsvp-footer img {
    width: clamp(16px, 3.3vw, 64px);
  }
}

@media (min-width: 1100px) {
  .parents-section {
    padding-block: 88px 76px;
  }

  .events-photo {
    height: 780px;
    background-attachment: fixed;
  }

  .hero-section {
    background-attachment: fixed;
  }



}

@media (max-width: 719px) {

  .hero-section,
  .hero-content {
    height: 100vh;
    height: 100svh;
  }

  .hero-content {
    padding-top: 140px;
    justify-content: center;
  }

  .hero-names {
    margin-top: 12%;
  }

  .events-section {
    position: relative;
    z-index: 2;
    background: var(--green-dark) url('assets/img/events-bg-mobile.webp') top center / 100% auto no-repeat;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .events-cards {
    padding-inline: 22px;
  }

  .event-card {
    margin-top: -30px;
  }

  .dress-section {
    min-height: auto;
    padding-block: 40px 30px;
    gap: 16px;
  }

  .dress-title {
    line-height: 1.3;
  }

  .dress-title .dress-initial {
    line-height: 1.3;
  }

  .gifts-section::before {
    background-position: 45% 50%;
  }

  .palette-section {
    padding-inline: 16px;
  }

  .palette-swatches {
    gap: 4px;
    width: 100%;
    margin-bottom: 28px;
  }

  .swatch {
    flex: 1 1 0;
    width: clamp(76px, 22vw, 96px);
    max-width: 96px;
  }

  .parents-section {
    padding-inline: 20px;
  }

  .intro-text {
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
    line-height: 1.65;
    margin-bottom: 32px;
  }

  .countdown-section {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 15px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .countdown-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .countdown-photo-wrapper {
    width: min(98vw, calc(68vh / 1.3));
    max-width: 480px;
  }

  .countdown-photo {
    width: 130%;
    margin-left: -15%;
    margin-bottom: -20%;
  }

  .countdown-phrase-img {
    width: 85%;
    top: -28%;
    left: -8%;
  }

  .countdown-doodle-bouquet {
    width: 45%;
    top: -24%;
    right: -7%;
  }

  .countdown-doodle-table {
    width: 42%;
    right: -8%;
    bottom: 8%;
  }

  .countdown-solo-faltan {
    font-size: clamp(1.8rem, 6.2vw, 2.4rem);
  }

  .countdown-numbers {
    max-width: 250px;
    gap: 16px;
  }

  .countdown-numbers strong {
    font-size: clamp(1.4rem, 4.8vw, 1.9rem) !important;
  }

  .countdown-numbers small {
    font-size: clamp(0.55rem, 1.8vw, 0.72rem) !important;
  }

  .confirm-container {
    width: 100%;
    max-width: 100%;
  }

  .confirm-card-wrapper {
    width: 142%;
    max-width: none;
    margin: -6% -21% -12%;
  }

  .confirm-note-wrapper {
    top: 4%;
    left: 6%;
    width: 46%;
  }

  .confirm-flower-img {
    bottom: -45%;
    right: auto;
    left: 20%;
    width: 44%;
  }

  .confirm-message {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    line-height: 1.25;
    margin: clamp(-28px, -4vw, -16px) 0 16px;
  }

  .confirm-btn-link {
    display: block;
    width: clamp(260px, 72vw, 340px);
    position: relative;
    left: 5%;
    transform: translateX(-50%);
    margin-bottom: -15%;
  }
}

@media (max-width: 380px) {
  .parents-section {
    padding-inline: 16px;
  }

  .intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .name-group p {
    font-size: 0.95rem;
  }

  .parents-floral {
    width: 132px;
  }

  .parents-music {
    width: 182px;
  }
}