@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Great+Vibes&display=swap");

:root {
  --ivory: #f5f0e7;
  --paper: #faf7f0;
  --blush: #d8aaa2;
  --sage: #555851;
  --gold: #f28e6b;
  --gold-light: #e0bd82;
  --charcoal: #2b2a28;

  --font-script: "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", serif;

  --mobile-width: 430px;
}

/* ====================================
   RESET
==================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background-color: var(--ivory);
  background-image:
    url("../images/background/background-repeat-texture-bg-marfil.webp");
  background-repeat: repeat;
  background-size: 627px 627px;
  font-family: var(--font-serif);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

/* ====================================
   INVITACIÓN
==================================== */

.invitation {
  position: relative;
  width: 100%;
  max-width: var(--mobile-width);
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;

  background:
    url("../images/background/background-repeat-texture-bg-marfil.webp")
    center top / 100% auto repeat-y;

  box-shadow: 0 0 40px rgb(41 35 27 / 15%);
}

/* Clase reutilizable para otras secciones */

.section {
  position: relative;
  min-height: 100svh;

  padding:
    max(70px, env(safe-area-inset-top))
    24px
    max(70px, env(safe-area-inset-bottom));

  display: grid;
  align-content: center;
  text-align: center;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #292520;
}

/* Fotografía */

.hero__photo {
  position: absolute;
  z-index: -4;
  inset: 0;

  width: 100%;
  height: 100svh;

  object-fit: cover;
  object-position: 69% center;

  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}

/* Degradado sobre la fotografía */

.hero__shade {
  position: absolute;
  z-index: -3;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgb(23 20 17 / 2%) 18%,
    rgb(23 20 17 / 10%) 40%,
    rgb(22 18 15 / 45%) 68%,
    rgb(18 15 12 / 92%) 100%
  );

  pointer-events: none;
}

/* Arco dorado */

.hero__arch {
  position: absolute;
  z-index: 1;

  top: clamp(25px, 7vw, 38px);
  right: clamp(22px, 7vw, 34px);
  bottom: 0;
  left: clamp(22px, 7vw, 34px);

  border: 1px solid var(--gold-light);
  border-bottom: 0;
  border-radius: 52% 52% 0 0 / 22% 22% 0 0;

  opacity: 0;
  transform: scaleY(0.8);
  transform-origin: bottom center;

  pointer-events: none;
}

.hero__arch.is-visible {
  animation: drawArch 1.5s ease forwards;
}

/* ====================================
   FLORES DECORATIVAS
==================================== */

.decor {
  position: absolute;
  z-index: 3;

  width: auto;
  max-width: none;

  pointer-events: none;
  user-select: none;

  filter: drop-shadow(
    0 8px 12px rgb(20 16 11 / 14%)
  );

  will-change: transform;
}

.decor--hero-top {
 bottom: 25%;
 left: -12%;

  width: clamp(25px, 56vw, 170px);

  transform: rotate(-8deg);
  transform-origin: left top;
}

.decor--hero-bottom {
  right: -15%;
  bottom: 27%;

  width: clamp(150px, 73vw, 30px);

  transform: rotate(-4deg);
  transform-origin: right bottom;
}

/* ====================================
   CONTENIDO DEL HERO
==================================== */

