/* ============================================================
   Invitación Karla & Jonathan — estilo teal / crema (playa)
   ============================================================ */
:root {
  --teal-900: #0f3b35;
  --teal: #1e5249;
  --teal-600: #2a675c;
  --teal-soft: #4d8074;
  --cream: #f4efe1;
  --cream-2: #ece3cf;
  --cream-card: #fbf8ef;
  --gold: #b89b5e;
  --ink: #25352f;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;
  --script: 'Parisienne', cursive;
  --names: 'Parisienne', cursive;
}

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

html {
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.6
}

body.is-locked {
  overflow: hidden;
  height: 100vh
}

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

::selection {
  background: var(--teal-soft);
  color: #fff
}

/* ---------- SOBRE ---------- */
.sobre {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 30%, #d8c6a2 0%, #bfa77e 55%, #a98f63 100%);
  transition: opacity .8s ease, visibility .8s ease
}

.sobre.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.sobre__paper {
  position: relative;
  width: min(92vw, 430px);
  height: min(92vh, 780px);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .015) 0 2px, transparent 2px 5px), linear-gradient(180deg, #d3bd97, #c6ad82);
  border-radius: 6px;
  box-shadow: 0 40px 90px rgba(60, 45, 20, .5), inset 0 0 60px rgba(120, 95, 55, .25)
}

.sobre__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(180deg, rgba(120, 95, 55, .35), rgba(120, 95, 55, .05))
}

.sobre__flap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3;
  background: linear-gradient(180deg, #cdb488, #bfa478);
  box-shadow: inset 0 0 50px rgba(120, 95, 55, .28);
  transition: transform 1s cubic-bezier(.7, 0, .2, 1);
  backface-visibility: hidden
}

.sobre__flap--left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(120, 95, 55, .25)
}

.sobre__flap--right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(120, 95, 55, .25)
}

.sobre.is-open .sobre__flap--left {
  transform: perspective(1400px) rotateY(-115deg)
}

.sobre.is-open .sobre__flap--right {
  transform: perspective(1400px) rotateY(115deg)
}

.sello {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 132px;
  height: 132px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 38% 32%, #efe0c2 0%, #d9c298 40%, #c0a672 75%, #a98d5f 100%);
  box-shadow: 0 12px 26px rgba(80, 60, 25, .45), inset 0 3px 8px rgba(255, 255, 255, .5), inset 0 -8px 14px rgba(90, 68, 32, .5);
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 63% 8%, 78% 6%, 86% 20%, 98% 30%, 94% 46%, 100% 60%, 88% 70%, 86% 86%, 70% 88%, 58% 99%, 44% 92%, 28% 96%, 20% 82%, 4% 74%, 9% 58%, 1% 43%, 13% 33%, 12% 16%, 29% 14%, 38% 3%);
  transition: transform .5s ease, filter .5s ease;
  animation: sealPulse 2.6s ease-in-out infinite
}

.sello:hover {
  transform: translate(-50%, -50%) scale(1.05)
}

.sobre.is-open .sello {
  transform: translate(-50%, -50%) scale(.3) rotate(20deg);
  opacity: 0;
  filter: blur(4px)
}

.sello__ring {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 92, 45, .5)
}

.sello__ini {
  font-family: var(--script);
  font-size: 2.6rem;
  color: #6e5324;
  line-height: 1
}

@keyframes sealPulse {

  0%,
  100% {
    box-shadow: 0 12px 26px rgba(80, 60, 25, .45), inset 0 3px 8px rgba(255, 255, 255, .5), inset 0 -8px 14px rgba(90, 68, 32, .5)
  }

  50% {
    box-shadow: 0 12px 40px rgba(80, 60, 25, .6), inset 0 3px 8px rgba(255, 255, 255, .6), inset 0 -8px 14px rgba(90, 68, 32, .5)
  }
}

.sobre__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  z-index: 5;
  text-align: center;
  font-family: var(--serif);
  letter-spacing: .35em;
  font-size: .8rem;
  color: #6b5227;
  text-transform: uppercase;
  animation: hintFade 2.6s ease-in-out infinite
}

@keyframes hintFade {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: .95
  }
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .9s ease, visibility .9s ease
}

.flash.is-cover {
  visibility: visible;
  opacity: 1
}

/* ---------- MÚSICA (botón flotante teal) ---------- */
.music-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  cursor: pointer;
  background: var(--teal);
  box-shadow: 0px 3px 10px 1px rgba(15, 59, 53, .4);
  display: none;
  /* Alineación flex para centrar perfectamente el icono */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease;
}

.music-btn.is-visible {
  display: flex;
  /* Se cambia de grid a flex */
}

.music-btn:hover {
  transform: scale(1.08);
  background: var(--teal-600);
}

/* Etiqueta flotante de Play/Pause */
.music-btn__label {
  position: absolute;
  top: -26px;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: var(--cream);
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  text-transform: uppercase;
}

/* Contenedor del icono SVG */
.music-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px)
}

.inv {
  opacity: 0;
  transition: opacity 1.2s ease
}

.inv.is-ready {
  opacity: 1
}

.script-title {
  font-family: var(--script);
  font-size: clamp(3rem, 10vw, 4.6rem);
  color: var(--teal);
  line-height: .95;
  text-align: center;
  margin-bottom: 1.6rem
}

.script-title.light {
  color: #fff
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden
}

.hero__bg {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  will-change: transform
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 59 53 / 0%), rgb(15 59 53 / 11%) 40%, rgba(15, 59, 53, .85))
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem 25vh
}

.hero__eyebrow {
  font-family: var(--serif);
  letter-spacing: .45em;
  text-transform: uppercase;
  font-size: .8rem;
  color: rgba(255, 255, 255, .85)
}

.hero__names {
  margin: .3rem 0 .8rem;
  font-family: var(--names);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 6px 34px rgba(0, 0, 0, .4)
}

.hero__names .line {
  display: block;
  overflow: hidden;
  line-height: 1.34;
  padding: .06em 1.12em
}

.hero__names .line>span {
  display: inline-block;
  font-size: clamp(3.4rem, 15vw, 6.6rem);
  transform: translateY(115%)
}

.hero__names .amp {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 2rem);
  margin: -.35em 0;
  color: rgba(255, 255, 255, .9)
}

.hero__place {
  font-family: var(--serif);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .85rem
}

.hero__scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .8)
}

.hero__scroll span {
  font-family: var(--serif);
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: .68rem
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden
}

.hero__scroll i::after {
  content: '';
  position: absolute;
  left: 0;
  top: -45%;
  width: 100%;
  height: 45%;
  background: #fff;
  animation: desliza 1.8s ease-in-out infinite
}

@keyframes desliza {
  0% {
    top: -45%
  }

  100% {
    top: 100%
  }
}

/* ---------- CUENTA REGRESIVA ---------- */
.count {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem
}

.count::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 92%);
  height: 520px;
  transform: translate(-70%, -50%);
  background: url(../img/deco-wash.png) center/contain no-repeat;
  opacity: .35;
  pointer-events: none;
  z-index: 0
}

.count>* {
  position: relative;
  z-index: 1
}

.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 300px;
  height: 300px;
  background: url(../img/deco-palm.png) center/contain no-repeat;
  opacity: .55;
  transform: rotate(110deg);
  z-index: 2;
  pointer-events: none
}

.plan {
  position: relative;
  overflow: hidden
}

.plan::after {
  content: '';
  position: absolute;
  right: 45px;
  bottom: -14px;
  width: 230px;
  height: 230px;
  background: url(../img/deco-shells.png) center/contain no-repeat;
  opacity: 1;
  pointer-events: none
}

.count__eyebrow {
  font-family: var(--serif);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: .4rem
}

.count__grid {
  display: flex;
  justify-content: center;
  gap: clamp(.6rem, 3vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto
}

.count__cell {
  flex: 1;
  max-width: 130px;
  background: var(--cream-card);
  border-radius: 16px;
  padding: 1.4rem .4rem;
  box-shadow: 0 14px 30px rgba(15, 59, 53, .1), inset 0 0 0 1px rgba(184, 155, 94, .18)
}

.count__cell span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--teal);
  line-height: 1
}