.hero__content {
  position: relative;
  z-index: 5;

  min-height: 100svh;

  padding:
    max(45px, env(safe-area-inset-top))
    24px
    max(48px, env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  text-align: center;
}

.hero__content h1 {
  margin: 0;
  color: var(--gold-light);

  font-family: var(--font-script);
  font-size: clamp(4rem, 19vw, 6rem);
  font-weight: 400;
  line-height: 0.9;

  text-shadow: 0 4px 3px rgb(0 0 0 / 80%);
}

.hero__date {
  margin: 18px 0 22px;

  color: #efd2a1;
  font-size: clamp(0.95rem, 4.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 4px 3px rgb(0 0 0 / 80%);
}

/* Anillos pequeños del hero */

.rings-mark {
  position: relative;

  width: 47px;
  height: 26px;
  margin-bottom: 14px;
}

.rings-mark i {
  position: absolute;
  top: 2px;

  width: 22px;
  height: 22px;

  border: 2px solid var(--gold-light);
  border-radius: 50%;
}

.rings-mark i:first-child {
  left: 6px;
}

.rings-mark i:last-child {
  right: 6px;
}

/* ====================================
   BOTÓN
==================================== */

/*
Puedes usar class="button" o mantener
class="outline-button" en tu HTML.
*/

.button,
.outline-button {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 28px;

  color: #f5dbad;
  background: rgb(24 20 16 / 18%);
  border: 1px solid var(--gold-light);
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  backdrop-filter: blur(4px);
  cursor: pointer;

  transition:
    color 250ms ease,
    background-color 250ms ease,
    transform 250ms ease,
    box-shadow 250ms ease;
}

.button:hover,
.button:focus-visible,
.outline-button:hover,
.outline-button:focus-visible {
  color: var(--charcoal);
  background-color: #efd4a5;
  box-shadow: 0 8px 22px rgb(0 0 0 / 20%);
  transform: translateY(-3px);
  outline: none;
}

/* ====================================
   SECCIÓN DE BIENVENIDA
==================================== */

.welcome {
  position: relative;
  min-height: 470px;

  padding:
    clamp(55px, 14vw, 72px)
    clamp(55px, 16vw, 70px)
    46px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* ====================================
   ANILLOS LATERALES
==================================== */

.side-ring {
  position: absolute;
  z-index: 1;

  width: clamp(30px, 32vw, 75px);
  height: auto;

  opacity: 0;
  pointer-events: none;

  filter: drop-shadow(
    0 8px 14px rgb(71 46 18 / 18%)
  );

  will-change: transform, opacity;
}

.side-ring--woman {
  top: 10%;
  left: -8%;

  transform: translateX(-45px) rotate(-36deg);
}

.side-ring--man {
  top: 10%;
  right: -8%;

  transform: translateX(50px) rotate(28deg);
}

.side-ring--woman.is-visible {
  animation:
    ringWomanEnter 1.2s cubic-bezier(.22, 1, .36, 1)
    forwards;
}

.side-ring--man.is-visible {
  animation:
    ringManEnter 1.2s cubic-bezier(.22, 1, .36, 1)
    forwards;
}

/* ====================================
   FRASE
==================================== */

.quote {
  position: relative;
  z-index: 2;
  font-weight: 500;
  width: 100%;
  max-width: 310px;
  margin: 0;
  color: var(--sage);
  margin: 0 auto 25px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4.5vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  font-style: italic;
  line-height: 1.45;
}

/* ====================================
   DIVISOR BOTÁNICO
==================================== */

.botanical-divider {
  position: relative;
  z-index: 2;

  width: min(220px, 65vw);
  margin: 24px 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: var(--sage);
}

.botanical-divider span {
  flex: 1;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--gold)
  );
}

.botanical-divider span:last-child {
  background: linear-gradient(
    to left,
    transparent,
    var(--gold)
  );
}

.botanical-divider b {
  font-size: 1.4rem;
  font-weight: 400;
}


/* ====================================
   SECCIÓN DEL LUGAR
==================================== */

.venue-section {
  position: relative;
  min-height: 570px;

  padding:
    clamp(48px, 13vw, 66px)
    clamp(20px, 6vw, 28px)
    clamp(55px, 14vw, 72px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;

  text-align: center;
}

.venue-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

/* ====================================
   FECHA Y HORA
==================================== */

.venue-date {
  margin: 0;

  color: var(--gold);
  font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.venue-time {
  margin: 10px 0 12px;

  color: var(--sage);
  font-size: clamp(0.9rem, 4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ====================================
   NOMBRE DEL LUGAR
==================================== */

.venue-title {
  margin: 0;

  color: #77836f;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.venue-city {
  margin: 7px 0 14px;

  color: #8a887f;
  font-size: clamp(0.7rem, 3vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ====================================
   BOTÓN CÓMO LLEGAR
==================================== */

.venue-button {
  width: fit-content;
  min-width: 145px;
  min-height: 38px;
  margin: 0 auto 22px;
  padding: 8px 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #87765d;
  background-color: rgb(250 247 240 / 45%);
  border: 1px solid var(--gold);
  border-radius: 999px;

  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.venue-button svg {
  width: 14px;
  height: 14px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-button:hover,
.venue-button:focus-visible {
  color: var(--charcoal);
  background-color: #ead4ac;

  box-shadow:
    0 7px 20px rgb(75 59 36 / 13%);

  transform: translateY(-2px);
  outline: none;
}

/* ====================================
   CUADRO DE LA FOTOGRAFÍA
==================================== */

.venue-photo-card {
  position: relative;

  width: 100%;
  height: clamp(500px, 49vw, 220px);
  margin: 0;

  overflow: visible;
}

/*
El borde redondeado se aplica mediante
un contenedor generado internamente.
*/

.venue-photo-card::before {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 5px;

  border-radius: 25px;
  box-shadow:
    0 12px 30px rgb(61 50 38 / 16%);
}

.venue-photo {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 25px;

  box-shadow:
    0 10px 25px rgb(52 43 33 / 14%);

  transition:
    transform 900ms cubic-bezier(.22, 1, .36, 1),
    filter 500ms ease;
}

.venue-photo-card:hover .venue-photo {
  transform: scale(1.015);
  filter: saturate(1.05);
}

/* ====================================
   DECORACIÓN FLORAL
==================================== */

.venue-decoration {
  position: absolute;
  z-index: 3;

  left: clamp(-27px, -6vw, -16px);
  bottom: clamp(-28px, -6vw, -18px);

  width: clamp(105px, 31vw, 138px);
  height: auto;

  pointer-events: none;

  filter:
    drop-shadow(0 7px 10px rgb(59 47 32 / 11%));

  transform: rotate(-7deg);
  transform-origin: bottom left;

  animation:
    venueFlowerFloat 7s ease-in-out infinite;
}

/* ====================================
   APARICIÓN PARTICULAR DE LA FOTO
==================================== */

.venue-photo-card[data-reveal] {
  opacity: 0;

  transform:
    translateY(30px)
    scale(0.97);

  transition:
    opacity 900ms ease,
    transform 1000ms cubic-bezier(.22, 1, .36, 1);
}

.venue-photo-card[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* ====================================
   ANIMACIÓN DE LA FLOR
==================================== */

@keyframes venueFlowerFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .venue-section {
    padding-inline: 18px;
  }

  .venue-date {
    font-size: 1.15rem;
  }

  .venue-title {
    font-size: 0.98rem;
  }

  .venue-photo-card {
    height: 175px;
  }

  .venue-decoration {
    left: -20px;
    bottom: -22px;
    width: 105px;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .venue-decoration {
    animation: none;
  }

  .venue-photo,
  .venue-photo-card {
    transition: none;
  }
}


/* ====================================
   POPUP DE UBICACIÓN
==================================== */

.venue-map-popup {
  position: fixed;
  z-index: 9999;
  inset: 0;

  padding:
    max(25px, env(safe-area-inset-top))
    17px
    max(25px, env(safe-area-inset-bottom));

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgb(28 24 20 / 88%);
  backdrop-filter: blur(9px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

/* Estado abierto */

.venue-map-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Panel */

.venue-map-popup__panel {
  position: relative;

  width: 100%;
  max-width: 380px;
  max-height: calc(100svh - 50px);
  padding:
    43px
    clamp(20px, 6vw, 28px)
    32px;

  overflow-y: auto;

  text-align: center;

  background:#ffffff;

  border:
    1px solid rgb(195 154 88 / 42%);

  border-radius: 150px 150px 24px 24px;

  box-shadow:
    0 25px 70px rgb(0 0 0 / 35%);

  opacity: 0;

  transform:
    translateY(28px)
    scale(0.96);

  transition:
    opacity 350ms ease,
    transform 500ms
    cubic-bezier(.22, 1, .36, 1);
}

.venue-map-popup.is-open
.venue-map-popup__panel {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* Borde interior */

.venue-map-popup__panel::before {
  content: "";

  position: absolute;
  pointer-events: none;
  inset: 7px;

  border:
    1px solid rgb(195 154 88 / 16%);

  border-radius: 143px 143px 18px 18px;
}

/* Cerrar */

.venue-map-popup__close {
  position: absolute;
  z-index: 5;

  top: 44px;
  right: 44px;

  width: 39px;
  height: 39px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);
  background-color: rgb(255 255 255 / 60%);

  border:
    1px solid rgb(195 154 88 / 40%);

  border-radius: 50%;

  font-family: Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.venue-map-popup__close:hover,
.venue-map-popup__close:focus-visible {
  color: var(--charcoal);
  background-color: #efd7ac;

  transform: scale(1.08);
  outline: none;
}

/* Ícono de ubicación */

.venue-map-popup__icon {
  position: relative;
  z-index: 2;

  width: 43px;
  height: 43px;
  margin: 0 auto 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);

  background-color:
    rgb(195 154 88 / 10%);

  border:
    1px solid rgb(195 154 88 / 35%);

  border-radius: 50%;
}

.venue-map-popup__icon svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Encabezado */

.venue-map-popup__eyebrow {
  position: relative;
  z-index: 2;

  margin: 0 0 6px;

  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.venue-map-popup__panel h2 {
  position: relative;
  z-index: 2;

  max-width: 295px;
  margin: 0 auto;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 6.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-map-popup__city {
  position: relative;
  z-index: 2;

  margin: 8px 0 0;

  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.venue-map-popup__line {
  position: relative;
  z-index: 2;

  display: block;

  width: 40px;
  height: 1px;
  margin: 17px auto 20px;

  background-color: var(--gold);
}

/* Imagen */

.venue-map-popup__photo {
  position: relative;
  z-index: 2;

  aspect-ratio: 16 / 9;
  margin: 0;

  overflow: hidden;

  border-radius: 15px;

  box-shadow:
    0 10px 25px rgb(55 45 33 / 14%);
}

.venue-map-popup__photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* Mensaje */

.venue-map-popup__message {
  position: relative;
  z-index: 2;

  max-width: 285px;
  margin: 19px auto 0;

  color: #77736c;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Botón Google Maps */

.venue-map-popup__button {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 270px;
  min-height: 50px;
  margin: 22px auto 0;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #caa35f,
      var(--gold)
    );

  border:
    1px solid rgb(159 119 52 / 30%);

  border-radius: 999px;

  box-shadow:
    0 9px 20px rgb(136 99 39 / 18%);

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.venue-map-popup__button:hover,
.venue-map-popup__button:focus-visible {
  transform: translateY(-3px);

  box-shadow:
    0 13px 25px rgb(136 99 39 / 25%);

  outline: none;
}

.venue-map-popup__button svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.venue-map-popup__note {
  position: relative;
  z-index: 2;

  margin: 11px 0 0;

  color: #99938a;
  font-size: 0.65rem;
  font-style: italic;
}

/* Bloquea el fondo */

body.venue-map-popup-open {
  overflow: hidden;
}

/* Teléfonos pequeños */

@media (max-width: 359px) {
  .venue-map-popup {
    padding-inline: 12px;
  }

  .venue-map-popup__panel {
    padding-inline: 18px;
  }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .venue-map-popup,
  .venue-map-popup__panel,
  .venue-map-popup__close,
  .venue-map-popup__button {
    transition: none;
  }
}

/* ====================================
   CONTADOR
==================================== */

.countdown {
  position: relative;
  z-index: 2;
  width: 100%;
}

.countdown h2 {
  margin: 0 0 18px;

  color: var(--gold);
  font-size: clamp(1rem, 4.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.countdown__item {
  position: relative;
  min-width: 0;
  padding-inline: 4px;
}

.countdown__item + .countdown__item::before {
  content: "";

  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;

  width: 1px;
  background-color: rgb(195 154 88 / 45%);
}

.countdown__item strong,
.countdown__item span {
  display: block;
}

.countdown__item strong {
  color: #72806c;
  font-size: clamp(1.25rem, 6vw, 1.65rem);
  font-weight: 500;
  line-height: 1;

  font-variant-numeric: tabular-nums;
}

.countdown__item span {
  margin-top: 7px;

  color: #847e74;
  font-size: clamp(0.52rem, 2.4vw, 0.64rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* ====================================
   ITINERARIO
==================================== */

.itinerary-section {
  position: relative;
  padding:
    clamp(70px, 18vw, 90px)
    20px
    clamp(70px, 18vw, 95px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

/* Oculta el sprite SVG */

.itinerary-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ====================================
   ENCABEZADO
==================================== */

.itinerary-header {
  position: relative;
  z-index: 4;

  margin-bottom: 35px;
  text-align: center;
}

.itinerary-eyebrow {
  margin: 0 0 8px;

  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.itinerary-header h2 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 7.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.itinerary-header-line {
  display: block;

  width: 42px;
  height: 1px;
  margin: 17px auto 0;

  background-color: var(--gold);
}

/* ====================================
   CONTENEDOR DE LA LÍNEA
==================================== */

.itinerary-timeline {
  --timeline-progress: 0;

  position: relative;
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

/* Línea completa de fondo */

.itinerary-line {
  position: absolute;
  z-index: 1;

  top: 0;
  bottom: 155px;
  left: 50%;

  width: 1px;

  background-color: rgb(195 154 88 / 22%);

  transform: translateX(-50%);
}

/* Línea que crece al bajar */

.itinerary-line-progress {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    var(--gold),
    #d8b77e,
    var(--sage)
  );

  transform: scaleY(var(--timeline-progress));
  transform-origin: center top;

  box-shadow: 0 0 7px rgb(195 154 88 / 20%);

  will-change: transform;
}

/* ====================================
   ELEMENTOS DEL ITINERARIO
==================================== */

/*
Cada item ocupa media pantalla:
se muestran aproximadamente dos por viewport.
*/

.itinerary-item {
  position: relative;
  z-index: 2;

  min-height: 50svh;

  display: flex;
  align-items: center;
}

/* Círculo central */

.itinerary-marker {
  position: absolute;
  z-index: 4;

  top: 50%;
  left: 50%;

  width: 13px;
  height: 13px;

  background-color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;

  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(0);

  box-shadow:
    0 0 0 5px rgb(250 247 240 / 85%);

  transition:
    opacity 400ms ease,
    background-color 500ms ease,
    transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.itinerary-item.is-visible .itinerary-marker {
  opacity: 1;

  background-color: var(--gold);

  transform:
    translate(-50%, -50%)
    scale(1);
}

/* Tarjeta de cada momento */

.itinerary-card {
  position: relative;

  width: calc(50% - 27px);
  padding: 15px 6px;

  opacity: 0;

  transition:
    opacity 850ms ease,
    transform 950ms cubic-bezier(.22, 1, .36, 1);
}

/* Elementos de la izquierda */

.itinerary-item--left {
  justify-content: flex-start;
}

.itinerary-item--left .itinerary-card {
  text-align: right;
  transform: translateX(-65px);
}

/* Elementos de la derecha */

.itinerary-item--right {
  justify-content: flex-end;
}

.itinerary-item--right .itinerary-card {
  text-align: left;
  transform: translateX(65px);
}

/* Estado visible */

.itinerary-item.is-visible .itinerary-card {
  opacity: 1;
  transform: translateX(0);
}

/* Línea horizontal hacia el círculo */

.itinerary-card::after {
  content: "";

  position: absolute;
  top: 50%;

  width: 20px;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--gold)
  );

  opacity: 0;
  transform: scaleX(0);

  transition:
    opacity 500ms ease 300ms,
    transform 600ms ease 300ms;
}

.itinerary-item--left .itinerary-card::after {
  right: -20px;
  transform-origin: right;
}

.itinerary-item--right .itinerary-card::after {
  left: -20px;
  background: linear-gradient(
    to left,
    transparent,
    var(--gold)
  );
  transform-origin: left;
}

.itinerary-item.is-visible .itinerary-card::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ====================================
   ÍCONOS
==================================== */

.itinerary-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 10px;

  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0;
  transform: translateY(10px) scale(0.85);

  transition:
    opacity 600ms ease 250ms,
    transform 700ms cubic-bezier(.22, 1, .36, 1) 250ms;
}

.itinerary-item--left .itinerary-icon {
  margin-left: auto;
}

.itinerary-item--right .itinerary-icon {
  margin-right: auto;
}

.itinerary-item.is-visible .itinerary-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Dibujo progresivo del SVG */

.itinerary-icon * {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;

  transition:
    stroke-dashoffset 1.5s ease 350ms;
}

.itinerary-item.is-visible .itinerary-icon * {
  stroke-dashoffset: 0;
}

/* ====================================
   TEXTOS
==================================== */

.itinerary-card time {
  display: block;
  margin-bottom: 5px;

  color: var(--sage);
  font-size: clamp(1.25rem, 3.2vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.itinerary-card h3 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itinerary-card p {
  margin: 9px 0 0;

  color: #77746d;
  font-size: clamp(1.35rem, 3vw, 0.85rem);
  font-style: italic;
  line-height: 1.35;
}

/* ====================================
   RAMO FINAL
==================================== */

.itinerary-finale {
  position: relative;
  z-index: 3;

  min-height: 30svh;
  padding-top: 50px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;

  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 900ms ease,
    transform 1000ms cubic-bezier(.22, 1, .36, 1);
}

.itinerary-finale.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.itinerary-final-marker {
  width: 15px;
  height: 15px;
  margin-bottom: 16px;

  background-color: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;

  box-shadow:
    0 0 0 5px rgb(250 247 240 / 85%);
}

.itinerary-finale img {
  width: clamp(190px, 61vw, 270px);
  height: auto;

  filter:
    drop-shadow(0 8px 12px rgb(60 47 31 / 11%));

  transform: scale(0.9);

  transition:
    transform 1.1s cubic-bezier(.22, 1, .36, 1) 200ms;
}

.itinerary-finale.is-visible img {
  transform: scale(1);
}

.itinerary-finale p {
  max-width: 270px;
  margin: 18px 0 0;

  color: var(--sage);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
}

/* ====================================
   CONFIRMACIÓN DE ASISTENCIA
==================================== */

.rsvp-section {
  position: relative;

  padding:
    clamp(75px, 19vw, 100px)
    clamp(17px, 5vw, 24px)
    clamp(80px, 20vw, 105px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

/* ====================================
   TARJETA PRINCIPAL
==================================== */

.rsvp-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 370px;
  margin-inline: auto;
  padding:
    clamp(47px, 12vw, 60px)
    clamp(22px, 7vw, 34px)
    clamp(38px, 10vw, 50px);

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 50%),
      rgb(250 247 240 / 68%)
    );

  border: 1px solid rgb(195 154 88 / 40%);
  border-radius: 150px 150px 24px 24px;

  box-shadow:
    0 16px 40px rgb(55 45 33 / 8%),
    inset 0 0 0 5px rgb(255 255 255 / 20%);
}

/* Línea interior decorativa */

.rsvp-card::before {
  content: "";

  position: absolute;
  pointer-events: none;
  inset: 7px;

  border: 1px solid rgb(195 154 88 / 16%);
  border-radius: 143px 143px 18px 18px;
}

/* Luz suave detrás de los anillos */

.rsvp-card::after {
  content: "";

  position: absolute;
  z-index: -1;

  top: -45px;
  left: 50%;

  width: 160px;
  height: 160px;

  background:
    radial-gradient(
      circle,
      rgb(216 170 162 / 18%),
      transparent 68%
    );

  border-radius: 50%;

  transform: translateX(-50%);
  pointer-events: none;
}

/* ====================================
   ANILLOS
==================================== */

.rsvp-rings {
  position: relative;

  width: 75px;
  height: 43px;
  margin: 0 auto 23px;
}

.rsvp-ring {
  position: absolute;
  top: 4px;

  width: 38px;
  height: 38px;

  border: 2px solid var(--gold);
  border-radius: 50%;

  box-shadow:
    inset 0 0 4px rgb(195 154 88 / 20%),
    0 4px 8px rgb(55 45 33 / 8%);
}

.rsvp-ring--left {
  left: 8px;
  transform: rotate(-10deg);
}

.rsvp-ring--right {
  right: 8px;
  transform: rotate(10deg);
}

/* Diamante pequeño */

.rsvp-rings__shine {
  position: absolute;
  z-index: 3;

  top: -4px;
  right: 16px;

  width: 9px;
  height: 9px;

  background:
    linear-gradient(
      135deg,
      #fff7dc,
      var(--gold)
    );

  border: 1px solid rgb(195 154 88 / 70%);

  transform: rotate(45deg);

  box-shadow:
    0 0 8px rgb(195 154 88 / 45%);
}

/* ====================================
   ENCABEZADO
==================================== */

.rsvp-header {
  position: relative;
}

.rsvp-eyebrow {
  margin: 0 0 9px;

  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.rsvp-header h2 {
  max-width: 285px;
  margin: 0 auto;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-header-line {
  display: block;

  width: 42px;
  height: 1px;
  margin: 19px auto 0;

  background-color: var(--gold);
}

/* ====================================
   MENSAJE
==================================== */

.rsvp-content {
  position: relative;
  z-index: 2;
}

.rsvp-message {
  max-width: 285px;
  margin: 23px auto 0;

  color: #67645e;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.2vw, 1.12rem);
  font-style: italic;
  line-height: 1.5;
}

.rsvp-request {
  max-width: 275px;
  margin: 18px auto 0;

  color: #858077;
  font-size: clamp(1.25rem, 3.2vw, 0.86rem);
  line-height: 1.5;
}

/* ====================================
   FECHA LÍMITE
==================================== */

.rsvp-date {
  width: fit-content;
  margin: 22px auto 27px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: var(--gold);
}

.rsvp-date__day {
  padding-right: 12px;

  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12vw, 3.5rem);
  font-weight: 400;
  line-height: 0.9;

  border-right:
    1px solid rgb(195 154 88 / 45%);
}

.rsvp-date__information {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  text-align: left;
  text-transform: uppercase;
}

.rsvp-date__information strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.rsvp-date__information small {
  margin-top: 3px;

  color: var(--sage);
  font-size: 1.5rem;
  letter-spacing: 0.24em;
}

/* ====================================
   BOTÓN
==================================== */

.rsvp-button {
  position: relative;

  width: 100%;
  max-width: 265px;
  min-height: 50px;
  margin-inline: auto;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      #caa35f,
      var(--gold)
    );

  border: 1px solid rgb(159 119 52 / 35%);
  border-radius: 999px;

  box-shadow:
    0 9px 20px rgb(136 99 39 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 30%);

  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;

  overflow: hidden;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    background-color 250ms ease;
}

/* Brillo del botón */

.rsvp-button::before {
  content: "";

  position: absolute;
  top: -50%;
  left: -45%;

  width: 35%;
  height: 200%;

  background:
    linear-gradient(
      to right,
      transparent,
      rgb(255 255 255 / 38%),
      transparent
    );

  transform: rotate(20deg);

  transition: left 600ms ease;
}

.rsvp-button:hover::before {
  left: 115%;
}

.rsvp-button:hover,
.rsvp-button:focus-visible {
  transform: translateY(-3px);

  box-shadow:
    0 13px 25px rgb(136 99 39 / 24%);

  outline: none;
}

.rsvp-button:active {
  transform: translateY(-1px);
}

.rsvp-button svg {
  position: relative;
  z-index: 2;

  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsvp-button span {
  position: relative;
  z-index: 2;
}

/* ====================================
   NOTA Y WHATSAPP
==================================== */

.rsvp-note {
  margin: 13px 0 0;

  color: #9a958c;
  font-size: 1.25rem;
  font-style: italic;
}

.rsvp-help {
  margin: 25px 0 0;

  color: #827e76;
  font-size: 1rem;
  line-height: 1.5;
}

.rsvp-help a {
  display: block;
  width: fit-content;
  margin: 4px auto 0;

  color: var(--sage);
  font-weight: 600;
  text-decoration: none;

  border-bottom:
    1px solid rgb(154 163 141 / 45%);
}

.rsvp-help a:hover,
.rsvp-help a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  outline: none;
}

/* ====================================
   DECORACIONES EXTERIORES
==================================== */

.rsvp-decoration {
  position: absolute;
  z-index: 1;

  width: 105px;
  height: 105px;

  opacity: 0.28;
  pointer-events: none;
}

.rsvp-decoration--top {
  top: 20px;
  right: -25px;

  transform: rotate(25deg);
}

.rsvp-decoration--bottom {
  bottom: 20px;
  left: -25px;

  transform: rotate(205deg);
}

.rsvp-decoration span {
  position: absolute;

  width: 55px;
  height: 24px;

  border: 1px solid var(--sage);
  border-radius: 100% 0 100% 0;

  transform-origin: left center;
}

.rsvp-decoration span:nth-child(1) {
  top: 45px;
  left: 13px;

  transform: rotate(-32deg);
}

.rsvp-decoration span:nth-child(2) {
  top: 50px;
  left: 38px;

  transform: rotate(9deg);
}

.rsvp-decoration span:nth-child(3) {
  top: 66px;
  left: 22px;

  transform: rotate(45deg);
}

/* ====================================
   ANIMACIÓN DE APARICIÓN
==================================== */

.rsvp-card[data-reveal] {
  opacity: 0;

  transform:
    translateY(30px)
    scale(0.97);

  transition:
    opacity 900ms ease,
    transform 1000ms cubic-bezier(.22, 1, .36, 1);
}

.rsvp-card[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* ====================================
   CÓDIGO DE VESTUARIO
==================================== */

.dress-code-section {
  position: relative;

  padding:
    clamp(20px, 19vw, 50px)
    clamp(17px, 5vw, 24px)
    clamp(20px, 20vw, 50px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

/* Decoración difuminada */

.dress-code-section::before,
.dress-code-section::after {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  border-radius: 50%;
  pointer-events: none;
}

.dress-code-section::before {
  top: 150px;
  right: -100px;

  background:
    radial-gradient(
      circle,
      rgb(24 48 41 / 9%),
      transparent 70%
    );
}

.dress-code-section::after {
  bottom: 160px;
  left: -100px;

  background:
    radial-gradient(
      circle,
      rgb(207 185 150 / 15%),
      transparent 70%
    );
}

/* ====================================
   ENCABEZADO
==================================== */

.dress-code-header {
  position: relative;
  z-index: 2;

  max-width: 370px;
  margin: 0 auto 28px;

  text-align: center;
}

.dress-code-header p {
  margin: 0 0 8px;

  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.dress-code-message{
  font-size: 1.2rem !important;
  text-transform: inherit !important;
  letter-spacing: 0em !important;
  margin-top: 0.5em !important;
}

.dress-code-header h2 {
  max-width: 320px;
  margin: 0 auto;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dress-code-header > span {
  display: block;

  width: 42px;
  height: 1px;
  margin: 18px auto 0;

  background-color: var(--gold);
}

/* ====================================
   FORMALIDAD
==================================== */

.dress-code-formality {
  position: relative;
  z-index: 2;

  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  background-color: rgb(250 247 240 / 72%);

  border:
    1px solid rgb(195 154 88 / 35%);

  border-radius: 999px;

  box-shadow:
    0 7px 20px rgb(55 45 33 / 7%);
}

.dress-code-formality__label {
  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dress-code-formality strong {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ====================================
   MUJERES Y HOMBRES
==================================== */

.dress-code-options {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dress-code-card {
  min-width: 0;
  padding: 25px 13px 22px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 52%),
      rgb(250 247 240 / 70%)
    );

  border:
    1px solid rgb(195 154 88 / 25%);

  border-radius: 90px 90px 18px 18px;

  box-shadow:
    0 12px 28px rgb(55 45 33 / 8%);
}

.dress-code-icon {
  width: 70px;
  height: 90px;
  margin: 0 auto 20px;
}

.dress-code-icon svg {
  width: 100%;
  height: 100%;

  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dress-code-card h3 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dress-code-card__line {
  display: block;

  width: 25px;
  height: 1px;
  margin: 11px auto;

  background-color:
    rgb(195 154 88 / 60%);
}

.dress-code-card p {
  margin: 0;

  color: var(--sage );
  font-size: clamp(1.2rem, 2.8vw, 1.2rem);
  line-height: 1.5;
}

/* ====================================
   BLANCO RESERVADO
==================================== */

.dress-code-white {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;
  margin: 18px auto 0;
  padding: 18px 19px;

  display: flex;
  align-items: center;
  gap: 17px;

  background-color: rgb(250 247 240 / 68%);

  border:
    1px solid rgb(195 154 88 / 28%);

  border-radius: 18px;

  box-shadow:
    0 10px 25px rgb(55 45 33 / 7%);
}

.dress-code-white__swatch {
  flex: 0 0 58px;

  width: 58px;
  height: 58px;

  background-color: #fff;

  border:
    1px solid rgb(195 154 88 / 38%);

  border-radius: 50%;

  box-shadow:
    inset 0 0 0 5px rgb(245 240 231 / 80%),
    0 6px 15px rgb(55 45 33 / 8%);
}

.dress-code-white__content {
  text-align: left;
}

.dress-code-white__content > span {
  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dress-code-white__content h3 {
  margin: 3px 0 4px;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dress-code-white__content p {
  margin: 0;

  color: var(--sage);
  font-size: 1.2rem;
  line-height: 1.45;
}

/* ====================================
   PALETA RESERVADA
==================================== */

.reserved-colors {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 390px;
  margin: 18px auto 0;
  padding: 27px 17px 24px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 50%),
      rgb(250 247 240 / 70%)
    );

  border:
    1px solid rgb(195 154 88 / 28%);

  border-radius: 18px;

  box-shadow:
    0 12px 30px rgb(55 45 33 / 8%);
}

.reserved-colors__header p {
  margin: 0 0 5px;

  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reserved-colors__header h3 {
  max-width: 270px;
  margin: 0 auto;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Círculos de color */

.reserved-colors__palette {
  margin: 23px auto 18px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reserved-color {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reserved-color__swatch {
  display: block;

  width: clamp(48px, 14vw, 58px);
  height: clamp(48px, 14vw, 58px);

  border:
    3px solid rgb(255 255 255 / 75%);

  border-radius: 50%;

  box-shadow:
    0 0 0 1px rgb(195 154 88 / 25%),
    0 7px 16px rgb(55 45 33 / 12%);
}

.reserved-color__swatch--chocolate {
  background-color: #432c25;
}

.reserved-color__swatch--emerald {
  background-color: #0f6b50;
}

.reserved-color__swatch--navy {
  background-color: #041e42;
}

.reserved-color__swatch--champagne {
  background-color: #cfb996;
}

.reserved-color small {
  color: var(--sage);
  font-size: clamp(1rem, 2.3vw, 1rem);
  line-height: 1.2;
}

.reserved-colors__note {
  max-width: 300px;
  margin: 0 auto;

  color: var(--sage);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
}

/* ====================================
   APARICIÓN
==================================== */

.dress-code-section [data-reveal] {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 850ms ease,
    transform 950ms cubic-bezier(.22, 1, .36, 1);
}

.dress-code-section
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pequeño retraso entre tarjetas */

.dress-code-options
.dress-code-card:nth-child(2) {
  transition-delay: 120ms;
}



/* ====================================
   REGALOS
==================================== */

.gifts-section {
  position: relative;

  padding:
    clamp(80px, 20vw, 105px)
    clamp(17px, 5vw, 24px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

.gifts-card {
  position: relative;

  width: 100%;
  max-width: 370px;
  margin-inline: auto;
  padding:
    clamp(45px, 12vw, 58px)
    clamp(23px, 7vw, 34px);

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 52%),
      rgb(250 247 240 / 72%)
    );

  border:
    1px solid rgb(195 154 88 / 35%);

  border-radius: 24px;

  box-shadow:
    0 16px 40px rgb(55 45 33 / 8%);
}

.gifts-card::before {
  content: "";

  position: absolute;
  pointer-events: none;
  inset: 7px;

  border:
    1px solid rgb(195 154 88 / 15%);

  border-radius: 18px;
}

/* Ícono */

.gifts-icon {
  position: relative;

  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
}

.gifts-icon svg {
  width: 100%;
  height: 100%;

  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Encabezado */

.gifts-header p {
  margin: 0 0 7px;

  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gifts-header h2 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.gifts-header > span {
  display: block;

  width: 40px;
  height: 1px;
  margin: 17px auto 0;

  background-color: var(--gold);
}

/* Mensaje */

.gifts-message {
  max-width: 290px;
  margin: 23px auto 0;
}

.gifts-message p {
  margin: 0;

  color: #716d66;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 4vw, 1.08rem);
  line-height: 1.5;
}

.gifts-message p:first-child {
  font-style: italic;
}

.gifts-message p + p {
  margin-top: 16px;

  color: #858077;
  font-family: inherit;
  font-size: 1rem;
}

/* Botón */

.gifts-button {
  width: 100%;
  max-width: 265px;
  min-height: 50px;
  margin: 27px auto 0;
  padding: 12px 19px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: white;
  background:
    linear-gradient(
      135deg,
      #caa35f,
      var(--gold)
    );

  border:
    1px solid rgb(159 119 52 / 30%);

  border-radius: 999px;

  box-shadow:
    0 9px 20px rgb(136 99 39 / 18%);

  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.gifts-button:hover,
.gifts-button:focus-visible {
  transform: translateY(-3px);

  box-shadow:
    0 13px 25px rgb(136 99 39 / 24%);

  outline: none;
}

.gifts-button svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gifts-note {
  margin: 12px 0 0;

  color: var(--sage);
  font-size: 1rem;
  font-style: italic;
}

/* ====================================
   POPUP DE REGALOS
==================================== */

.gifts-popup {
  position: fixed;
  z-index: 9998;
  inset: 0;

  padding:
    max(25px, env(safe-area-inset-top))
    17px
    max(25px, env(safe-area-inset-bottom));

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgb(28 24 20 / 88%);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.gifts-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gifts-popup__panel {
  position: relative;

  width: 100%;
  max-width: 380px;
  max-height: calc(100svh - 50px);
  padding: 38px 24px 32px;

  overflow-y: auto;
  text-align: center;

  background:#ffffff;

  border:
    1px solid rgb(195 154 88 / 100%);

  border-radius: 24px;

  box-shadow:
    0 25px 70px rgb(0 0 0 / 35%);

  transform: translateY(25px) scale(0.96);

  transition:
    transform 450ms
    cubic-bezier(.22, 1, .36, 1);
}

.gifts-popup.is-open
.gifts-popup__panel {
  transform: translateY(0) scale(1);
}

/* Cerrar */

.gifts-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;
  padding: 0;

  color: var(--gold);
  background-color: rgb(255 255 255 / 50%);
  border:
    1px solid rgb(195 154 88 / 35%);

  border-radius: 50%;

  font-size: 1.7rem;
  line-height: 1;

  cursor: pointer;
}

/* Anillos */

.gifts-popup__rings {
  position: relative;

  width: 58px;
  height: 35px;
  margin: 0 auto 15px;
}

.gifts-popup__rings span {
  position: absolute;
  top: 2px;

  width: 32px;
  height: 32px;

  border: 1.7px solid var(--gold);
  border-radius: 50%;
}

.gifts-popup__rings span:first-child {
  left: 4px;
}

.gifts-popup__rings span:last-child {
  right: 4px;
}

.gifts-popup__eyebrow {
  margin: 0 0 6px;

  color: var(--sage);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gifts-popup__panel > h2 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gifts-popup__line {
  display: block;

  width: 38px;
  height: 1px;
  margin: 15px auto 22px;

  background-color: var(--gold);
}

/* Opciones */

.gift-option {
  padding: 18px;

  background-color: rgb(255 255 255 / 35%);

  border:
    1px solid rgb(195 154 88 / 22%);

  border-radius: 16px;
}

.gift-option + .gift-option {
  margin-top: 13px;
}

.gift-option h3 {
  margin: 0 0 8px;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-option p {
  max-width: 275px;
  margin: 0 auto;

  color: #77736c;
  font-size: 1rem;
  line-height: 1.5;
}

/* Código QR */

.gift-qr {
  width: 170px;
  margin: 17px auto 13px;
  padding: 9px;

  background-color: #fff;

  border:
    1px solid rgb(195 154 88 / 30%);

  border-radius: 12px;

  box-shadow:
    0 8px 22px rgb(55 45 33 / 10%);
}

.gift-qr img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1;
  object-fit: contain;
}

.gift-account {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-account span {
  color: var(--sage);
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-account strong {
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.gift-account small {
  margin-top: 4px;

  color: #8b867e;
  font-size: 1rem;
}

.gifts-popup__thanks {
  max-width: 280px;
  margin: 21px auto 0;

  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.45;
}

body.gifts-popup-open {
  overflow: hidden;
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .dress-code-section {
    padding-inline: 13px;
  }

  .dress-code-options {
    gap: 8px;
  }

  .dress-code-card {
    padding-inline: 9px;
  }

  .reserved-colors {
    padding-inline: 11px;
  }

  .reserved-colors__palette {
    gap: 5px;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .dress-code-section [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .rsvp-section {
    padding-inline: 13px;
  }

  .rsvp-card {
    padding-inline: 18px;
  }

  .rsvp-header h2 {
    font-size: 1.55rem;
  }

  .rsvp-button {
    font-size: 0.69rem;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .rsvp-card,
  .rsvp-button,
  .rsvp-button::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .itinerary-section {
    padding-inline: 15px;
  }

  .itinerary-card {
    width: calc(50% - 22px);
  }

  .itinerary-card::after {
    width: 16px;
  }

  .itinerary-item--left .itinerary-card::after {
    right: -16px;
  }

  .itinerary-item--right .itinerary-card::after {
    left: -16px;
  }

  .itinerary-icon {
    width: 36px;
    height: 36px;
  }

  .itinerary-card p {
    font-size: 0.68rem;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .itinerary-card,
  .itinerary-marker,
  .itinerary-icon,
  .itinerary-finale,
  .itinerary-finale img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .itinerary-icon * {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* ====================================
   ANIMACIONES DE APARICIÓN
==================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación continua de flores */

[data-animate="float"] {
  animation: flowerFloat 7s ease-in-out infinite;
}

[data-animate="float-reverse"] {
  animation: flowerFloatReverse 8s ease-in-out infinite;
}


/* ====================================
   GALERÍA
==================================== */

.gallery-section {
  position: relative;

  padding:
    clamp(65px, 17vw, 85px)
    clamp(15px, 5vw, 22px)
    clamp(70px, 18vw, 90px);

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

/* ====================================
   ENCABEZADO
==================================== */

.gallery-header {
  margin-bottom: 28px;
  text-align: center;
}

.gallery-header p {
  margin: 0 0 7px;

  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-header h2 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 8vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.gallery-header > span {
  display: block;

  width: 38px;
  height: 1px;
  margin: 16px auto 0;

  background-color: var(--gold);
}

/* ====================================
   CARRUSEL
==================================== */

.gallery-carousel {
  --gallery-gap: 12px;

  position: relative;
  width: 100%;
  max-width: 395px;
  margin-inline: auto;
}

/* Contenedor desplazable */

.gallery-track {
  display: flex;
  gap: var(--gallery-gap);

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  /* Permite deslizar el carrusel y bajar la página */
  touch-action: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;

  border-radius: 18px;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

/* ====================================
   FOTOGRAFÍAS
==================================== */

/*
Cada fotografía ocupa la mitad del ancho,
descontando la mitad del espacio central.
*/


.gallery-slide {
  position: relative;

  flex: 0 0 100%;

  aspect-ratio: 4 / 5;
  margin: 0;

  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  background-color: #e7e0d5;
  border-radius: 18px;

  box-shadow:
    0 8px 20px rgb(55 45 33 / 10%);

  cursor: zoom-in;
}

.gallery-slide img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.01);

  transition:
    transform 800ms cubic-bezier(.22, 1, .36, 1),
    filter 500ms ease;
}

.gallery-slide:hover img {
  transform: scale(1.055);
  filter: saturate(1.05);
}

.gallery-slide,
.gallery-slide img {
  touch-action: auto;
}

.gallery-slide img {
  user-select: none;
  -webkit-user-drag: none;
}

/* Sombra suave inferior */

.gallery-slide::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    transparent 65%,
    rgb(25 20 16 / 12%) 100%
  );

  pointer-events: none;
}

/* ====================================
   FLECHAS
==================================== */

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;

  width: 36px;
  height: 36px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);
  background-color: rgb(250 247 240 / 88%);
  border: 1px solid rgb(195 154 88 / 55%);
  border-radius: 50%;

  box-shadow:
    0 6px 16px rgb(52 43 33 / 15%);

  backdrop-filter: blur(5px);
  cursor: pointer;

  transform: translateY(-50%);

  transition:
    color 200ms ease,
    background-color 200ms ease,
    opacity 200ms ease,
    transform 200ms ease;
}

.gallery-arrow svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow--previous {
  left: -10px;
}

.gallery-arrow--next {
  right: -10px;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  color: var(--charcoal);
  background-color: #efd7ac;

  transform:
    translateY(-50%)
    scale(1.08);

  outline: none;
}

.gallery-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ====================================
   INDICADORES
==================================== */

.gallery-pagination {
  min-height: 16px;
  margin-top: 22px;

  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;

  background-color: #d7ccc1;
  border: 0;
  border-radius: 50%;

  cursor: pointer;

  transition:
    width 300ms ease,
    background-color 300ms ease,
    transform 300ms ease;
}

.gallery-dot:hover {
  background-color: var(--blush);
}

.gallery-dot.is-active {
  width: 10px;
  height: 10px;

  background-color: var(--gold);

  box-shadow:
    0 0 0 4px rgb(195 154 88 / 10%);

  transform: scale(1.05);
}

/* ====================================
   APARICIÓN AL HACER SCROLL
==================================== */

.gallery-carousel[data-reveal] {
  opacity: 0;

  transform:
    translateY(28px)
    scale(0.98);

  transition:
    opacity 900ms ease,
    transform 1000ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-carousel[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* ====================================
   POPUP MAGNIFY
==================================== */
.gallery-popup {
  position: fixed;
  z-index: 9999;
  inset: 0;

  padding:
    max(65px, env(safe-area-inset-top))
    55px
    max(35px, env(safe-area-inset-bottom));

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgb(18 16 14 / 94%);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

/* Estado abierto */

.gallery-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Contenedor central */

.gallery-popup__content {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Imagen ampliada */

.gallery-popup__image {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 135px);

  object-fit: contain;
  border-radius: 8px;

  box-shadow:
    0 20px 60px rgb(0 0 0 / 45%);

  opacity: 0;

  transform:
    scale(0.88)
    translateY(12px);

  transition:
    opacity 300ms ease,
    transform 450ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-popup.is-open
.gallery-popup__image {
  opacity: 1;

  transform:
    scale(1)
    translateY(0);
}

/* Contador: 1 / 6 */

.gallery-popup__counter {
  margin: 14px 0 0;

  color: rgb(255 255 255 / 78%);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Botón cerrar */

.gallery-popup__close {
  position: absolute;
  z-index: 5;

  top: max(15px, env(safe-area-inset-top));
  right: 16px;

  width: 44px;
  height: 44px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  background-color: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;

  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

/* Flechas del popup */

.gallery-popup__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;

  width: 40px;
  height: 40px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  background-color: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;

  font-family: Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.gallery-popup__arrow--previous {
  left: 8px;
}

.gallery-popup__arrow--next {
  right: 8px;
}

/* Interacción */

.gallery-popup__close:hover,
.gallery-popup__close:focus-visible {
  color: var(--charcoal);
  background-color: #efd7ac;

  transform: scale(1.08);
  outline: none;
}

.gallery-popup__arrow:hover,
.gallery-popup__arrow:focus-visible {
  color: var(--charcoal);
  background-color: #efd7ac;

  outline: none;
}

.gallery-popup__arrow:hover {
  transform:
    translateY(-50%)
    scale(1.08);
}

/* Impide mover el sitio mientras el popup está abierto */

body.gallery-popup-open {
  overflow: hidden;
}

/* Teléfonos pequeños */

@media (max-width: 359px) {
  .gallery-popup {
    padding-inline: 47px;
  }

  .gallery-popup__close,
  .gallery-popup__arrow {
    width: 38px;
    height: 38px;
  }

  .gallery-popup__arrow {
    font-size: 1.9rem;
  }

  .gallery-popup__close {
    font-size: 1.7rem;
  }
}

/* Pantallas grandes */

@media (min-width: 700px) {
  .gallery-popup {
    padding-inline: 90px;
  }

  .gallery-popup__image {
    max-width: 850px;
  }

  .gallery-popup__arrow--previous {
    left: 28px;
  }

  .gallery-popup__arrow--next {
    right: 28px;
  }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .gallery-popup,
  .gallery-popup__image,
  .gallery-popup__close,
  .gallery-popup__arrow {
    transition: none;
  }
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .gallery-section {
    padding-inline: 13px;
  }

  .gallery-carousel {
    --gallery-gap: 9px;
  }

  .gallery-slide {
    border-radius: 14px;
  }

  .gallery-arrow {
    width: 32px;
    height: 32px;
  }

  .gallery-arrow--previous {
    left: -7px;
  }

  .gallery-arrow--next {
    right: -7px;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    scroll-behavior: auto;
  }

  .gallery-slide img,
  .gallery-carousel {
    transition: none;
  }
}


/* Hace evidente que las fotografías se pueden abrir */

.gallery-slide {
  cursor: zoom-in;
}
/* ====================================
   POPUP DE LA GALERÍA
==================================== */

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;

  padding:
    max(55px, env(safe-area-inset-top))
    18px
    max(30px, env(safe-area-inset-bottom));

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgb(25 21 18 / 92%);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox__image {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 100px);

  object-fit: contain;
  border-radius: 8px;

  box-shadow:
    0 15px 50px rgb(0 0 0 / 35%);

  transform: scale(0.94);

  transition:
    transform 350ms
    cubic-bezier(.22, 1, .36, 1);
}

.gallery-lightbox.is-open
.gallery-lightbox__image {
  transform: scale(1);
}

/* Cerrar */

.gallery-lightbox__close {
  position: absolute;
  top: max(15px, env(safe-area-inset-top));
  right: 18px;

  width: 42px;
  height: 42px;
  padding: 0;

  color: white;
  background-color: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;

  font-size: 2rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}

/* Flechas del popup */

.gallery-lightbox__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;

  width: 42px;
  height: 42px;
  padding: 0;

  color: white;
  background-color: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-lightbox__arrow--previous {
  left: 12px;
}

.gallery-lightbox__arrow--next {
  right: 12px;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover {
  color: var(--charcoal);
  background-color: #efd7ac;
}

body.gallery-lightbox-open {
  overflow: hidden;
}


/* ====================================
   CONTROL FLOTANTE DE LA MÚSICA
==================================== */

.music-control {
  position: fixed;
  z-index: 50;

  right: max(
    18px,
    calc((100vw - var(--mobile-width)) / 2 + 18px)
  );

  bottom: max(
    18px,
    env(safe-area-inset-bottom)
  );

  width: 54px;
  height: 54px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);
  background:
    rgb(250 247 240 / 90%);

  border: 1px solid rgb(195 154 88 / 75%);
  border-radius: 50%;

  box-shadow:
    0 8px 25px rgb(46 37 26 / 20%),
    inset 0 0 0 4px rgb(255 255 255 / 30%);

  backdrop-filter: blur(8px);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(20px)
    scale(0.85);

  transition:
    opacity 400ms ease,
    visibility 400ms ease,
    transform 500ms cubic-bezier(.22, 1, .36, 1),
    color 200ms ease,
    background-color 200ms ease;
}

/*
El botón aparece después de abrir
la invitación o al interactuar con la música.
*/

.music-control.is-visible {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);
}

.music-control:hover,
.music-control:focus-visible {
  color: var(--charcoal);
  background-color: #efd4a5;

  transform:
    translateY(-3px)
    scale(1.05);

  outline: none;
}

/* ====================================
   ÍCONOS PLAY Y PAUSE
==================================== */

.music-control__icon {
  position: absolute;
  z-index: 3;

  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    opacity 250ms ease,
    transform 350ms cubic-bezier(.22, 1, .36, 1);
}

.music-control__icon--play {
  left: 18px;

  fill: currentColor;
  stroke: none;

  opacity: 1;
  transform: scale(1);
}

.music-control__icon--pause {
  opacity: 0;
  transform: scale(0.65);
}

/* Estado de reproducción */

.music-control.is-playing
.music-control__icon--play {
  opacity: 0;
  transform: scale(0.65);
}

.music-control.is-playing
.music-control__icon--pause {
  opacity: 1;
  transform: scale(1);
}

/* ====================================
   ANILLOS DECORATIVOS
==================================== */

.music-control__rings {
  position: absolute;
  inset: 0;

  border-radius: 50%;
  pointer-events: none;
}

.music-control__rings i {
  position: absolute;

  width: 5px;
  height: 5px;

  background-color: var(--blush);
  border-radius: 50%;

  opacity: 0.7;
}

.music-control__rings i:first-child {
  top: 8px;
  left: 12px;
}

.music-control__rings i:last-child {
  right: 10px;
  bottom: 10px;
}

/* ====================================
   ONDAS DE SONIDO
==================================== */

.music-control__waves {
  position: absolute;
  right: -4px;
  bottom: 2px;

  height: 20px;

  display: flex;
  align-items: flex-end;
  gap: 2px;

  opacity: 0;

  transition: opacity 300ms ease;
}

.music-control__waves i {
  width: 2px;
  height: 6px;

  background-color: var(--gold);
  border-radius: 10px;

  transform-origin: bottom;
}

.music-control.is-playing
.music-control__waves {
  opacity: 1;
}

.music-control.is-playing
.music-control__waves i {
  animation:
    musicWave 850ms ease-in-out infinite;
}

.music-control.is-playing
.music-control__waves i:nth-child(2) {
  animation-delay: 140ms;
}

.music-control.is-playing
.music-control__waves i:nth-child(3) {
  animation-delay: 280ms;
}

/* Pulso exterior al reproducir */

.music-control.is-playing::before {
  content: "";

  position: absolute;
  inset: -1px;

  border: 1px solid var(--gold);
  border-radius: 50%;

  animation:
    musicPulse 2.2s ease-out infinite;

  pointer-events: none;
}

/* ====================================
   ANIMACIONES
==================================== */

@keyframes musicWave {
  0%,
  100% {
    height: 5px;
  }

  50% {
    height: 15px;
  }
}

@keyframes musicPulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .music-control {
    right: 14px;
    bottom: max(
      14px,
      env(safe-area-inset-bottom)
    );

    width: 50px;
    height: 50px;
  }

  .music-control__icon--play {
    left: 17px;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .music-control,
  .music-control::before,
  .music-control__waves i {
    animation: none !important;
    transition: none;
  }
}



/* ====================================
   KEYFRAMES
==================================== */

@keyframes heroZoom {
  from {
    transform: scale(1.09);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes drawArch {
  from {
    opacity: 0;
    transform: scaleY(0.8);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes flowerFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

@keyframes flowerFloatReverse {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: -5px -8px;
  }
}

@keyframes ringWomanEnter {
  from {
    opacity: 0;
    transform: translateX(-70px) rotate(-28deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(-18deg);
  }
}

@keyframes ringManEnter {
  from {
    opacity: 0;
    transform: translateX(70px) rotate(38deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(28deg);
  }
}

/* ====================================
   TELÉFONOS PEQUEÑOS
==================================== */

@media (max-width: 359px) {
  .hero__content h1 {
    font-size: 3.65rem;
  }

  .welcome {
    padding-inline: 43px;
  }

  .side-ring {
    width: 105px;
  }

  .countdown__item span {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }
}

/* ====================================
   ESCRITORIO
==================================== */

@media (min-width: 600px) {
  body {
    padding-block: 30px;
  }

  .invitation {
    border-radius: 6px;
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .hero__arch,
  .side-ring {
    opacity: 1;
    transform: none;
  }
}


/* ====================================
   APERTURA DE LA INVITACIÓN
==================================== */

.invitation-envelope {
  position: fixed;
  z-index: 10000;
  inset: 0;

  width: 100%;
  height: 100svh;

  overflow: hidden;

  color: var(--charcoal);

  background:
    linear-gradient(
      rgb(255 255 255 / 100%),
      rgb(250 247 240 / 100%)
    ),
    url("../images/background/paper.webp")
    center / cover;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

/* Impide desplazar la página */

body.invitation-locked {
  height: 100svh;
  overflow: hidden;
}

/* Contenedor */

.envelope-cover {
  position: relative;

  width: 100%;
  max-width: 760px;
  height: 100%;
  margin-inline: auto;
}

/* Luz decorativa */

.envelope-cover::before {
  content: "";

  position: absolute;

  top: 52%;
  left: 50%;

  width: min(95vw, 650px);
  height: min(95vw, 650px);

  background:
    radial-gradient(
      circle,
      rgb(195 154 88 / 10%),
      transparent 68%
    );

  border-radius: 50%;

  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ====================================
   ENCABEZADO
==================================== */

.envelope-cover__header {
  position: absolute;
  z-index: 8;

  top: clamp(45px, 7svh, 75px);
  left: 50%;

  width: 90%;

  text-align: center;

  transform: translateX(-50%);
}

.envelope-cover__header > p {
  margin: 0 0 10px;

  color: var(--sage);
  font-size: clamp(1rem, 2vw, 0.66rem);
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.envelope-cover__header h1 {
  margin: 0;

  color: #9a7955;
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 12vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin-top:26px;
}

.envelope-cover__header h1 span {
  display: inline-block;

  margin-inline: 4px;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.43em;
  font-style: italic;

  transform: translateY(-8px);
}

.envelope-cover__header time {
  display: block;
  margin-top: 15px;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 0.85rem);
  letter-spacing: 0.3em;
  font-weight: 600;
}

/* ====================================
   SOBRE
==================================== */

.envelope-shell {
  position: absolute;
  z-index: 5;

  top: 55%;
  left: 50%;

  width: min(
    calc(100% - 34px),
    580px
  );

  aspect-ratio: 1.55 / 1;

  perspective: 1400px;
  transform-style: preserve-3d;

  transform:
    translate(-50%, -50%);

  filter:
    drop-shadow(
      0 20px 27px
      rgb(62 50 38 / 45%)
    );

  will-change:
    transform,
    opacity;
}

/* Fondo rectangular */

.envelope-shell__back {
  position: absolute;
  z-index: 1;
  inset: 0;

  background:
    linear-gradient(
      150deg,
      #fdfbf7,
      #eee8de
    );

  border:
    1px solid rgb(130 112 91 / 18%);

  border-radius: 5px;
}

/* ====================================
   SOLAPA SUPERIOR
==================================== */

.envelope-shell__flap {
  position: absolute;
  z-index: 6;

  top: 0;
  left: 0;

  width: 100%;
  height: 72%;

  background:
    linear-gradient(
      155deg,
      #fff,
      #f1ece4
    );

  clip-path:
    polygon(
      0 0,
      100% 0,
      50% 100%
    );

  transform-origin: center top;

  transform:
    rotateX(0deg);

  backface-visibility: hidden;

  filter:
    drop-shadow(
      0 10px 10px
      rgb(62 50 38 / 10%)
    );

  transition:
    transform 900ms
    cubic-bezier(.65, 0, .25, 1),
    filter 700ms ease;
}

/* Líneas diagonales */

.envelope-shell__flap::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      35deg,
      transparent 49.82%,
      rgb(125 110 93 / 13%) 50%,
      transparent 50.22%
    ),
    linear-gradient(
      -35deg,
      transparent 49.82%,
      rgb(125 110 93 / 13%) 50%,
      transparent 50.22%
    );

  pointer-events: none;
}

/* ====================================
   PLIEGUES INFERIORES
==================================== */

.envelope-shell__fold {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

/* Izquierdo */

.envelope-shell__fold--left {
  z-index: 3;

  background:
    linear-gradient(
      125deg,
      #fdfbf8,
      #eee8df
    );

  clip-path:
    polygon(
      0 0,
      54% 52%,
      0 100%
    );
}

/* Derecho */

.envelope-shell__fold--right {
  z-index: 3;

  background:
    linear-gradient(
      235deg,
      #fdfbf8,
      #eee8df
    );

  clip-path:
    polygon(
      100% 0,
      46% 52%,
      100% 100%
    );
}

/* Inferior */

.envelope-shell__fold--bottom {
  z-index: 4;

  background:
    linear-gradient(
      12deg,
      #f3eee6,
      #fff
    );

  clip-path:
    polygon(
      0 100%,
      50% 49%,
      100% 100%
    );
}

/* Bordes sutiles */

.envelope-shell__fold--left::after,
.envelope-shell__fold--right::after,
.envelope-shell__fold--bottom::after {
  content: "";

  position: absolute;
  inset: 0;

  border:
    1px solid rgb(130 112 91 / 11%);
}

/* ====================================
   SELLO DORADO
==================================== */

.invitation-envelope__seal {
  position: absolute;
  z-index: 10;

  top: 52%;
  left: 50%;

  width: clamp(70px, 17vw, 88px);
  height: clamp(70px, 17vw, 88px);
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #75531f;

  background:
    radial-gradient(
      circle at 35% 28%,
      #f1d99c,
      #c79b4d 55%,
      #886027 100%
    );

  border:
    2px solid #a77a35;

  border-radius: 50%;

  box-shadow:
    0 10px 20px rgb(76 53 25 / 30%),
    inset 0 0 0 5px rgb(255 244 198 / 24%),
    inset 0 0 0 7px rgb(105 72 27 / 16%);

  cursor: pointer;

  transform:
    translate(-50%, -50%)
    scale(1);

  transition:
    transform 250ms ease;
}

.invitation-envelope__seal::before {
  content: "";

  position: absolute;
  inset: 10px;

  border:
    1px solid rgb(96 64 23 / 38%);

  border-radius: 50%;
}

.invitation-envelope__seal::after {
  content: "";

  position: absolute;
  inset: -7px;

  border:
    1px solid rgb(195 154 88 / 50%);

  border-radius: 50%;

  animation:
    envelopeSealPulse 2.3s
    ease-out infinite;
}

.invitation-envelope__seal:hover,
.invitation-envelope__seal:focus-visible {
  transform:
    translate(-50%, -50%)
    scale(1.07);

  outline: none;
}

/* Rama */

.invitation-envelope__branch {
  position: absolute;

  width: 31px;
  height: 40px;

  fill: none;
  stroke: #74521f;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0.82;

  transition:
    opacity 250ms ease,
    transform 300ms ease;
}

/* Play y pausa */

.invitation-envelope__media {
  position: absolute;

  width: 25px;
  height: 25px;

  opacity: 0;

  transform: scale(0.6);

  transition:
    opacity 250ms ease,
    transform 300ms ease;
}

.invitation-envelope__media--play {
  left: 39%;

  fill: currentColor;
  stroke: none;
}

.invitation-envelope__media--pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ====================================
   INSTRUCCIÓN
==================================== */

.envelope-cover__instruction {
  position: absolute;
  z-index: 8;

  right: 0;
  bottom: clamp(24px, 5svh, 50px);
  left: 0;

  text-align: center;
}

.envelope-cover__instruction p {
  margin: 0 0 4px;

  color: #716c65;
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 3vw, 1rem);
}

.envelope-cover__instruction strong {
  display: block;

  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: clamp(0.94rem, 3.5vw, 1.1rem);
  font-weight: 500;
}

.envelope-cover__instruction svg {
  width: 21px;
  height: 21px;
  margin-top: 8px;

  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;

  animation:
    envelopeArrow 1.7s
    ease-in-out infinite;
}

/* ====================================
   ESTADO DEL AUDIO
==================================== */

.invitation-envelope.is-opening
.invitation-envelope__branch {
  opacity: 0;
  transform: scale(0.6);
}

.invitation-envelope.is-playing
.invitation-envelope__media--pause {
  opacity: 1;
  transform: scale(1);
}

.invitation-envelope.is-paused
.invitation-envelope__media--play {
  opacity: 1;
  transform: scale(1);
}

/* ====================================
   APERTURA CORREGIDA
==================================== */

/* Abre únicamente la solapa */

.invitation-envelope.is-opening
.envelope-shell__flap {
  transform:
    rotateX(178deg);

  filter:
    drop-shadow(
      0 -5px 7px
      rgb(62 50 38 / 5%)
    );
}

/* Después baja el sobre completo */

.invitation-envelope.is-opening
.envelope-shell {
  animation:
    envelopeLeave
    950ms
    cubic-bezier(.65, 0, .25, 1)
    720ms
    forwards;
}

/* Libera el sello */

.invitation-envelope.is-opening
.invitation-envelope__seal {
  animation:
    envelopeSealRelease
    650ms
    cubic-bezier(.22, 1, .36, 1)
    forwards;
}

/* Oculta nombres */

.invitation-envelope.is-opening
.envelope-cover__header {
  animation:
    envelopeHeaderLeave
    700ms
    ease
    700ms
    forwards;
}

/* Oculta instrucción */

.invitation-envelope.is-opening
.envelope-cover__instruction {
  animation:
    envelopeInstructionLeave
    500ms
    ease
    550ms
    forwards;
}

/* Desvanece la cortina */

.invitation-envelope.is-opening {
  animation:
    envelopeCurtainLeave
    500ms
    ease
    1450ms
    forwards;
}

/* Estado final */

.invitation-envelope.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ====================================
   ANIMACIONES
==================================== */

@keyframes envelopeSealPulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes envelopeArrow {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

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

@keyframes envelopeLeave {
  0% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1);
  }

  35% {
    opacity: 1;

    transform:
      translate(-50%, -53%)
      scale(1.015);
  }

  100% {
    opacity: 0;

    transform:
      translate(-50%, 65%)
      scale(0.96);
  }
}

@keyframes envelopeSealRelease {
  0% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1);
  }

  40% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1.14);
  }

  100% {
    opacity: 0;

    transform:
      translate(-50%, -85%)
      scale(0.65)
      rotate(8deg);
  }
}

@keyframes envelopeHeaderLeave {
  from {
    opacity: 1;
    transform: translateX(-50%);
  }

  to {
    opacity: 0;

    transform:
      translate(-50%, -18px);
  }
}

@keyframes envelopeInstructionLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes envelopeCurtainLeave {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ====================================
   PANTALLAS PEQUEÑAS
==================================== */

@media (max-height: 650px) {
  .envelope-cover__header {
    top: 24px;
  }

  .envelope-cover__header h1 {
    font-size: 3.2rem;
  }

  .envelope-cover__header time {
    margin-top: 8px;
  }

  .envelope-shell {
    top: 56%;
    width: min(calc(100% - 45px), 470px);
  }

  .envelope-cover__instruction {
    bottom: 12px;
  }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .invitation-envelope,
  .invitation-envelope *,
  .invitation-envelope *::before,
  .invitation-envelope *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}


/* ====================================
   CIERRE DE LA INVITACIÓN
==================================== */

.wedding-finale {
  position: relative;

  /* min-height: 92svh;
  padding:
    clamp(85px, 22vw, 120px)
    clamp(20px, 6vw, 30px)
    clamp(70px, 18vw, 95px); */

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    url("../images/background/paper.webp")
    center top / 100% auto repeat-y;
}

/* Halo decorativo */

.wedding-finale::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: min(95vw, 410px);
  height: min(95vw, 410px);

  background:
    radial-gradient(
      circle,
      rgb(216 170 162 / 13%),
      transparent 68%
    );

  border-radius: 50%;

  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wedding-finale__content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 350px;

  text-align: center;
}

/* ====================================
   SVG ANIMADO
==================================== */

.wedding-finale__animation {
  width: 180px;
  margin: 0 auto 20px;
}

.wedding-finale__rings {
  display: block;

  width: 100%;
  height: auto;

  overflow: visible;
}

.finale-ring,
.finale-diamond,
.finale-diamond-detail,
.finale-branch,
.finale-leaf,
.finale-spark {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Anillos */

.finale-ring {
  stroke-width: 2;

  stroke-dasharray: 205;
  stroke-dashoffset: 205;

  opacity: 0;
}

.wedding-finale__content.is-visible
.finale-ring {
  animation:
    finaleDrawRing 1.7s
    cubic-bezier(.22, 1, .36, 1)
    forwards;
}

.wedding-finale__content.is-visible
.finale-ring--left {
  animation-delay: 250ms;
}

.wedding-finale__content.is-visible
.finale-ring--right {
  animation-delay: 650ms;
}

/* Diamante */

.finale-diamond,
.finale-diamond-detail {
  stroke-width: 1.5;

  stroke-dasharray: 60;
  stroke-dashoffset: 60;

  opacity: 0;
}

.wedding-finale__content.is-visible
.finale-diamond,
.wedding-finale__content.is-visible
.finale-diamond-detail {
  animation:
    finaleDrawDetail 1s ease
    1.5s forwards;
}

/* Ramas */

.finale-branch,
.finale-leaf {
  stroke: var(--sage);
  stroke-width: 1.2;

  stroke-dasharray: 90;
  stroke-dashoffset: 90;

  opacity: 0;
}

.wedding-finale__content.is-visible
.finale-branch {
  animation:
    finaleDrawDetail 1.3s ease
    1.15s forwards;
}

.wedding-finale__content.is-visible
.finale-leaf {
  animation:
    finaleDrawDetail 1s ease
    1.65s forwards;
}

/* Destellos */

.finale-spark {
  stroke-width: 1.3;

  opacity: 0;
  transform-origin: center;
}

.wedding-finale__content.is-visible
.finale-spark {
  animation:
    finaleSpark 2.3s ease-in-out
    2.1s infinite;
}

.finale-spark--left {
  animation-delay: 2.3s !important;
}

.finale-spark--right {
  animation-delay: 2.5s !important;
}

/* ====================================
   TEXTOS
==================================== */

.wedding-finale__eyebrow {
  margin: 0 0 7px;

  color: var(--sage);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wedding-finale h2 {
  margin: 0;

  color: var(--gold);
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 17vw, 4.7rem);
  font-weight: 400;
  line-height: 0.95;
}

.wedding-finale h2 span {
  display: inline-block;
  margin-inline: 4px;

  color: var(--sage);
  font-family: var(--font-serif);
  font-size:1em;
  font-style: italic;

  transform: translateY(-4px);
}

.wedding-finale__line {
  display: block;

  width: 44px;
  height: 1px;
  margin: 23px auto;

  background-color: var(--gold);
}

.wedding-finale__message {
  max-width: 290px;
  margin: 0 auto;

  color: var(--sage);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4.5vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
}

.wedding-finale__closing {
  margin: 18px 0 0;

  color: var(--sage);
  font-size: 1.3rem;
  letter-spacing: 0.07em;
}

.wedding-finale__date {
  display: block;
  margin: 25px 0 0;

  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.25em;
}

/* Corazón */

.wedding-finale__heart {
  width: 60px;
  height: 60px;
  margin-top: 24px;

  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;

  animation:
    finaleHeartbeat 2.3s
    ease-in-out infinite;
}

/* ====================================
   APARICIÓN GENERAL
==================================== */

.wedding-finale__content[data-reveal] {
  opacity: 0;

  transform:
    translateY(30px)
    scale(0.97);

  transition:
    opacity 1s ease,
    transform 1.1s
    cubic-bezier(.22, 1, .36, 1);
}

.wedding-finale__content[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* ====================================
   ANIMACIONES
==================================== */

@keyframes finaleDrawRing {
  0% {
    opacity: 0;
    stroke-dashoffset: 205;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes finaleDrawDetail {
  0% {
    opacity: 0;
    stroke-dashoffset: 90;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes finaleSpark {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.75);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes finaleHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }

  60% {
    transform: scale(1);
  }
}

/* ====================================
   MOVIMIENTO REDUCIDO
==================================== */

@media (prefers-reduced-motion: reduce) {
  .wedding-finale__content,
  .finale-ring,
  .finale-diamond,
  .finale-diamond-detail,
  .finale-branch,
  .finale-leaf,
  .finale-spark,
  .wedding-finale__heart {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    animation: none;
    transition: none;
  }
}