.count__labels {
  display: flex;
  justify-content: center;
  gap: clamp(.6rem, 3vw, 1.2rem);
  max-width: 620px;
  margin: 1rem auto 0
}

.count__labels span {
  flex: 1;
  max-width: 130px;
  font-family: var(--serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--teal-soft)
}

/* ---------- BENDICIÓN ---------- */
.bless {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden
}

.bless__eyebrow {
  font-family: var(--serif);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: 1.4rem
}

.bless__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  color: var(--teal);
  line-height: 1.28
}

.bless__rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto
}

.bless__p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--teal-600);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto
}

.sprig {
  position: absolute;
  width: 170px;
  height: 170px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .9;
  pointer-events: none;
  background-image: url(../img/deco-eucalipto.png)
}

.sprig--tr {
  top: -15px;
  right: -51px;
  transform: scaleX(-1) rotate(12deg);
}

.sprig--bl {
  bottom: -50px;
  left: -9px;
  transform: rotate(296deg);
}

.sprig.light {
  opacity: .28
}

/* ---------- ITINERARIO ---------- */
.plan {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden
}

.plan__eyebrow {
  font-family: var(--serif);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: .4rem
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0
}

/* Línea base (desactivada/fondo) */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(77, 128, 116, .25);
  /* Color de la línea inactiva */
  z-index: 0;
}

/* NUEVA LÍNEA: Se va llenando al hacer scroll */
.timeline-progress {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 0%;
  /* Inicia en 0, GSAP lo cambiará */
  transform: translateX(-50%);
  background: var(--teal);
  /* Color de la línea activa */
  z-index: 0;
}

.tl {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  padding-bottom: 2.6rem;
  min-height: 64px
}

.tl:last-child {
  padding-bottom: 0
}

.tl:nth-child(odd) {
  left: 0;
  padding-right: 2.6rem;
  text-align: right
}

.tl:nth-child(even) {
  left: 50%;
  padding-left: 2.6rem;
  text-align: left
}

/* ESTADO INICIAL DEL NODO (Inactivo) */
.tl__node {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* Colores inactivos */
  background: var(--cream-card);
  color: var(--teal-soft);
  border: 2px solid var(--teal-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(15, 59, 53, .1);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* ESTADO ACTIVO DEL NODO (Cuando la línea llega a él) */
.tl__node.is-active {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
  transform: scale(1.1);
  box-shadow: 0 8px 18px rgba(15, 59, 53, .3);
}

.tl:nth-child(odd) .tl__node {
  right: -26px
}

.tl:nth-child(even) .tl__node {
  left: -26px
}

.tl__date {
  font-family: var(--serif);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .7rem;
  padding: 10px;
  color: var(--gold)
}

.tl__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal);
  line-height: 1.1;
  margin: .15rem 0 .3rem
}

.tl__desc {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--teal-600);
  line-height: 1.45
}

/* ---------- GALERÍA / SLIDER ---------- */
.galeria {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem 8rem 1.5rem;
  overflow: hidden
}

.slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 9px 20px 0px rgba(15, 59, 53, .22)
}

.slider__track {
  display: flex;
  transition: transform .8s cubic-bezier(.7, 0, .2, 1)
}

.slide {
  position: relative;
  min-width: 100%
}

.slide img {
  width: 100%;
  height: min(66vh, 540px);
  object-fit: cover
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 1.2rem;
  color: #fff;
  font-family: var(--script);
  font-size: 2rem;
  background: linear-gradient(180deg, transparent, rgba(15, 59, 53, .8))
}

.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(244, 239, 225, .9);
  color: var(--teal);
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  transition: background .3s, transform .3s
}

.slider__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08)
}

.slider__nav--prev {
  left: 14px
}

.slider__nav--next {
  right: 14px
}

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px
}

.slider__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: transform .3s, background .3s
}

.slider__dots button.is-active {
  background: #fff;
  transform: scale(1.3)
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: var(--serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 1rem 2.4rem;
  border-radius: 40px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease
}

.btn:hover {
  transform: translateY(-3px)
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 12px 26px rgba(184, 155, 94, .4)
}

.btn--gold:hover {
  background: #c8ab6c;
  box-shadow: 0 16px 34px rgba(184, 155, 94, .5)
}

/* ---------- CONFIRMA / WHATSAPP ---------- */
.rsvp {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  text-align: center;
  overflow: hidden
}

.rsvp2 {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden
}

.rsvp__eyebrow {
  font-family: var(--serif);
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(244, 239, 225, .75);
  margin-bottom: .3rem
}

.rsvp__hint {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: rgba(244, 239, 225, .9);
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.5
}

.rsvp__hint strong {
  color: #fff;
  font-weight: 600
}

.wa {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 340px;
  margin: 0 auto
}

.wa__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background: var(--cream-card);
  color: var(--teal);
  border-radius: 40px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .04em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  transition: transform .3s ease, box-shadow .3s ease
}

.wa__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .3)
}

.wa__btn svg {
  flex: 0 0 auto
}

.rsvp__before {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(244, 239, 225, .7);
  margin-top: 1.8rem
}

/* ---------- CIERRE ---------- */
.cierre {
  background: var(--cream);
  text-align: center;
  padding: 3rem 1rem 1rem 1rem
}

.cierre__names {
  font-family: var(--script);
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  color: var(--teal);
  line-height: 1;
  margin-bottom: .6rem
}

.cierre__place {
  font-family: var(--serif);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--teal-600)
}

.cierre__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 1.4rem
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 36, .72);
  backdrop-filter: blur(4px);
  animation: fade .4s ease;
}

.modal__box {
  position: relative;
  z-index: 2;
  width: min(94vw, 720px);
  /* APLICAMOS EL SCROLL INTERNO A LA CAJA */
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 16px;
  padding: 2.6rem 2rem;
  margin: auto;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  animation: pop .45s cubic-bezier(.2, 1, .3, 1);
}

@keyframes fade {
  from {
    opacity: 0
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.96)
  }
}

.modal__close {
  position: absolute;
  top: 25px;
  right: 25px;
  margin-top: -10px;
  margin-right: -10px;
  background: var(--cream);
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.modal__eyebrow {
  font-family: var(--serif);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--gold);
  text-align: center
}

.modal__title {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--teal);
  text-align: center;
  line-height: 1;
  padding: 10px 0px;
}

.modal__sub {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--teal-600);
  margin-bottom: 1.6rem
}

.modal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  text-align: left
}

.modal__h4 {
  font-family: var(--serif);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--teal);
  border-bottom: 1px solid rgba(77, 128, 116, .4);
  padding-bottom: .5rem;
  margin-bottom: .8rem
}

.modal__list {
  list-style: none
}

.modal__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
  font-size: 1.02rem;
  color: var(--ink)
}

.modal__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .8rem;
  top: .2rem
}

.modal__prices {
  list-style: none
}

.modal__prices li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(77, 128, 116, .4)
}

.modal__prices li span {
  color: var(--teal-600)
}

.modal__prices li b {
  color: var(--teal);
  font-weight: 600
}

.modal__cta {
  display: block;
  width: max-content;
  margin: 1.8rem auto 0
}

/* ---------- FOTOS DE LA PAREJA (ESTÁTICAS) ---------- */

/* Foto estilo arco en el inicio */
.hero__photo {
  width: 160px;
  height: 220px;
  margin: 1.5rem auto;
  border-radius: 90px 90px 0 0;
  /* Forma de arco o ventana */
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

/* Foto circular en el cierre (Centrada correctamente) */
.cierre__photo {
  max-width: 30%;
  margin: 0 auto 0rem auto;
  /* margin: 0 auto centra perfectamente bloques en PC */

}

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

/* ---------- RESPONSIVE ---------- */
@media(max-width:720px) {
  body {
    font-size: 17px
  }

  .modal__cols {
    grid-template-columns: 1fr;
    gap: 1.2rem
  }

  .slider__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem
  }

  .count__cell {
    padding: 1.1rem .3rem;
    border-radius: 13px
  }

  /* --- Itinerario Zigzag Compacto en Móvil --- */
  .timeline::before,
  .timeline-progress {
    left: 50%;
    /* Asegura que la línea siga en el centro */
  }

  .tl {
    padding-bottom: 2rem;
  }

  .tl:nth-child(odd) {
    padding-right: 1.4rem;
  }

  .tl:nth-child(even) {
    padding-left: 1.4rem;
  }

  .tl__node {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .tl:nth-child(odd) .tl__node {
    right: -20px;
  }

  .tl:nth-child(even) .tl__node {
    left: -20px;
  }

  .tl__title {
    font-size: 1.25rem;
  }

  .tl__desc {
    font-size: 0.95rem;
  }

  .plan::after {
    right: -45px;
    top: 295px;
  }

  .cierre__photo {
    max-width: 100%;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}

@media (min-width: 769px) {
  .hero__bg {
    background-position: center 25%;
    /* Centra la imagen y la desplaza un poco hacia arriba para que se vean sus rostros */
    background-size: cover;
  }

  .hero__inner {
    padding-bottom: 12vh;
    /* Sube ligeramente el texto en pantallas grandes para que respire mejor */
  }
}

/* ---------- INTRO VIDEO ---------- */
.intro-video-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #111;
  /* Fondo oscuro elegante para los márgenes en PC */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .8s ease, visibility .8s ease;
}

.intro-video-screen.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Contenedor inteligente para PC y Móvil */
.intro-video-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-video-hint {
  position: absolute;
  bottom: 10%;
  z-index: 5;
  font-family: var(--serif);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  pointer-events: none;
  animation: hintFade 2.6s ease-in-out infinite;
}

/* ---------- SLIDER NOVIOS (FADE) ---------- */
.galeria-novios {
  padding: 2rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.slider-fade {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Ajusta según la orientación de tus fotos (ej. 16/9 para horizontal) */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 59, 53, 0.15);
  cursor: grab;
}

.slider-fade:active {
  cursor: grabbing;
}

.slider-fade__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.slide-fade.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slide-fade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- FAMILIA Y PADRINOS ---------- */
.family {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden
}

.family__eyebrow {
  font-family: var(--script);
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  color: var(--teal);
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.family__parents {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .family__parents {
    flex-direction: row;
    justify-content: center;
    gap: 8rem;
  }
}

.family__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .family__grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.family__group {
  margin-bottom: 1rem;
}

.family__role {
  font-family: var(--serif);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: .8rem;
  border-bottom: 1px solid rgba(184, 155, 94, 0.3);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.family__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--teal-600);
  line-height: 1.5;
}

/* ---------- MESA DE REGALOS ---------- */
.gifts {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 4rem 1.5rem;
  overflow: hidden
}

.gifts__eyebrow {
  font-family: var(--serif);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: .4rem;
}

.gifts__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal-600);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.gifts__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gifts__cards {
    flex-direction: row;
    justify-content: center;
  }
}

.gift-card {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  flex: 1;
  box-shadow: 0 14px 30px rgba(15, 59, 53, 0.08), inset 0 0 0 1px rgba(184, 155, 94, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-card__icon {
  color: var(--teal);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.gift-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.gift-card__desc {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.4;
}

.gift-card__desc strong {
  color: var(--teal-600);
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
  margin-top: 5px;
}

.gift-card__btn {
  margin-top: auto;
  padding: 0.8rem 1.8rem;
  font-size: 0.75rem;
  width: 100%;
  max-width: 220px;
}

/* AJUSTE PARA PC / PANTALLAS HORIZONTALES */
@media (min-width: 769px) {
  .intro-video-screen video {
    width: auto;
    height: 90vh;
    /* Ocupa el 90% de la altura de la pantalla */
    max-width: 450px;
    /* Ancho máximo estilo celular */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    object-fit: cover;
  }
}

/* ---------- CSS LIMPIO (Solo posicionamiento) ---------- */
.galeria-novios,
.galeria {
  position: relative;
}

.perritos {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.perrito {
  position: absolute;
  bottom: 7px;
  width: 90px;
}

.perrito--left {
  left: 0px;
}

.perrito--right {
  right: 0px;
}

.perrito img {
  width: 100%;
  height: auto;
  will-change: transform;
}

@media(max-width:720px) {
  .perrito {
    width: 90px;
  }

  .perrito--left {
    left: 3px;
  }

  .perrito--right {
    right: 3px;
  }
}