﻿/* ============================================================
   GUIA RAPIDA DE PERSONALIZACION (COLORES Y TAMANOS DE LETRA)
   Edita variables en :root para cambiar tipografia global.
   ============================================================ */
:root {
  --font-main: "The Seasons Regular", "The Seasons", serif;
  --color-primary: #7f6b54;
  --color-accent: #b8a58c;
  --color-text-main: #3a342e;
  --color-text-secondary: #7a7168;
  --color-button: #a48d72;
  --color-button-hover: #927b62;
  --bg-photo-url: url("assets/icons/fondo.jpg");

  --envelope-front: #e9dfcf;
  --envelope-flap: #ded2bf;
  --gold: #b9a07a;
  --bg: #f3ece1;
  --surface-soft: rgba(182, 162, 136, 0.2);
  --text: #3a342e;
  --line-soft: rgba(155, 133, 107, 0.25);
  --section-gap: clamp(42px, 7vw, 68px);

  /* Titulos generales de seccion */
  --title-color: #b49a72;
  --title-size: clamp(2.2rem, 4.6vw, 3.1rem);

  /* Portada (Juan & Fabiola) */
  --hero-names-color: #4a3b2c;
  --hero-names-size: clamp(3.65rem, 10.3vw, 6.86rem);
  --hero-kicker-color: #5f5142;
  --hero-kicker-size: 1.43em;
  --hero-quote-color: #6a5a49;
  --hero-quote-size: clamp(1.2rem, 2.4vw, 1.6rem);

  /* Texto secundario general */
  --text-secondary-color: #7a7168;
  --text-secondary-size: clamp(1.02rem, 2.2vw, 1.16rem);

  /* Ceremonia */
  --ceremony-month-size: clamp(1.3rem, 2.8vw, 1.8rem);
  --ceremony-side-size: clamp(1.2rem, 2.4vw, 1.7rem);
  --ceremony-day-size: clamp(3.8rem, 10vw, 5.9rem);
  --ceremony-year-size: clamp(1.7rem, 3vw, 2.2rem);

  /* Cronometro */
  --countdown-number-size: clamp(2rem, 5vw, 3.2rem);
  --countdown-label-size: clamp(1.25rem, 2.5vw, 1.9rem);
}

.hero-section.glass-card,
.hero-date-section {
  width: min(var(--panel-max-width), 100%);
}

@font-face {
  font-family: "The Seasons Regular";
  src:
    local("The Seasons Regular"),
    local("The Seasons"),
    local("TheSeasons-Regular");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background: linear-gradient(165deg, #f8f3ea 0%, #efe5d5 100%);
}

#bg-layer-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

#bg-layer,
#bg-gradient,
#bg-overlay {
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
}

#bg-layer {
  background-image: var(--bg-photo-url);
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}

#bg-gradient {
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 236, 222, 0.42) 0%, rgba(245, 236, 222, 0) 44%),
    radial-gradient(circle at 78% 12%, rgba(220, 203, 178, 0.34) 0%, rgba(220, 203, 178, 0) 40%),
    linear-gradient(170deg, rgba(255, 251, 244, 0.3) 0%, rgba(210, 187, 155, 0.24) 100%);
  opacity: 0.12;
}

#bg-overlay {
  background: transparent;
  opacity: 0;
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px 20px 60px;
}

.envelope-wrap {
  perspective: 1000px;
  width: 100%;
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
}

.envelope-wrap.is-opened {
  min-height: auto;
}

.envelope-intro-title {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 44px);
  transform: translateX(-50%);
  width: min(760px, 92vw);
  font-family: var(--font-main);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-align: center;
  color: #f8f3eb;
  text-shadow: 0 10px 28px rgba(73, 54, 31, 0.3);
  pointer-events: none;
  z-index: 12;
}

.envelope {
  position: relative;
  width: min(88vw, 420px);
  height: 270px;
  border: none;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.envelope.is-animating {
  pointer-events: none;
}

.envelope:hover {
  transform: translateY(-8px) rotateX(3deg);
}

.envelope-shadow {
  position: absolute;
  inset: auto 10% -24px;
  height: 24px;
  background: rgba(76, 63, 48, 0.22);
  filter: blur(14px);
  border-radius: 999px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #efe6d7, var(--envelope-front));
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(98, 80, 58, 0.2);
}

.envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  width: 100%;
  height: 160px;
  background: linear-gradient(145deg, #e9decb, var(--envelope-flap));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  transition: transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 7;
}

.seal {
  position: absolute;
  left: 50%;
  top: 112px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f5eee2;
  background: radial-gradient(circle at 30% 30%, #f3d9a2, var(--gold));
  border: 2px solid rgba(247, 236, 214, 0.62);
  box-shadow: 0 8px 16px rgba(98, 80, 58, 0.26);
  z-index: 10;
}

.hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--text-secondary-color);
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  z-index: 11;
}

.envelope.is-open .envelope-flap {
  transform: rotateX(178deg);
}

.envelope.is-open .seal {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(0.88);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.invitation {
  width: min(960px, 100%);
  margin-top: 34px;
  padding: 0 clamp(10px, 2vw, 22px) clamp(30px, 4vw, 44px);
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: reveal 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.9s backwards;
}

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

.flow-section {
  position: relative;
  margin-top: 0;
  padding: clamp(44px, 8vw, 72px) 0;
}

.invitation > .flow-section + .flow-section {
  margin-top: 40px;
}

.flow-section + .flow-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(620px, 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(155, 133, 107, 0.34), transparent);
}

.hero-section {
  text-align: center;
}

.glass-card {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 6vw, 46px) clamp(18px, 4vw, 34px);
  border-radius: 24px;
  border: 1px solid rgba(255, 249, 239, 0.46);
  background: rgba(246, 238, 226, 0.58);
  box-shadow: 0 18px 40px rgba(67, 51, 32, 0.16);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .glass-card {
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
}

.countdown-section,
.venue-section {
  text-align: center;
}

.venue-section .location-line {
  margin: 0;
}

.venue-section .waze-btn {
  margin-top: 14px;
}

.section-summary {
  margin: 8px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--text-secondary-color);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.section-details-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 16px auto 0;
}

.section-title {
  margin: 0 0 10px;
  text-align: center;
  /* Cambia aqui el tamano de TODOS los titulos de seccion */
  font-size: var(--title-size);
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
}

.section-subtitle,
.section-text {
  margin: 0;
  color: var(--text-secondary-color);
  text-align: center;
  font-size: var(--text-secondary-size);
}

.kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
}

h1 {
  margin: 10px 0 12px;
  font-family: var(--font-main);
  /* Tamano de nombres principales en portada */
  font-size: var(--hero-names-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hero-names-color);
  text-shadow: 0 2px 8px rgba(255, 247, 235, 0.5), 0 1px 2px rgba(63, 46, 28, 0.2);
  line-height: 1;
}

.hero-section .kicker {
  color: var(--hero-kicker-color);
  font-weight: 700;
  font-size: var(--hero-kicker-size);
}

.hero-quote {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--hero-quote-color);
  font-size: var(--hero-quote-size);
  font-style: italic;
  line-height: 1.4;
}

.hero-date-section {
  text-align: center;
  width: min(760px, 100%);
  background: #f8f6f8;
  border-color: rgba(164, 146, 118, 0.28);
  padding: clamp(44px, 7.5vw, 64px) clamp(30px, 6vw, 52px);
}

.hero-date-line {
  margin: 22px auto 0;
  width: fit-content;
  padding: 10px 16px;
  color: #4d4236;
  font-size: clamp(1.18rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.45);
}

.section-icon-img {
  width: 150px; /* tamano editable */
  height: auto;
  display: block;
  margin: 0 auto 18px auto; /* centrado y separado del texto */
}

.hero-date-section > .section-icon-img {
  width: clamp(220px, 25vw, 290px);
}

.countdown-section > .calendar-icon {
  width: clamp(190px, 22vw, 250px);
}

.venue-section > .section-icon-img {
  width: clamp(220px, 25vw, 290px);
}

.regalos-section > .regalos-trigger-icon {
  width: clamp(190px, 22vw, 250px);
}

.dresscode-section > .dresscode-trigger-icon {
  width: clamp(110px, 13vw, 145px);
}

.dresscode-trigger-icon,
.regalos-trigger-icon {
  transform-origin: center center;
}

.camera-icon-wrap {
  position: relative;
  width: 150px;
  margin: 0 auto 18px auto;
  display: block;
  pointer-events: none;
  isolation: isolate;
}

.camera-icon-wrap .camera-icon {
  width: 100%;
  margin: 0;
  transform-origin: center center;
  backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.camera-focus-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  border: 1px solid rgba(172, 148, 114, 0.42);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.camera-sheen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(252, 246, 236, 0),
    rgba(252, 246, 236, 0.13),
    rgba(252, 246, 236, 0)
  );
  transform: translate(-50%, -50%) rotate(-21deg);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.calendar-icon {
  transform-origin: center;
}

.ceremony-title {
  margin: 14px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(169, 153, 129, 0.46);
  /* Cambia aqui el tamano de TODOS los titulos de seccion */
  font-size: var(--title-size);
  text-transform: none;
  letter-spacing: 0.03em;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
}

.ceremony-month {
  margin: 16px 0 0;
  font-size: var(--ceremony-month-size);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
}

.ceremony-date-row {
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 560px;
}

.ceremony-date-side {
  margin: 0;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
  text-transform: uppercase;
  font-size: var(--ceremony-side-size);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.ceremony-date-side:first-child {
  text-align: left;
  border-bottom: 1px solid rgba(169, 153, 129, 0.72);
  padding-bottom: 6px;
}

.ceremony-date-side:last-child {
  text-align: right;
  border-bottom: 1px solid rgba(169, 153, 129, 0.72);
  padding-bottom: 6px;
}

.ceremony-day-block {
  text-align: center;
}

.ceremony-day {
  margin: 0;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
  font-size: var(--ceremony-day-size);
  line-height: 0.9;
  font-weight: 700;
}

.ceremony-year {
  margin: 6px 0 0;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
  font-size: var(--ceremony-year-size);
  line-height: 1;
}

.card-beige {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: clamp(34px, 6.8vw, 54px) clamp(16px, 3.5vw, 30px);
  border-radius: 22px;
  border: 1px solid rgba(171, 147, 116, 0.3);
  background: linear-gradient(180deg, #f6f1e8 0%, #efe3d2 100%);
  box-shadow: 0 14px 30px rgba(92, 74, 54, 0.13);
}

.location-line {
  margin: 6px 0;
  font-size: clamp(1.5rem, 2vw, 1.4rem);
  color: #4d4236;
  font-weight: 700;
}

.countdown {
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 14px) 0;
  max-width: 520px;
  align-items: start;
}

.countdown[hidden],
.event-day-message[hidden] {
  display: none !important;
}

.countdown div {
  position: relative;
  padding: 2px 22px;
  border: 0;
  background: none;
  box-shadow: none;
}

.countdown div::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: rgba(176, 160, 136, 0.9);
}

.countdown div:nth-child(even)::after {
  content: none;
}

.countdown span {
  display: block;
  font-size: var(--countdown-number-size);
  font-weight: 600;
  color: #4a4a4a;
  line-height: 1.05;
}

.countdown small {
  display: block;
  margin-top: 10px;
  font-size: var(--countdown-label-size);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
  font-weight: 600;
}

.countdown-section .section-title {
  margin-bottom: 8px;
}

.countdown::after {
  content: "";
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 16px;
  /* Cambia aqui el color de TODOS los titulos de seccion */
  color: var(--title-color);
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1;
  animation: heartbeat 1.25s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.12);
  }
  40% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.08);
  }
  80% {
    transform: scale(1);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waze-btn {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}

.moments-section {
  --moments-transition-ms: 1300ms;
}



.moments-subtitle {
  margin: 8px auto 22px;
  text-align: center;
  max-width: 620px;
  color: #7a6d5f;
  font-size: clamp(1.1rem, 2.3vw, 1.22rem);
}

.moments-section.card-beige {
  padding-top: clamp(40px, 7vw, 56px);
  padding-bottom: clamp(38px, 6.6vw, 52px);
}

.moments-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(174, 153, 122, 0.34);
  background: #e8decb;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(92, 74, 54, 0.14);
}

.moments-track {
  position: relative;
  min-height: clamp(260px, 52vw, 520px);
}

.moment-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--moments-transition-ms) ease-in-out;
}

.moment-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.moment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform calc(var(--moments-transition-ms) + 1800ms) ease-in-out;
}

.moment-slide.is-active .moment-image {
  transform: scale(1.03);
}

.moment-zoom-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.moment-zoom-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(244, 234, 214, 0.96);
}

.moment-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56, 43, 26, 0.02) 46%, rgba(56, 43, 26, 0.28) 100%);
  pointer-events: none;
}

.moment-zoom-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 241, 229, 0.88);
  border: 1px solid rgba(236, 222, 197, 0.52);
  color: #5c4937;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(58, 43, 27, 0.12);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.moment-zoom-badge::before {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
}

.moment-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 42px;
  z-index: 2;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  color: #f6f1e5;
  font-size: clamp(1.06rem, 2.25vw, 1.28rem);
  line-height: 1.35;
  background: rgba(103, 113, 61, 0.66);
  border: 1px solid rgba(238, 226, 198, 0.38);
  box-shadow: 0 8px 18px rgba(75, 60, 43, 0.18);
  pointer-events: none;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .moment-caption {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.moments-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(180, 156, 128, 0.5);
  border-radius: 50%;
  background: rgba(244, 236, 220, 0.9);
  color: var(--hero-kicker-color);
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(87, 69, 49, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.moments-arrow:hover {
  background: rgba(238, 227, 207, 0.97);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 8px 18px rgba(87, 69, 49, 0.2);
}

.moments-prev {
  left: 12px;
}

.moments-next {
  right: 12px;
}

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

.moment-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(166, 140, 110, 0.68);
  border-radius: 50%;
  background: rgba(166, 140, 110, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.moment-dot.is-active {
  background: rgba(145, 119, 88, 0.84);
  transform: scale(1.12);
}

.info-section {
  margin-top: 0;
  padding: clamp(44px, 8vw, 72px) 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}



.countdown-section.card-beige {
  background: linear-gradient(180deg, #f6f1e8 0%, #efe3d2 100%);
  border: 1px solid rgba(171, 147, 116, 0.3);
  box-shadow: 0 14px 30px rgba(92, 74, 54, 0.13);
  border-radius: 22px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.venue-section.card-beige {
  background: linear-gradient(180deg, #f6f1e8 0%, #efe3d2 100%);
  border: 1px solid rgba(171, 147, 116, 0.3);
  box-shadow: 0 14px 30px rgba(92, 74, 54, 0.13);
  border-radius: 22px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.itinerary-section.card-beige,
.dresscode-section.card-beige,
.regalos-section.card-beige,
.rsvp-section.card-beige {
  background: linear-gradient(180deg, #f6f1e8 0%, #efe3d2 100%);
  border: 1px solid rgba(171, 147, 116, 0.3);
  box-shadow: 0 14px 30px rgba(92, 74, 54, 0.13);
  border-radius: 22px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.itinerary-section .section-title {
  margin-bottom: 0;
}

.itinerary-shell {
  margin-top: clamp(22px, 4vw, 34px);
}

.itinerary-list {
  --itinerary-axis-width: clamp(84px, 10vw, 112px);
  --itinerary-axis-position: 50%;
  --itinerary-line-width: 4px;
  --itinerary-line-progress: 0;
  --itinerary-marker-size: 18px;
  --itinerary-card-max-width: 430px;
  --itinerary-art-size: clamp(80px, 9vw, 102px);
  list-style: none;
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 38px);
  margin: 0;
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(10px, 1.4vw, 16px);
}

.itinerary-list::before,
.itinerary-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--itinerary-axis-position);
  width: var(--itinerary-line-width);
  transform: translateX(-50%);
  border-radius: 999px;
}

.itinerary-list::before {
  bottom: 0;
  background: linear-gradient(180deg, rgba(188, 170, 146, 0.42), rgba(160, 139, 112, 0.42));
}

.itinerary-list::after {
  height: calc(var(--itinerary-line-progress, 0) * 100%);
  background: linear-gradient(180deg, rgba(149, 123, 91, 0.98), rgba(116, 91, 65, 0.94));
  transform-origin: top center;
}

.itinerary-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--itinerary-axis-width) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 34px);
}

.itinerary-row__side {
  min-width: 0;
  display: flex;
  align-items: center;
}

.itinerary-row--left .itinerary-row__side--main {
  justify-content: flex-end;
  padding-right: clamp(2px, 1vw, 10px);
}

.itinerary-row--left .itinerary-row__side--art {
  justify-content: center;
  padding-left: 0;
}

.itinerary-row--right .itinerary-row__side--main {
  justify-content: flex-start;
  padding-left: clamp(2px, 1vw, 10px);
}

.itinerary-row--right .itinerary-row__side--art {
  justify-content: center;
  padding-right: 0;
}

.itinerary-row__axis {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.itinerary-card {
  width: min(100%, var(--itinerary-card-max-width));
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  border-radius: 24px;
  border: 1px solid rgba(180, 157, 128, 0.32);
  background: linear-gradient(180deg, rgba(244, 236, 223, 0.98), rgba(235, 224, 205, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.68), 0 14px 24px rgba(91, 72, 49, 0.08);
}

.itinerary-card__time {
  margin: 0;
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8d7a66;
}

.itinerary-card__title {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 2.8vw, 2rem);
  line-height: 1.02;
  color: #45382b;
}

.itinerary-card__location {
  margin: 0;
  font-size: clamp(1.08rem, 2.1vw, 1.24rem);
  line-height: 1.45;
  color: #8b7866;
}

.itinerary-art {
  width: min(100%, var(--itinerary-art-size));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.itinerary-art__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.98;
  filter: drop-shadow(0 6px 12px rgba(78, 61, 42, 0.08));
}

.itinerary-row--left .itinerary-art__image,
.itinerary-row--right .itinerary-art__image {
  transform: none;
}

.itinerary-marker {
  --itinerary-marker-progress: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.98), rgba(239, 227, 210, 0.98));
}

.itinerary-marker__fill {
  position: relative;
  overflow: hidden;
  width: var(--itinerary-marker-size);
  height: var(--itinerary-marker-size);
  border-radius: 50%;
  background: rgba(191, 172, 148, 0.38);
}

.itinerary-marker__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(144, 117, 84, 0.98), rgba(116, 91, 65, 0.94));
  transform: scaleY(var(--itinerary-marker-progress));
  transform-origin: top center;
}

/* Unified invitation system layer */
:root {
  --page-max-width: 1020px;
  --panel-max-width: 920px;
  --panel-narrow-width: 780px;
  --section-gap: clamp(26px, 5vw, 44px);
  --panel-space-y: clamp(34px, 6vw, 54px);
  --panel-space-x: clamp(20px, 4.2vw, 34px);
  --stack-gap: clamp(16px, 2vw, 22px);
  --radius-panel: 28px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-panel: 0 20px 46px rgba(84, 65, 45, 0.13);
  --shadow-soft: 0 14px 30px rgba(84, 65, 45, 0.1);
  --color-page: #f8f1e7;
  --color-page-soft: #efe2d1;
  --color-panel: #f7efe4;
  --color-panel-deep: #ecdcc7;
  --color-glass: rgba(247, 239, 228, 0.74);
  --color-surface: #fdf8f1;
  --color-line: rgba(167, 140, 107, 0.26);
  --color-line-strong: rgba(148, 121, 89, 0.44);
  --color-text-main: #403327;
  --color-text-secondary: #7d6c5d;
  --color-accent: #b79973;
  --color-accent-strong: #8c6d4c;
  --color-button: #9e7c58;
  --color-button-hover: #866746;
}

body {
  color: var(--color-text-main);
  background:
    radial-gradient(circle at top, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0) 34%),
    linear-gradient(180deg, var(--color-page) 0%, var(--color-page-soft) 100%);
}

#bg-gradient {
  background:
    radial-gradient(circle at 14% 16%, rgba(248, 240, 229, 0.6) 0%, rgba(248, 240, 229, 0) 42%),
    radial-gradient(circle at 82% 12%, rgba(218, 194, 160, 0.34) 0%, rgba(218, 194, 160, 0) 38%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.28) 0%, rgba(225, 204, 175, 0.26) 100%);
  opacity: 0.12;
}

#bg-overlay {
  background: transparent;
  opacity: 0;
}

.scene {
  padding: 30px 22px 70px;
}

.invitation {
  width: min(var(--page-max-width), 100%);
  margin-top: clamp(26px, 4vw, 38px);
  padding: 0 clamp(10px, 2vw, 20px) clamp(28px, 4vw, 40px);
}

.flow-section {
  padding: 0;
}

.invitation > .flow-section + .flow-section {
  margin-top: var(--section-gap);
}

.invitation > .flow-section + .flow-section::before {
  top: calc(var(--section-gap) * -0.52);
  width: min(620px, 82%);
  border-top-color: rgba(190, 170, 144, 0.28);
}

.hero-section,
.hero-date-section,
.countdown-section,
.venue-section,
.moments-section,
.itinerary-section,
.dresscode-section,
.regalos-section,
.rsvp-section {
  display: grid;
  gap: var(--stack-gap);
  justify-items: center;
}

.glass-card,
.card-beige,
.regalos-card,
.rsvp-post,
.section-modal__dialog {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.glass-card {
  width: min(var(--panel-narrow-width), 100%);
  padding: clamp(32px, 6vw, 50px) clamp(24px, 5vw, 40px);
  background: linear-gradient(180deg, rgba(248, 241, 231, 0.9), rgba(241, 231, 215, 0.7));
  backdrop-filter: blur(10px);
}

.card-beige {
  width: min(var(--panel-max-width), 100%);
  padding: var(--panel-space-y) var(--panel-space-x);
  background:
    radial-gradient(circle at top, rgba(255, 249, 241, 0.7), rgba(255, 249, 241, 0) 34%),
    linear-gradient(180deg, rgba(247, 239, 228, 0.98), rgba(236, 223, 205, 0.97));
}

.section-icon-img {
  width: clamp(102px, 13vw, 146px);
  margin: 0 auto 4px;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.section-subtitle,
.section-text,
.section-summary,
.moments-subtitle,
.gift-link-description,
.regalos-note,
.rsvp-greeting,
.rsvp-cupos,
.dresscode-palette-copy,
.dresscode-color-note {
  margin: 0;
  max-width: 660px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: clamp(1.12rem, 2.2vw, 1.3rem);
  line-height: 1.62;
}

.hero-section {
  text-align: center;
}

.hero-section .kicker {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(4.1rem, 10vw, 6.9rem);
  line-height: 0.92;
  color: #4a3a2d;
}

.hero-section .hero-names {
  font-family: "Brittany Signature", "Brittany", cursive;
  font-weight: 400;
}

.hero-quote {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1.42rem, 3.1vw, 2rem);
  line-height: 1.45;
  color: #675747;
}

.hero-date-section {
  width: min(var(--panel-narrow-width), 100%);
  text-align: center;
}

.ceremony-title,
.ceremony-month,
.ceremony-day,
.ceremony-year,
.ceremony-date-side,
.hero-date-line,
.location-line {
  margin: 0;
}

.ceremony-title {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  color: var(--title-color);
}

.ceremony-month,
.hero-date-line,
.location-line {
  font-size: clamp(1.18rem, 2.3vw, 1.4rem);
  color: var(--color-text-secondary);
}

.ceremony-date-row {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.ceremony-date-side {
  font-size: clamp(1.18rem, 2.4vw, 1.5rem);
  color: var(--color-accent-strong);
}

.ceremony-day-block {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.ceremony-day {
  font-size: clamp(3.4rem, 8vw, 5rem);
  line-height: 0.9;
  color: #433428;
}

.ceremony-year {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.btn-primary,
.btn-secondary,
.action-btn,
.section-details-btn,
.waze-btn,
.music-mini-btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn-primary,
.action-btn,
.waze-btn {
  background: linear-gradient(135deg, var(--color-button), var(--color-accent-strong));
  color: #faf5ed;
  box-shadow: 0 12px 24px rgba(118, 91, 62, 0.18);
}

.btn-primary:hover,
.action-btn:hover,
.waze-btn:hover,
.btn-secondary:hover,
.music-mini-btn:hover {
  transform: translateY(-1px);
}

.btn-primary:hover,
.action-btn:hover,
.waze-btn:hover {
  background: linear-gradient(135deg, var(--color-button-hover), #725639);
}

.btn-secondary,
.music-mini-btn {
  background: rgba(255, 247, 237, 0.74);
  border-color: rgba(160, 134, 102, 0.32);
  color: var(--color-text-main);
  box-shadow: 0 10px 20px rgba(110, 85, 59, 0.08);
}

.countdown {
  width: min(100%, 560px);
  margin-top: 6px;
  gap: clamp(6px, 1vw, 12px);
}

.countdown div {
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.44);
}

.countdown span {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}

.countdown small {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.moments-section .section-title,
.itinerary-section .section-title,
.dresscode-section .section-title,
.regalos-section .section-title,
.rsvp-section .section-title {
  margin-bottom: 2px;
}

.moments-carousel {
  width: min(100%, 860px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(170, 145, 114, 0.3);
  background: linear-gradient(180deg, rgba(235, 224, 206, 0.88), rgba(230, 217, 198, 0.96));
  box-shadow: var(--shadow-soft);
}

.moments-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-color: rgba(174, 150, 120, 0.46);
  background: rgba(251, 245, 236, 0.94);
  color: var(--color-accent-strong);
}

.moments-dots button {
  box-shadow: none;
}

.moment-caption {
  background: linear-gradient(180deg, rgba(73, 82, 48, 0.74), rgba(52, 59, 34, 0.8));
}

.itinerary-card,
.regalos-card,
.rsvp-post {
  background:
    radial-gradient(circle at top, rgba(255, 249, 241, 0.54), rgba(255, 249, 241, 0) 38%),
    linear-gradient(180deg, rgba(249, 243, 234, 0.98), rgba(239, 229, 214, 0.97));
  box-shadow: var(--shadow-soft);
}

.itinerary-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(174, 148, 115, 0.26);
}

.itinerary-art__image {
  transform: none;
}

.dresscode-detail-shell {
  width: min(100%, 820px);
  display: grid;
  gap: 20px;
  margin-top: 6px;
}

.dresscode-palette-title,
.dresscode-color-name {
  margin: 0;
  color: #47372a;
}

.dresscode-bad-colors {
  gap: 14px;
}

.dresscode-color-chip {
  border-radius: 18px;
  border: 1px solid rgba(174, 147, 116, 0.2);
  background: rgba(255, 249, 241, 0.56);
}

.regalos-card {
  width: min(100%, 720px);
  justify-self: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 32px);
}

.regalos-bank-toggle {
  justify-self: center;
}

.regalos-bank-panel__content {
  border: 1px solid rgba(173, 147, 114, 0.18);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.62);
  padding: 18px 20px;
}

.regalos-bank-row {
  margin: 0;
  display: grid;
  gap: 4px;
}

.regalos-bank-label {
  color: var(--color-accent-strong);
}

.regalos-bank-value {
  color: var(--color-text-main);
}

.rsvp-section {
  justify-items: stretch;
}

.rsvp-section > .section-icon-img,
.rsvp-section > .section-title,
.rsvp-section > .section-text {
  justify-self: center;
}

.rsvp-form {
  width: min(100%, 640px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.rsvp-form label {
  margin: 0;
  color: #4d3d30;
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 1px solid rgba(165, 138, 106, 0.34);
  border-radius: 16px;
  background: rgba(253, 248, 241, 0.92);
  padding: 14px 16px;
  font-size: 1.08rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.rsvp-form textarea {
  min-height: 112px;
  resize: vertical;
}

.rsvp-post {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 30px);
}

.rsvp-status {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.section-modal__dialog {
  width: min(820px, 100%);
  background:
    radial-gradient(circle at top, rgba(255, 249, 242, 0.7), rgba(255, 249, 242, 0) 38%),
    linear-gradient(180deg, rgba(249, 243, 234, 0.99), rgba(239, 229, 214, 0.98));
}

.music-fab {
  background: linear-gradient(135deg, rgba(126, 100, 72, 0.96), rgba(100, 76, 52, 0.98));
  border: 1px solid rgba(246, 237, 225, 0.6);
  box-shadow: 0 16px 28px rgba(70, 53, 36, 0.24);
}

.music-panel {
  border: 1px solid rgba(169, 144, 113, 0.28);
  background: rgba(248, 241, 231, 0.96);
  box-shadow: 0 16px 30px rgba(88, 68, 47, 0.18);
}

@media (max-width: 980px) {
  .scene {
    padding-inline: 16px;
  }

  .card-beige,
  .glass-card {
    width: 100%;
  }

  .ceremony-date-row {
    gap: 18px;
  }

  .dresscode-detail-shell {
    width: 100%;
  }

  .itinerary-list {
    --itinerary-axis-width: 92px;
    --itinerary-card-max-width: 360px;
    --itinerary-art-size: 84px;
  }
}

@media (max-width: 760px) {
  .scene {
    padding: 20px 12px 52px;
  }

  .invitation {
    padding: 0 4px 24px;
  }

  .invitation > .flow-section + .flow-section {
    margin-top: 22px;
  }

  .invitation > .flow-section + .flow-section::before {
    width: min(220px, 58%);
    top: -12px;
  }

  .glass-card,
  .card-beige {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .section-title {
    font-size: clamp(2.5rem, 11vw, 3.3rem);
  }

  .hero-section h1 {
    font-size: clamp(3.3rem, 14vw, 4.8rem);
  }

  .section-subtitle,
  .section-text,
  .section-summary,
  .moments-subtitle,
  .gift-link-description,
  .regalos-note,
  .rsvp-greeting,
  .rsvp-cupos,
  .dresscode-palette-copy,
  .dresscode-color-note {
    font-size: 1.08rem;
  }

  .ceremony-date-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moments-arrow {
    width: 42px;
    height: 42px;
  }

  .itinerary-list {
    --itinerary-axis-width: 40px;
    --itinerary-axis-position: calc(var(--itinerary-axis-width) / 2);
    --itinerary-card-max-width: none;
    --itinerary-art-size: 70px;
    gap: 22px;
  }

  .itinerary-row {
    grid-template-columns: var(--itinerary-axis-width) minmax(0, 1fr);
    grid-template-areas:
      "axis main"
      "axis art";
    align-items: start;
    column-gap: 14px;
    row-gap: 12px;
  }

  .itinerary-row__axis {
    grid-area: axis;
    align-self: stretch;
  }

  .itinerary-row__side--main {
    grid-area: main;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .itinerary-row__side--art {
    grid-area: art;
    justify-content: center !important;
    padding: 0 !important;
  }

  .itinerary-card {
    width: 100%;
    padding: 18px 18px 20px;
  }

  .itinerary-card__title {
    font-size: clamp(1.48rem, 7vw, 1.84rem);
  }

  .regalos-card,
  .rsvp-post {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .btn-primary,
  .btn-secondary,
  .action-btn,
  .section-details-btn,
  .waze-btn,
  .music-mini-btn {
    width: 100%;
  }

  .music-widget {
    --music-fab-right: 10px;
    --music-fab-bottom: 10px;
    --music-fab-size: 56px;
  }

  .music-panel {
    width: min(210px, 80vw);
    bottom: 66px;
  }
}

.hero-section.glass-card,
.hero-date-section {
  width: min(var(--panel-max-width), 100%);
}

.dresscode-detail-shell {
  gap: 20px;
}

.regalos-card,
.rsvp-post {
  background: linear-gradient(180deg, rgba(249, 243, 234, 0.98), rgba(242, 233, 220, 0.96));
}

.dresscode-palette-copy,
.dresscode-color-note,
.regalos-intro,
.gift-link-description,
.regalos-note,
.rsvp-post-message {
  color: var(--color-text-secondary);
}

.regalos-card {
  padding: clamp(20px, 3vw, 26px);
}

.regalos-bank-panel__content {
  border-radius: 14px;
  background: rgba(255, 247, 235, 0.62);
}

.regalos-copy-btn {
  border-radius: var(--radius-pill);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  color: var(--color-text-main);
}

.rsvp-post-icon {
  color: var(--color-primary);
}

.rsvp-post-title {
  color: var(--color-text-main);
}

.rsvp-status.ok {
  color: var(--color-success);
}

.rsvp-status.warn {
  color: var(--color-warning);
}

.rsvp-status.error {
  color: var(--color-danger);
}

.section-modal__dialog {
  border-radius: var(--radius-panel);
}

.music-fab {
  border-radius: 50%;
}

.music-panel {
  border-radius: 16px;
}

@media (max-width: 980px) {
  .scene {
    padding-inline: 16px;
  }

  .card-beige {
    padding-inline: clamp(20px, 3vw, 26px);
  }

  .itinerary-list {
    --itinerary-axis-width: 86px;
    --itinerary-card-max-width: 360px;
    --itinerary-art-size: 82px;
  }

  .itinerary-row {
    column-gap: 18px;
  }
}

@media (max-width: 760px) {
  .scene {
    padding: 20px 12px 48px;
  }

  .invitation {
    padding: 0 8px 28px;
  }

  .invitation > .flow-section + .flow-section {
    margin-top: clamp(26px, 7vw, 34px);
  }

  .invitation > .flow-section + .flow-section::before {
    top: -16px;
    width: min(520px, 72%);
  }

  .glass-card {
    border-radius: 22px;
    padding: clamp(24px, 7vw, 32px) clamp(18px, 6vw, 22px);
  }

  .card-beige {
    border-radius: 22px;
    padding: clamp(28px, 8vw, 34px) clamp(16px, 5vw, 18px);
  }

  .itinerary-list {
    --itinerary-axis-width: 42px;
    --itinerary-axis-position: calc(var(--itinerary-axis-width) / 2);
    --itinerary-card-max-width: none;
    --itinerary-art-size: 76px;
    gap: 24px;
  }

  .itinerary-row {
    grid-template-columns: var(--itinerary-axis-width) minmax(0, 1fr);
    grid-template-areas:
      "axis main"
      "axis art";
    align-items: start;
    column-gap: 14px;
    row-gap: 12px;
  }

  .itinerary-row__axis {
    grid-area: axis;
    align-self: stretch;
    min-height: 100%;
  }

  .itinerary-row__side--main {
    grid-area: main;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .itinerary-row__side--art {
    grid-area: art;
    justify-content: center !important;
    padding: 0 !important;
  }

  .itinerary-card {
    width: 100%;
    border-radius: 20px;
    padding: 18px 18px 20px;
  }

  .regalos-card,
  .rsvp-post {
    border-radius: 20px;
  }

  .action-btn,
  .btn-primary,
  .btn-secondary,
  .section-details-btn {
    width: 100%;
    text-align: center;
  }
}

.dresscode-type {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d6c46;
}

.dresscode-detail-shell {
  display: grid;
  width: min(100%, 720px);
  gap: 0;
  margin-top: 18px;
}

.dresscode-intro {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.dresscode-modal-hero-icon {
  display: none;
  width: min(115px, 28vw);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 18px rgba(50, 36, 20, 0.14));
}

.section-modal__body .dresscode-modal-hero-icon {
  display: block;
  margin: 0 auto 8px;
}

.dresscode-hero-label {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1;
  color: #46392d;
}

.section-modal__body .dresscode-hero-label {
  margin-bottom: 6px;
}

.dresscode-flow-section {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 28px);
  padding-top: clamp(24px, 4vw, 28px);
  border-top: 1px solid rgba(172, 145, 112, 0.24);
}

.dresscode-palette-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #47392d;
}

.dresscode-palette-copy {
  margin: 10px auto 0;
  max-width: 580px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary-color);
}

.dresscode-bad-colors {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  width: min(100%, 580px);
}

.dresscode-color-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(176, 150, 116, 0.18);
  background: rgba(255, 251, 246, 0.78);
}

.dresscode-color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(78, 61, 41, 0.12);
}

.dresscode-color-chip--white .dresscode-color-swatch {
  background:
    linear-gradient(135deg, #ffffff, #f1ece3);
  border: 1px solid rgba(145, 129, 108, 0.26);
}

.dresscode-color-name,
.dresscode-color-note {
  margin: 0;
}

.dresscode-color-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #47392d;
}

.dresscode-color-note {
  margin-top: 4px;
  line-height: 1.45;
  color: var(--text-secondary-color);
}

.regalos-intro {
  margin: 0 auto 18px;
  max-width: 560px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #6f5c49;
}

.regalos-modal-hero-icon {
  display: none;
  width: min(190px, 42vw);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 18px rgba(50, 36, 20, 0.14));
}

.section-modal__body .regalos-modal-hero-icon {
  display: block;
  margin: 0 auto 8px;
}

.regalos-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(164, 138, 106, 0.38);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 250, 240, 0.64), rgba(255, 250, 240, 0) 42%),
    linear-gradient(160deg, rgba(244, 235, 220, 0.98), rgba(234, 219, 197, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 247, 233, 0.84), 0 14px 28px rgba(82, 62, 40, 0.12);
}

.regalos-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 246, 230, 0.44);
  pointer-events: none;
}

.section-modal__body .regalos-card {
  padding: clamp(20px, 3.6vw, 30px);
}

.regalos-card + .regalos-card {
  margin-top: 12px;
}

.gift-link-description {
  margin: 0 0 16px;
  font-size: 1.06rem;
  line-height: 1.5;
  color: #6a5847;
}

.regalos-bank-toggle {
  width: min(320px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.regalos-bank-toggle::after {
  content: "▾";
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.24s ease;
}

.regalos-bank-toggle.is-open::after {
  transform: rotate(180deg);
}

.regalos-bank-panel {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.24s ease, transform 0.24s ease;
}

.regalos-bank-panel.is-open {
  max-height: 220px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

.regalos-bank-panel__content {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(161, 132, 100, 0.44);
  background: rgba(255, 247, 235, 0.62);
}

.regalos-bank-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.regalos-bank-row + .regalos-bank-row {
  margin-top: 8px;
}

.regalos-bank-label {
  color: #6f5b47;
  font-size: 0.98rem;
}

.regalos-bank-value {
  color: #3f2f21;
  font-weight: 700;
  text-align: right;
}

.regalos-bank-copy-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.regalos-bank-value--number {
  letter-spacing: 0.04em;
}

.regalos-copy-btn {
  border: 1px solid rgba(150, 122, 92, 0.46);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: #5e4935;
  background: rgba(248, 239, 225, 0.92);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.regalos-copy-btn:hover {
  background: rgba(240, 228, 209, 0.96);
  border-color: rgba(132, 106, 80, 0.56);
}

.regalos-copy-btn:focus-visible {
  outline: 2px solid rgba(130, 103, 72, 0.42);
  outline-offset: 2px;
}

.regalos-copy-status {
  margin-top: 10px;
}

.copy-status.is-success {
  color: #2f6f3d;
}

.copy-status.is-error {
  color: #9d3c2c;
}

.regalos-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(162, 136, 103, 0.48);
  background: rgba(255, 247, 234, 0.56);
  font-size: 1rem;
  line-height: 1.42;
  color: #6a5847;
  opacity: 1;
}

.action-btn {
  display: inline-flex;
  text-decoration: none;
}

.action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.copy-status {
  margin: 8px 0 0;
  min-height: 1.1em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary-color);
}

.rsvp-section {
  margin-top: 0;
  padding: clamp(36px, 6vw, 44px) clamp(32px, 4vw, 40px);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.rsvp-section .section-title {
  margin: 0 0 18px;
}

.rsvp-deadline {
  margin: -8px 0 18px;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.rsvp-guest-search {
  margin-bottom: 14px;
}

.rsvp-guest-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.rsvp-guest-search input {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.92);
  color: var(--color-text-main);
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.rsvp-search-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.rsvp-search-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  width: min(100%, 360px);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.76);
  color: var(--text-secondary-color);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 10px 12px;
  text-align: center;
}

.rsvp-search-state--error {
  color: var(--color-text-main);
}

.rsvp-search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(116, 86, 59, 0.22);
  border-top-color: rgba(116, 86, 59, 0.74);
  border-radius: 999px;
  flex: 0 0 auto;
  animation: rsvpSearchSpin 0.8s linear infinite;
}

.rsvp-search-item {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.92);
  color: var(--color-text-main);
  font-family: var(--font-main);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.rsvp-search-item small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary-color);
  font-size: 0.88rem;
}

@keyframes rsvpSearchSpin {
  to {
    transform: rotate(360deg);
  }
}

.rsvp-greeting,
.rsvp-cupos {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--text-secondary-color);
}

.rsvp-cupos {
  margin-bottom: 20px;
}

.rsvp-form {
  margin-top: 14px;
  display: grid;
  gap: 0;
}

.rsvp-form > * {
  margin: 0 0 16px;
}

.rsvp-form > *:last-child {
  margin-bottom: 0;
}

.rsvp-form label {
  font-size: 1rem;
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.92);
  color: var(--color-text-main);
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.rsvp-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rsvp-form button[type="submit"] {
  margin-top: 6px;
}

.rsvp-form.is-disabled {
  opacity: 0.75;
}

.rsvp-post {
  position: relative;
  margin-top: 14px;
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  box-shadow: none;
  text-align: center;
  overflow: hidden;
}

.rsvp-post-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184, 165, 140, 0.2);
  color: var(--color-primary);
}

.rsvp-post-icon svg {
  display: block;
}

.rsvp-post-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--color-text-main);
  font-weight: 700;
}

.rsvp-post-message {
  margin: 8px auto 0;
  max-width: 550px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary-color);
}

.rsvp-post-closing {
  margin: 14px auto 0;
  width: fit-content;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
}

.rsvp-post-underline {
  display: block;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(155, 133, 107, 0.2), rgba(155, 133, 107, 0.76), rgba(155, 133, 107, 0.2));
  transform-origin: left center;
  transform: scaleX(0);
}

.rsvp-post-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rsvp-post-particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(155, 133, 107, 0.28);
}

.rsvp-post[data-state="NO_ASISTE"] .rsvp-post-icon {
  color: #6f5f4d;
  background: rgba(184, 165, 140, 0.16);
}

.rsvp-closed-message {
  margin: 18px auto 0;
  max-width: 620px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-secondary-color);
  text-align: center;
}

.rsvp-closed-message p {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.58;
}

.rsvp-status {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary-color);
}

.rsvp-status.ok {
  color: #0d6a38;
}

.rsvp-status.warn {
  color: #9a6700;
}

.rsvp-status.error {
  color: #b3261e;
}

.modal-detail-source {
  display: none !important;
}

.section-modal__body .modal-detail-source {
  display: block !important;
}

.modal-origin-clone {
  position: fixed;
  z-index: 96;
  margin: 0 !important;
  pointer-events: none;
  transform-origin: center center;
}

.moments-lightbox-origin-clone {
  position: fixed;
  z-index: 106;
  margin: 0 !important;
  pointer-events: none;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(24, 18, 12, 0.28);
}

.moments-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 26px);
}

.moments-lightbox[hidden] {
  display: none;
}

.moments-lightbox__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 247, 235, 0.12), rgba(255, 247, 235, 0) 34%),
    rgba(28, 21, 16, 0.82);
  backdrop-filter: blur(10px);
}

.moments-lightbox__dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(92vh, 920px);
  display: grid;
  gap: 16px;
}

.moments-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 233, 214, 0.24);
  border-radius: 50%;
  background: rgba(44, 34, 25, 0.72);
  color: #fff8ee;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 10, 8, 0.18);
}

.moments-lightbox__viewport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.moments-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.moments-lightbox__image {
  width: min(100%, 900px);
  max-height: min(74vh, 760px);
  display: block;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 250, 243, 0.08);
  box-shadow: 0 28px 54px rgba(12, 9, 6, 0.28);
}

.moments-lightbox__caption {
  width: min(100%, 760px);
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 239, 228, 0.12);
  border: 1px solid rgba(247, 236, 218, 0.16);
  box-shadow: 0 16px 34px rgba(14, 11, 9, 0.16);
  backdrop-filter: blur(14px);
}

.moments-lightbox__counter {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 242, 223, 0.82);
}

.moments-lightbox__caption-text {
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.55;
  color: #fff7ee;
  text-align: center;
}

.moments-lightbox__nav {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(244, 233, 214, 0.22);
  border-radius: 50%;
  background: rgba(44, 34, 25, 0.72);
  color: #fff8ee;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 10, 8, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.moments-lightbox__nav:hover,
.moments-lightbox__close:hover {
  background: rgba(58, 45, 33, 0.82);
  transform: translateY(-1px);
}

.moments-lightbox__nav:focus-visible,
.moments-lightbox__close:focus-visible {
  outline: 2px solid rgba(249, 237, 217, 0.9);
  outline-offset: 2px;
}

.section-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.section-modal[hidden] {
  display: none;
}

.section-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(39, 33, 27, 0.55);
  backdrop-filter: blur(2px);
}

.section-modal__dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(88vh, 840px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(155, 133, 107, 0.32);
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.98), rgba(244, 236, 224, 0.97)),
    linear-gradient(160deg, rgba(235, 223, 206, 0.74), rgba(229, 214, 192, 0.7));
  box-shadow: 0 26px 62px rgba(48, 38, 28, 0.28);
  transform-origin: center;
}

.section-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(248, 242, 233, 0.92);
  border-bottom: 1px solid rgba(155, 133, 107, 0.22);
  backdrop-filter: blur(8px);
}

.section-modal__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--color-text-main);
}

.section-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(155, 133, 107, 0.35);
  border-radius: 50%;
  background: rgba(235, 224, 206, 0.72);
  color: var(--color-text-main);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.section-modal__body {
  padding: clamp(22px, 4vw, 32px);
}

.section-modal__body .rsvp-section,
.section-modal__body .info-section,
.section-modal__body .flow-section {
  padding: 0;
  margin: 0;
}

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
}

.location-modal[hidden] {
  display: none;
}

.location-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(39, 31, 24, 0.42);
  backdrop-filter: blur(3px);
}

.location-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(171, 147, 116, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 249, 242, 0.78), rgba(255, 249, 242, 0) 42%),
    linear-gradient(180deg, rgba(249, 243, 234, 0.98), rgba(238, 226, 208, 0.98));
  box-shadow: 0 24px 54px rgba(45, 32, 20, 0.24);
}

.location-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 4vw, 24px) clamp(18px, 4vw, 28px);
  border-bottom: 1px solid rgba(171, 147, 116, 0.22);
}

.location-modal__title {
  margin: 0;
  color: #4b3a2d;
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  line-height: 1.1;
}

.location-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(171, 147, 116, 0.32);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.72);
  color: #4b3a2d;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.location-modal__map {
  position: relative;
  display: block;
  width: calc(100% - clamp(28px, 6vw, 48px));
  height: clamp(260px, 52vw, 390px);
  margin: clamp(18px, 4vw, 26px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(171, 147, 116, 0.32);
  border-radius: 22px;
  background: rgba(238, 226, 208, 0.72);
  box-shadow: 0 14px 28px rgba(91, 68, 43, 0.14);
}

.location-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.location-modal__map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.04), rgba(72, 55, 36, 0.08));
  pointer-events: none;
}

.location-modal__footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 26px) clamp(18px, 4vw, 28px) clamp(22px, 5vw, 32px);
  text-align: center;
}

.location-modal__place {
  margin: 0;
  color: #6f5c49;
  font-size: clamp(1.05rem, 2.6vw, 1.24rem);
  font-weight: 700;
}

.location-modal__waze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: min(280px, 100%);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #d0ba98, #c4a982);
  color: #fffaf3;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(118, 91, 62, 0.1);
}

.location-modal__waze-btn:hover {
  background: linear-gradient(135deg, #d7c4a7, #cdb18c);
}

@media (max-width: 760px) {
  .location-modal {
    padding: 14px;
  }

  .location-modal__dialog {
    width: min(100%, 420px);
    border-radius: 24px;
  }

  .location-modal__map {
    width: calc(100% - 28px);
    height: min(56vh, 320px);
    border-radius: 18px;
  }
}

.section-modal__body--dresscode-unified {
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 34px) clamp(28px, 5vw, 36px);
}

.section-modal__body--dresscode-unified > .dresscode-detail-shell {
  margin: 0 auto;
}

.section-modal__body--regalos-flat {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.section-modal__body--regalos-flat > * {
  justify-self: center;
}

.section-modal__body--regalos-flat > .regalos-intro {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}

.section-modal__body--regalos-flat > .regalos-modal-hero-icon {
  margin: 0 auto 4px;
}

.section-modal__body--regalos-flat > .gift-link-description {
  margin: 0;
  max-width: 640px;
  text-align: center;
}

.gift-link-description[hidden] {
  display: none;
}

.section-modal__body--regalos-flat > .regalos-bank-toggle {
  display: inline-flex;
  margin: 0 auto;
}

.section-modal__body--regalos-flat > .regalos-bank-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.section-modal__body--regalos-flat > .regalos-note {
  margin: 6px 0 0;
  max-width: 640px;
  text-align: center;
}

.section-modal__body--regalos-flat .regalos-bank-row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.section-modal__body--regalos-flat .regalos-bank-value {
  text-align: center;
}

.section-modal__body--regalos-flat .regalos-bank-copy-group {
  justify-content: center;
}

@media (min-width: 761px) {
  #sectionModalBody.section-modal__body--regalos-flat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  #sectionModalBody.section-modal__body--regalos-flat > .regalos-intro,
  #sectionModalBody.section-modal__body--regalos-flat > .gift-link-description,
  #sectionModalBody.section-modal__body--regalos-flat > .regalos-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  #sectionModalBody.section-modal__body--regalos-flat > .regalos-bank-toggle,
  #sectionModalBody.section-modal__body--regalos-flat > .regalos-bank-panel,
  #sectionModalBody.section-modal__body--regalos-flat > .regalos-modal-hero-icon {
    margin-left: auto;
    margin-right: auto;
  }

  #sectionModalBody.section-modal__body--regalos-flat .regalos-bank-panel__content {
    margin-left: auto;
    margin-right: auto;
  }
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  color: #f7f0e5;
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--color-button), var(--color-accent));
  box-shadow: 0 10px 22px rgba(121, 99, 72, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(130deg, var(--color-button-hover), #826b52);
}

.btn-secondary {
  background: rgba(182, 162, 136, 0.55);
  border: 1px solid rgba(155, 133, 107, 0.35);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: rgba(164, 141, 114, 0.52);
}

.music-widget {
  /* Cambiar aqui la posicion del boton flotante. */
  --music-fab-right: 16px;
  --music-fab-bottom: 16px;
  /* Cambiar aqui el estilo visual principal del reproductor. */
  --music-fab-bg: rgba(122, 104, 82, 0.9);
  --music-fab-border: rgba(238, 226, 205, 0.6);
  --music-fab-size: 62px;
  position: fixed;
  right: var(--music-fab-right);
  bottom: var(--music-fab-bottom);
  z-index: 40;
}

.music-fab {
  position: relative;
  width: var(--music-fab-size);
  height: var(--music-fab-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--music-fab-border);
  background: var(--music-fab-bg);
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, background 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.music-fab:hover {
  transform: translateY(-1px) scale(1.02);
}

.music-note-icon {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f0e8;
  transform-origin: center;
}

.music-note-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  transform-origin: center center;
}

.music-fab.is-playing {
  border-color: rgba(255, 255, 255, 0.4);
}

.music-fab.is-paused {
  opacity: 0.82;
}

.music-fab.is-muted .music-note-icon {
  opacity: 0.68;
}

.music-notes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  overflow: visible;
}

.music-note {
  position: fixed;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.music-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(220px, 74vw);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(171, 147, 116, 0.3);
  background: rgba(245, 237, 225, 0.95);
  color: var(--color-text-main);
  box-shadow: 0 12px 28px rgba(100, 80, 58, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.95) translateY(6px);
  transform-origin: bottom right;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.music-panel.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.music-mini-btn {
  width: 100%;
  border: 1px solid rgba(160, 137, 106, 0.35);
  background: rgba(168, 145, 115, 0.74);
  color: #fff7ed;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.music-mini-btn:hover {
  background: rgba(151, 128, 98, 0.86);
}

.music-mini-btn + .music-mini-btn {
  margin-top: 8px;
}

.volume-wrap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

#volumeSlider {
  width: 100%;
  accent-color: var(--color-primary);
}

@media (max-width: 980px) {
  .itinerary-list {
    --itinerary-axis-width: 86px;
    --itinerary-card-max-width: 360px;
    --itinerary-art-size: 82px;
  }

  .itinerary-row {
    column-gap: 18px;
  }

  .itinerary-card {
    padding: 20px 20px 22px;
  }
}

@media (max-width: 760px) {
  .itinerary-list {
    --itinerary-axis-width: 42px;
    --itinerary-axis-position: calc(var(--itinerary-axis-width) / 2);
    --itinerary-card-max-width: none;
    --itinerary-art-size: 76px;
    gap: 24px;
  }

  .itinerary-row {
    grid-template-columns: var(--itinerary-axis-width) minmax(0, 1fr);
    grid-template-areas:
      "axis main"
      "axis art";
    align-items: start;
    column-gap: 14px;
    row-gap: 12px;
  }

  .itinerary-row__axis {
    grid-area: axis;
    min-height: 100%;
    align-self: stretch;
  }

  .itinerary-row__side--main {
    grid-area: main;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .itinerary-row__side--art {
    grid-area: art;
    justify-content: center !important;
    padding: 0 !important;
  }

  .itinerary-card {
    width: 100%;
    border-radius: 20px;
    padding: 18px 18px 20px;
  }

  .itinerary-card__title {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
  }

  .itinerary-art__image {
    transform: none !important;
  }

  .glass-card {
    border-radius: 18px;
    padding: clamp(22px, 7vw, 30px) clamp(14px, 5vw, 18px);
  }

  .card-beige {
    border-radius: 16px;
    padding: clamp(26px, 8vw, 36px) clamp(12px, 5vw, 16px);
  }

  .scene {
    padding: 20px 12px 48px;
  }

  .invitation {
    padding: 0 8px 28px;
  }

  .flow-section {
    padding: clamp(36px, 9vw, 48px) 0;
  }

  .section-modal {
    padding: 10px;
  }

  .section-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px;
  }

  .section-modal__body {
    padding: 14px;
  }

  .envelope {
    width: min(88vw, 390px);
    height: 240px;
  }

  .envelope-intro-title {
    bottom: calc(100% + 28px);
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 1;
  }

  .envelope-flap {
    height: 142px;
  }

  .seal {
    top: 95px;
    width: 54px;
    height: 54px;
  }

  .hint {
    bottom: -30px;
    font-size: 0.92rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .hero-quote {
    font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  }

  .hero-date-line {
    font-size: clamp(1.8rem, 5vw, 1.45rem);
  }

  .hero-date-section {
    width: 100%;
    padding: clamp(34px, 9vw, 46px) clamp(18px, 6vw, 24px);
  }

  .section-modal__body--dresscode-unified {
    padding: 14px 14px 20px;
  }

  .section-modal__body .dresscode-modal-hero-icon {
    margin: 0 auto 6px;
  }

  .dresscode-flow-section {
    margin-top: 18px;
    padding-top: 18px;
    gap: 12px;
  }

  .dresscode-hero-label {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .dresscode-type {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    letter-spacing: 0.12em;
  }

  .dresscode-color-chip {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dresscode-color-note {
    margin-top: 6px;
  }

  .ceremony-title {
    /* Cambia aqui el tamano de TODOS los titulos de seccion */
  font-size: var(--title-size);
  }

  .ceremony-month {
    font-size: clamp(1.05rem, 4.3vw, 1.25rem);
    letter-spacing: 0.12em;
  }

  .ceremony-date-row {
    gap: 10px;
  }

  .ceremony-date-side {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
  }

  .ceremony-day {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }

  .ceremony-year {
    font-size: clamp(1.2rem, 4.8vw, 1.5rem);
  }

  .rsvp-section {
    padding: clamp(28px, 7vw, 36px) clamp(20px, 6vw, 24px);
  }

  .countdown div {
    padding: 2px 10px;
  }

  .countdown span {
    font-size: clamp(1.7rem, 7.2vw, 2.5rem);
  }

  .countdown small {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .moments-carousel {
    border-radius: 18px;
  }

  .moments-track {
    min-height: clamp(250px, 70vw, 420px);
  }

  .moments-arrow {
    width: 38px;
    height: 38px;
  }

  .moment-zoom-badge {
    top: 10px;
    right: 10px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .moment-caption {
    left: 10px;
    right: 10px;
    bottom: 38px;
    padding: 10px 12px;
    font-size: clamp(0.98rem, 3.5vw, 1.08rem);
  }

  .moments-lightbox {
    padding: 10px;
  }

  .moments-lightbox__dialog {
    width: 100%;
  }

  .moments-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .moments-lightbox__viewport {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .moments-lightbox__figure {
    gap: 12px;
  }

  .moments-lightbox__image {
    width: 100%;
    max-height: min(68vh, 520px);
    border-radius: 20px;
  }

  .moments-lightbox__caption {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  .moments-lightbox__caption-text {
    font-size: 1rem;
  }

  .moments-lightbox__nav {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 2;
    width: 44px;
    height: 44px;
  }

  .moments-lightbox__nav--prev {
    left: 10px;
  }

  .moments-lightbox__nav--next {
    right: 10px;
  }

  .action-btn {
    width: 100%;
    text-align: center;
  }

  .regalos-bank-row {
    flex-direction: column;
    gap: 2px;
  }

  .regalos-bank-value {
    text-align: left;
  }

  .regalos-bank-copy-group {
    justify-content: flex-start;
  }

  .rsvp-post {
    padding: 16px 12px;
  }

  .music-widget {
    --music-fab-right: 10px;
    --music-fab-bottom: 10px;
    --music-fab-size: 56px;
  }

  .music-panel {
    bottom: 66px;
    width: min(200px, 80vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .camera-icon {
    transform: none !important;
  }

  .camera-focus-ring,
  .camera-sheen {
    opacity: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .calendar-icon {
    animation: none;
    transform: none;
  }

  .moments-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .moment-slide,
  .moment-image,
  .moments-lightbox__image,
  .moments-lightbox__caption-text,
  .moments-lightbox__counter {
    transition: none;
  }

  .moment-slide.is-active .moment-image {
    transform: none;
  }

  .moments-lightbox-origin-clone {
    display: none;
  }

  .music-fab,
  .music-panel {
    transition: none;
  }

  #bg-layer,
  #bg-gradient,
  #bg-overlay {
    transform: none !important;
  }

  #bg-layer {
    filter: none !important;
  }
}

/* ============================================================
   SISTEMA VISUAL UNIFICADO
   ============================================================ */
:root {
  --page-max-width: 960px;
  --panel-max-width: 920px;
  --panel-narrow-width: 780px;

  --color-page: #f6f0e7;
  --color-page-soft: #eadcca;
  --color-panel: #f5ede1;
  --color-panel-deep: #ecdfcc;
  --color-glass: rgba(247, 239, 228, 0.68);
  --color-surface: #fbf7f0;
  --color-line: rgba(167, 142, 111, 0.3);
  --color-line-strong: rgba(145, 118, 87, 0.48);
  --color-text-main: #3c3025;
  --color-text-secondary: #776452;
  --color-primary: #8f704f;
  --color-accent: #b89a70;
  --color-button: #9f805d;
  --color-button-hover: #87694b;

  --shadow-panel: 0 22px 48px rgba(88, 67, 44, 0.14);
  --shadow-soft: 0 14px 24px rgba(91, 72, 49, 0.08);
  --radius-panel: 28px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --section-gap: clamp(34px, 5.5vw, 52px);
  --panel-space-y: clamp(34px, 5vw, 52px);
  --panel-space-x: clamp(22px, 4vw, 34px);
  --title-size: clamp(2.4rem, 4.8vw, 3.6rem);
  --section-text-size: clamp(1.04rem, 2vw, 1.18rem);
  --hero-quote-size: clamp(1.18rem, 2.4vw, 1.56rem);
  --countdown-number-size: clamp(2.1rem, 5vw, 3.2rem);
  --countdown-label-size: clamp(1.08rem, 2.5vw, 1.5rem);
}

body {
  color: var(--color-text-main);
  background: linear-gradient(170deg, #f8f3eb 0%, #efe2d1 100%);
}

#bg-gradient {
  background:
    radial-gradient(circle at 16% 18%, rgba(247, 239, 227, 0.5) 0%, rgba(247, 239, 227, 0) 44%),
    radial-gradient(circle at 82% 16%, rgba(228, 206, 174, 0.34) 0%, rgba(228, 206, 174, 0) 40%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.3) 0%, rgba(219, 194, 160, 0.24) 100%);
  opacity: 0.12;
}

#bg-overlay {
  background: transparent;
  opacity: 0;
}

.scene {
  padding: 28px 20px 64px;
}

.invitation {
  width: min(var(--page-max-width), 100%);
}

.invitation > .flow-section + .flow-section {
  margin-top: var(--section-gap);
}

.invitation > .flow-section + .flow-section::before {
  top: calc(var(--section-gap) * -0.52);
  width: min(620px, 80%);
  background: linear-gradient(90deg, transparent, rgba(165, 142, 111, 0.34), transparent);
}

.glass-card,
.card-beige,
.itinerary-card,
.regalos-card,
.rsvp-post {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  width: min(var(--panel-narrow-width), 100%);
  padding: clamp(30px, 6vw, 48px) clamp(22px, 5vw, 38px);
  background: var(--color-glass);
}

.card-beige {
  width: min(var(--panel-max-width), 100%);
  padding: var(--panel-space-y) var(--panel-space-x);
  background: linear-gradient(180deg, rgba(246, 239, 229, 0.98), rgba(236, 223, 205, 0.96));
  box-shadow: var(--shadow-panel);
}

.hero-section.glass-card,
.hero-date-section {
  width: min(var(--panel-max-width), 100%);
}

.section-icon-img {
  width: clamp(112px, 15vw, 150px);
  margin: 0 auto 18px;
}

.section-title {
  margin: 0 0 12px;
  font-size: var(--title-size);
  line-height: 0.98;
  color: var(--color-accent);
}

.section-subtitle,
.section-text,
.section-summary {
  color: var(--color-text-secondary);
  font-size: var(--section-text-size);
  line-height: 1.55;
}

.section-summary {
  margin-top: 14px;
}

.hero-quote {
  font-size: var(--hero-quote-size);
  color: #685846;
}

.hero-date-line,
.location-line {
  color: #504338;
}

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-button), var(--color-accent));
  color: #f8f2e8;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-button-hover), #8b7356);
}

.btn-secondary {
  background: rgba(182, 162, 136, 0.28);
  border: 1px solid rgba(155, 133, 107, 0.35);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: rgba(164, 141, 114, 0.36);
}

.countdown {
  max-width: 560px;
  margin-top: 22px;
}

.countdown div {
  padding: 4px 20px;
}

.countdown span {
  font-size: var(--countdown-number-size);
  color: #4a4035;
}

.countdown small {
  margin-top: 8px;
  font-size: var(--countdown-label-size);
  color: var(--color-accent);
}

.moments-subtitle {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.moments-carousel {
  border-radius: var(--radius-card);
  background: #e7ddca;
}

.moment-caption {
  border-radius: 16px;
  background: rgba(102, 109, 67, 0.7);
}

.itinerary-shell {
  margin-top: clamp(22px, 4vw, 34px);
}

.itinerary-list {
  --itinerary-axis-width: clamp(84px, 10vw, 112px);
  --itinerary-axis-position: 50%;
  --itinerary-line-width: 4px;
  --itinerary-line-progress: 0;
  --itinerary-marker-size: 18px;
  --itinerary-card-max-width: 430px;
  --itinerary-art-size: clamp(80px, 9vw, 102px);
  list-style: none;
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 38px);
  margin: 0;
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(10px, 1.4vw, 16px);
}

.itinerary-list::before,
.itinerary-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--itinerary-axis-position);
  width: var(--itinerary-line-width);
  transform: translateX(-50%);
  border-radius: 999px;
}

.itinerary-list::before {
  bottom: 0;
  background: linear-gradient(180deg, rgba(188, 170, 146, 0.42), rgba(160, 139, 112, 0.42));
}

.itinerary-list::after {
  height: calc(var(--itinerary-line-progress, 0) * 100%);
  background: linear-gradient(180deg, rgba(149, 123, 91, 0.98), rgba(116, 91, 65, 0.94));
  transform-origin: top center;
}

.itinerary-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--itinerary-axis-width) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 34px);
}

.itinerary-row__side {
  min-width: 0;
  display: flex;
  align-items: center;
}

.itinerary-row--left .itinerary-row__side--main {
  justify-content: flex-end;
  padding-right: clamp(2px, 1vw, 10px);
}

.itinerary-row--left .itinerary-row__side--art {
  justify-content: center;
  padding-left: 0;
}

.itinerary-row--right .itinerary-row__side--main {
  justify-content: flex-start;
  padding-left: clamp(2px, 1vw, 10px);
}

.itinerary-row--right .itinerary-row__side--art {
  justify-content: center;
  padding-right: 0;
}

.itinerary-row__axis {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.itinerary-card {
  width: min(100%, var(--itinerary-card-max-width));
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(244, 236, 223, 0.98), rgba(235, 224, 205, 0.96));
}

.itinerary-card__time {
  margin: 0;
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8d7a66;
}

.itinerary-card__title {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 2.8vw, 2rem);
  line-height: 1.02;
  color: #45382b;
}

.itinerary-card__location {
  margin: 0;
  font-size: clamp(1.08rem, 2.1vw, 1.24rem);
  line-height: 1.45;
  color: #8b7866;
}

.itinerary-art {
  width: min(100%, var(--itinerary-art-size));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.itinerary-art__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(78, 61, 42, 0.08));
}

.itinerary-marker {
  --itinerary-marker-progress: 0;
  width: var(--itinerary-marker-size);
  height: var(--itinerary-marker-size);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(191, 172, 148, 0.4);
  box-shadow: 0 0 0 6px rgba(245, 237, 225, 0.98);
}

.itinerary-marker__fill {
  position: relative;
  width: 100%;
  height: 100%;
}

.itinerary-marker__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(144, 117, 84, 0.98), rgba(116, 91, 65, 0.94));
  transform: scaleY(var(--itinerary-marker-progress));
  transform-origin: top center;
}

/* Final unified invitation overrides */
:root {
  --page-max-width: 1020px;
  --panel-max-width: 920px;
  --panel-narrow-width: 780px;
  --section-gap: clamp(26px, 5vw, 44px);
  --panel-space-y: clamp(34px, 6vw, 54px);
  --panel-space-x: clamp(20px, 4.2vw, 34px);
  --radius-panel: 28px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-panel: 0 20px 46px rgba(84, 65, 45, 0.13);
  --shadow-soft: 0 14px 30px rgba(84, 65, 45, 0.10);
  --color-page: #f8f1e7;
  --color-page-soft: #efe2d1;
  --color-panel: #f7efe4;
  --color-panel-deep: #ecdcc7;
  --color-glass: rgba(247, 239, 228, 0.74);
  --color-line: rgba(167, 140, 107, 0.26);
  --color-text-main: #403327;
  --color-text-secondary: #7d6c5d;
  --color-accent: #b79973;
  --color-accent-strong: #8c6d4c;
  --color-button: #9e7c58;
  --color-button-hover: #866746;
}

body {
  color: var(--color-text-main);
  background:
    radial-gradient(circle at top, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0) 34%),
    linear-gradient(180deg, var(--color-page) 0%, var(--color-page-soft) 100%);
}

#bg-gradient {
  opacity: 0.12;
}

.scene {
  padding: 30px 22px 70px;
}

.invitation {
  width: min(var(--page-max-width), 100%);
  margin-top: clamp(26px, 4vw, 38px);
  padding: 0 clamp(10px, 2vw, 20px) clamp(28px, 4vw, 40px);
}

.flow-section {
  padding: 0;
}

.invitation > .flow-section + .flow-section {
  margin-top: var(--section-gap);
}

.invitation > .flow-section + .flow-section::before {
  top: calc(var(--section-gap) * -0.52);
  width: min(620px, 82%);
  border-top-color: rgba(190, 170, 144, 0.28);
}

.hero-section,
.hero-date-section,
.countdown-section,
.venue-section,
.moments-section,
.itinerary-section,
.dresscode-section,
.regalos-section,
.rsvp-section {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  justify-items: center;
}

.glass-card,
.card-beige,
.regalos-card,
.rsvp-post,
.section-modal__dialog {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.glass-card {
  width: min(var(--panel-narrow-width), 100%);
  padding: clamp(32px, 6vw, 50px) clamp(24px, 5vw, 40px);
  background: linear-gradient(180deg, rgba(248, 241, 231, 0.9), rgba(241, 231, 215, 0.72));
  backdrop-filter: blur(10px);
}

.card-beige {
  width: min(var(--panel-max-width), 100%);
  padding: var(--panel-space-y) var(--panel-space-x);
  background:
    radial-gradient(circle at top, rgba(255, 249, 241, 0.7), rgba(255, 249, 241, 0) 34%),
    linear-gradient(180deg, rgba(247, 239, 228, 0.98), rgba(236, 223, 205, 0.97));
}

.section-icon-img {
  width: clamp(102px, 13vw, 146px);
  margin: 0 auto 4px;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.hero-section .kicker {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(4.1rem, 10vw, 6.9rem);
  line-height: 0.92;
  color: #4a3a2d;
}

.hero-quote,
.section-subtitle,
.section-text,
.section-summary,
.moments-subtitle,
.gift-link-description,
.regalos-note,
.rsvp-greeting,
.rsvp-cupos,
.dresscode-palette-copy,
.dresscode-color-note {
  margin: 0;
  max-width: 660px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: clamp(1.12rem, 2.2vw, 1.3rem);
  line-height: 1.62;
}

.hero-section.glass-card,
.hero-date-section {
  width: min(var(--panel-max-width), 100%);
}

.ceremony-date-row {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.btn-primary,
.btn-secondary,
.action-btn,
.section-details-btn,
.waze-btn,
.music-mini-btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn-primary,
.action-btn,
.waze-btn {
  background: linear-gradient(135deg, var(--color-button), var(--color-accent-strong));
  color: #faf5ed;
  box-shadow: 0 12px 24px rgba(118, 91, 62, 0.18);
}

.btn-secondary,
.music-mini-btn {
  background: rgba(255, 247, 237, 0.74);
  border-color: rgba(160, 134, 102, 0.32);
  color: var(--color-text-main);
  box-shadow: 0 10px 20px rgba(110, 85, 59, 0.08);
}

.countdown {
  width: min(100%, 560px);
  margin-top: 6px;
  gap: clamp(6px, 1vw, 12px);
}

.countdown div {
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.44);
}

.moments-carousel {
  width: min(100%, 860px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(170, 145, 114, 0.3);
  background: linear-gradient(180deg, rgba(235, 224, 206, 0.88), rgba(230, 217, 198, 0.96));
  box-shadow: var(--shadow-soft);
}

.moments-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-color: rgba(174, 150, 120, 0.46);
  background: rgba(251, 245, 236, 0.94);
  color: var(--color-accent-strong);
}

.moment-caption {
  background: linear-gradient(180deg, rgba(73, 82, 48, 0.74), rgba(52, 59, 34, 0.8));
}

.itinerary-list {
  --itinerary-axis-width: clamp(84px, 10vw, 112px);
  --itinerary-axis-position: 50%;
  --itinerary-line-width: 4px;
  --itinerary-line-progress: 0;
  --itinerary-marker-size: 18px;
  --itinerary-card-max-width: 430px;
  --itinerary-art-size: clamp(108px, 11.8vw, 138px);
}

.itinerary-card,
.regalos-card,
.rsvp-post {
  background:
    radial-gradient(circle at top, rgba(255, 249, 241, 0.54), rgba(255, 249, 241, 0) 38%),
    linear-gradient(180deg, rgba(249, 243, 234, 0.98), rgba(239, 229, 214, 0.97));
  box-shadow: var(--shadow-soft);
}

.itinerary-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(174, 148, 115, 0.26);
}

.itinerary-art__image {
  transform: none;
}

.dresscode-detail-shell {
  width: min(100%, 820px);
  display: grid;
  gap: 20px;
  margin-top: 6px;
}

.regalos-card {
  width: min(100%, 720px);
  justify-self: center;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 32px);
}

.regalos-bank-toggle {
  justify-self: center;
}

.regalos-bank-panel__content {
  border: 1px solid rgba(173, 147, 114, 0.18);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.62);
  padding: 18px 20px;
}

.rsvp-section {
  justify-items: stretch;
}

.rsvp-section > .section-icon-img,
.rsvp-section > .section-title,
.rsvp-section > .section-text {
  justify-self: center;
}

.rsvp-form {
  width: min(100%, 640px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.rsvp-form > * {
  margin: 0;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 1px solid rgba(165, 138, 106, 0.34);
  border-radius: 16px;
  background: rgba(253, 248, 241, 0.92);
  padding: 14px 16px;
  font-size: 1.08rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.rsvp-post,
.rsvp-status {
  width: min(100%, 640px);
  margin: 0 auto;
}

.section-modal__dialog {
  width: min(820px, 100%);
  background:
    radial-gradient(circle at top, rgba(255, 249, 242, 0.7), rgba(255, 249, 242, 0) 38%),
    linear-gradient(180deg, rgba(249, 243, 234, 0.99), rgba(239, 229, 214, 0.98));
}

.music-fab {
  background: linear-gradient(135deg, rgba(126, 100, 72, 0.96), rgba(100, 76, 52, 0.98));
  border: 1px solid rgba(246, 237, 225, 0.6);
  box-shadow: 0 16px 28px rgba(70, 53, 36, 0.24);
}

.music-panel {
  border: 1px solid rgba(169, 144, 113, 0.28);
  background: rgba(248, 241, 231, 0.96);
  box-shadow: 0 16px 30px rgba(88, 68, 47, 0.18);
}

@media (max-width: 980px) {
  .scene {
    padding-inline: 16px;
  }

  .card-beige,
  .glass-card {
    width: 100%;
  }

  .itinerary-list {
    --itinerary-axis-width: 92px;
    --itinerary-card-max-width: 360px;
    --itinerary-art-size: 112px;
  }
}

@media (max-width: 760px) {
  .scene {
    padding: 20px 12px 52px;
  }

  .invitation {
    padding: 0 4px 24px;
  }

  .invitation > .flow-section + .flow-section {
    margin-top: 22px;
  }

  .invitation > .flow-section + .flow-section::before {
    width: min(220px, 58%);
    top: -12px;
  }

  .glass-card,
  .card-beige {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .section-title {
    font-size: clamp(2.5rem, 11vw, 3.3rem);
  }

  .hero-section h1 {
    font-size: clamp(3.3rem, 14vw, 4.8rem);
  }

  .hero-date-section {
    padding: clamp(28px, 8vw, 40px) clamp(14px, 4.5vw, 22px);
  }

  .hero-date-section .section-icon-img {
    width: clamp(175px, 45vw, 220px);
    margin-bottom: 8px;
  }

  .ceremony-title {
    margin-top: clamp(4px, 1.8vw, 10px);
    padding-bottom: clamp(10px, 2.5vw, 14px);
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .ceremony-month {
    margin-top: clamp(10px, 3vw, 16px);
    font-size: clamp(0.98rem, 4.2vw, 1.2rem);
    letter-spacing: 0.12em;
  }

  .ceremony-date-row {
    margin-top: clamp(14px, 4vw, 18px);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(6px, 2.8vw, 14px);
  }

  .ceremony-date-side {
    min-width: 0;
    font-size: clamp(0.92rem, 3.9vw, 1.08rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .ceremony-day-block {
    min-width: clamp(64px, 20vw, 88px);
    gap: clamp(2px, 1vw, 6px);
  }

  .ceremony-day {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  .ceremony-year {
    font-size: clamp(0.92rem, 3.8vw, 1.08rem);
    letter-spacing: 0.14em;
  }

  .hero-date-line {
    margin-top: clamp(16px, 5vw, 22px);
    padding: clamp(6px, 2vw, 10px) clamp(10px, 4vw, 16px);
    font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itinerary-list {
    --itinerary-axis-width: 40px;
    --itinerary-axis-position: calc(var(--itinerary-axis-width) / 2);
    --itinerary-card-max-width: none;
    --itinerary-art-size: 96px;
    gap: 22px;
  }

  .itinerary-row {
    grid-template-columns: var(--itinerary-axis-width) minmax(0, 1fr);
    grid-template-areas:
      "axis main"
      "axis art";
    align-items: start;
    column-gap: 14px;
    row-gap: 12px;
  }

  .itinerary-row__axis {
    grid-area: axis;
    align-self: stretch;
  }

  .itinerary-row__side--main {
    grid-area: main;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  .itinerary-row__side--art {
    grid-area: art;
    justify-content: center !important;
    padding: 0 !important;
  }

  .itinerary-card {
    width: 100%;
    padding: 18px 18px 20px;
  }

  .regalos-card,
  .rsvp-post {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .btn-primary,
  .btn-secondary,
  .action-btn,
  .section-details-btn,
  .waze-btn,
  .music-mini-btn {
    width: 100%;
  }

  .music-widget {
    --music-fab-right: 10px;
    --music-fab-bottom: 10px;
    --music-fab-size: 56px;
  }

  .music-panel {
    width: min(210px, 80vw);
    bottom: 66px;
  }
}

@media (max-width: 380px) {
  .hero-date-section {
    padding-inline: 12px;
  }

  .ceremony-date-row {
    gap: 6px;
  }

  .ceremony-date-side {
    font-size: clamp(0.82rem, 4vw, 0.94rem);
    letter-spacing: 0.01em;
  }

  .ceremony-day {
    font-size: clamp(2.55rem, 13vw, 3.2rem);
  }
}

#sectionModalBody.section-modal__body--regalos-flat {
  display: flex;
  justify-content: center;
  padding-inline: clamp(20px, 4vw, 32px);
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack {
  width: min(100%, 640px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  text-align: center;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > * {
  margin: 0;
  text-align: center;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .regalos-intro,
#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .gift-link-description,
#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .regalos-note {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #6f5c49;
  text-shadow: none;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .regalos-modal-hero-icon {
  display: block;
  width: min(190px, 42vw);
  max-width: 190px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 8px 18px rgba(50, 36, 20, 0.14));
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .regalos-bank-toggle {
  width: min(320px, 100%);
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack > .regalos-bank-panel {
  width: min(100%, 520px);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack .regalos-bank-panel__content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack .regalos-bank-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack .regalos-bank-value {
  text-align: center;
}

#sectionModalBody.section-modal__body--regalos-flat .regalos-modal-stack .regalos-bank-copy-group {
  justify-content: center;
}

.hero-section.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.3vw, 22px);
  min-height: clamp(250px, 34vw, 340px);
  padding: clamp(34px, 6vw, 54px) clamp(20px, 5vw, 40px);
  text-align: center;
}

.hero-section.glass-card > .kicker,
.hero-section.glass-card > .hero-names,
.hero-section.glass-card > .hero-quote {
  margin: 0;
}

.hero-section.glass-card > .kicker {
  width: 100%;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-section .hero-names {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.32rem, 1vw, 0.9rem);
  white-space: nowrap;
  font-family: "Brittany Signature", "Brittany", cursive;
  font-size: clamp(3.4rem, 8.4vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-section .hero-quote {
  width: min(100%, 34ch);
  max-width: 34ch;
  margin-top: clamp(4px, 1vw, 8px);
  font-size: clamp(1.04rem, 2.05vw, 1.42rem);
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 760px) {
  .hero-section.glass-card {
    gap: clamp(12px, 3.8vw, 18px);
    min-height: auto;
    padding: clamp(28px, 8vw, 40px) clamp(16px, 6vw, 24px);
  }

  .hero-section.glass-card > .kicker {
    font-size: clamp(0.88rem, 3vw, 0.98rem);
    letter-spacing: 0.2em;
  }

  .hero-section .hero-names {
    gap: clamp(0.18rem, 0.8vw, 0.42rem);
    font-size: clamp(2rem, 10.5vw, 4.5rem);
    line-height: 0.98;
  }

  .hero-section .hero-quote {
    width: min(100%, 27ch);
    max-width: 27ch;
    font-size: clamp(0.98rem, 4.2vw, 1.16rem);
    line-height: 1.5;
  }
}

@media (min-width: 761px) {
  .hero-section.glass-card {
    gap: clamp(22px, 3.2vw, 34px);
    min-height: clamp(280px, 34vw, 380px);
    padding-top: clamp(42px, 6vw, 64px);
    padding-bottom: clamp(42px, 6vw, 60px);
  }

  .hero-section.glass-card > .kicker {
    position: static;
    transform: none;
    margin-bottom: clamp(6px, 1vw, 12px);
  }

  .hero-section .hero-names {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.04;
  }

  .hero-section.glass-card > .hero-quote {
    position: static;
    transform: none;
    margin-top: clamp(10px, 1.6vw, 18px);
  }
}

.hero-date-section > .section-title,
.countdown-section > .section-title,
.venue-section > .section-title,
.moments-section > .section-title,
.itinerary-section > .section-title,
.dresscode-section > .section-title,
.regalos-section > .section-title,
.rsvp-section > .section-title {
  margin: 0 0 clamp(14px, 2.4vw, 22px);
  padding: 0;
  border: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  color: var(--title-color);
}

/* Primera fase: refinamiento visual de contenedores principales */
:root {
  --page-max-width: 940px;
  --panel-max-width: 860px;
  --panel-narrow-width: 760px;
  --section-gap: clamp(34px, 5.8vw, 58px);
  --panel-space-y: clamp(38px, 5.8vw, 58px);
  --panel-space-x: clamp(24px, 4.8vw, 42px);
  --radius-panel: 34px;
  --shadow-panel:
    0 22px 54px rgba(69, 50, 31, 0.12),
    0 8px 18px rgba(105, 82, 56, 0.06),
    inset 0 1px 0 rgba(255, 250, 242, 0.74);
  --shadow-soft:
    0 16px 34px rgba(77, 57, 36, 0.09),
    inset 0 1px 0 rgba(255, 250, 242, 0.68);
}

.invitation {
  width: min(var(--page-max-width), 100%);
  padding-inline: clamp(14px, 2.4vw, 28px);
}

.glass-card,
.card-beige {
  width: min(var(--panel-max-width), 100%);
  border-radius: var(--radius-panel);
  border-color: rgba(174, 148, 115, 0.24);
  box-shadow: var(--shadow-panel);
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(250, 245, 237, 0.92), rgba(241, 231, 215, 0.78));
}

.card-beige {
  padding: var(--panel-space-y) var(--panel-space-x);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 251, 246, 0.78), rgba(255, 251, 246, 0) 38%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.98), rgba(238, 226, 209, 0.97));
}

.invitation > .flow-section + .flow-section {
  margin-top: var(--section-gap);
}

.invitation > .flow-section + .flow-section::before {
  top: calc(var(--section-gap) * -0.52);
  width: min(560px, 76%);
  border-top-color: rgba(184, 158, 124, 0.22);
}

.itinerary-card,
.regalos-card,
.rsvp-post {
  border-radius: 26px;
  border-color: rgba(174, 148, 115, 0.22);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .scene {
    padding-inline: 14px;
  }

  .invitation {
    padding-inline: 6px;
  }

  .glass-card,
  .card-beige {
    padding: clamp(30px, 8vw, 40px) clamp(20px, 6vw, 26px);
    border-radius: 30px;
  }

  .invitation > .flow-section + .flow-section {
    margin-top: clamp(28px, 8vw, 38px);
  }

  .invitation > .flow-section + .flow-section::before {
    top: clamp(-22px, -4vw, -16px);
  }

  .itinerary-card,
  .regalos-card,
  .rsvp-post {
    border-radius: 24px;
  }
}

/* Segunda fase base: secciones principales con bordes ondulados */
:root {
  --wave-fill: #f8efe3;
  --wave-fill-deep: #ecdeca;
  --wave-edge-space: clamp(48px, 7vw, 76px);
  --section-gap: clamp(58px, 8vw, 88px);
}

.wave-section--filled,
.invitation > .card-beige.flow-section {
  border: 0;
  border-radius: 0;
  padding-block:
    calc(var(--panel-space-y) + var(--wave-edge-space))
    calc(var(--panel-space-y) + var(--wave-edge-space));
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 252, 247, 0.74), rgba(255, 252, 247, 0) 42%),
    linear-gradient(180deg, var(--wave-fill) 0%, var(--wave-fill-deep) 100%);
  box-shadow: none;
  filter:
    drop-shadow(0 24px 36px rgba(64, 46, 28, 0.12))
    drop-shadow(0 8px 14px rgba(104, 80, 53, 0.05));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 112 C150 42 304 24 482 70 C660 116 820 110 1000 44 L1000 884 C824 940 668 878 506 920 C318 968 156 950 0 884 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 112 C150 42 304 24 482 70 C660 116 820 110 1000 44 L1000 884 C824 940 668 878 506 920 C318 968 156 950 0 884 Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.wave-section--transparent {
  background: transparent;
  box-shadow: none;
}

.invitation > .card-beige.flow-section > * {
  position: relative;
  z-index: 2;
}

.regalos-section > .regalos-card,
.rsvp-section > .rsvp-post {
  width: min(100%, 620px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.regalos-section > .regalos-card::before {
  content: none;
}

@media (max-width: 760px) {
  :root {
    --wave-edge-space: clamp(34px, 11vw, 50px);
  }

  .wave-section--filled,
  .invitation > .card-beige.flow-section {
    padding-block:
      calc(clamp(30px, 8vw, 40px) + var(--wave-edge-space))
      calc(clamp(30px, 8vw, 40px) + var(--wave-edge-space));
  }

  .invitation > .flow-section + .flow-section {
    margin-top: clamp(44px, 12vw, 62px);
  }
}

/* Estabilizacion de variantes onduladas por tipo de contenido */
:root {
  --wave-safe-top-simple: clamp(74px, 9vw, 108px);
  --wave-safe-bottom-simple: clamp(70px, 8vw, 100px);
  --wave-safe-top-form: clamp(92px, 10vw, 128px);
  --wave-safe-bottom-form: clamp(92px, 10vw, 128px);
  --wave-safe-top-timeline: clamp(106px, 11vw, 142px);
  --wave-safe-bottom-timeline: clamp(92px, 9vw, 126px);
}

.invitation > .card-beige.flow-section {
  padding-block:
    calc(var(--panel-space-y) + var(--wave-safe-top-simple))
    calc(var(--panel-space-y) + var(--wave-safe-bottom-simple));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 76 C164 34 318 28 496 58 C670 88 810 90 1000 46 L1000 936 C820 972 668 930 506 954 C318 982 154 972 0 930 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 76 C164 34 318 28 496 58 C670 88 810 90 1000 46 L1000 936 C820 972 668 930 506 954 C318 982 154 972 0 930 Z'/%3E%3C/svg%3E");
}

.rsvp-section.card-beige {
  width: min(820px, 100%);
  gap: clamp(18px, 2.6vw, 28px);
  padding-block:
    calc(var(--panel-space-y) + var(--wave-safe-top-form))
    calc(var(--panel-space-y) + var(--wave-safe-bottom-form));
  padding-inline: clamp(24px, 5vw, 54px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 58 C178 30 332 36 500 56 C680 78 812 72 1000 44 L1000 954 C824 982 662 952 504 968 C326 986 158 982 0 952 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 58 C178 30 332 36 500 56 C680 78 812 72 1000 44 L1000 954 C824 982 662 952 504 968 C326 986 158 982 0 952 Z'/%3E%3C/svg%3E");
}

.rsvp-section > .section-title {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.rsvp-section .rsvp-guest-search,
.rsvp-section #rsvpFormContainer,
.rsvp-section .rsvp-status {
  width: min(100%, 560px);
}

.rsvp-section .rsvp-form {
  width: 100%;
  gap: 14px;
  margin-top: clamp(8px, 1.6vw, 16px);
}

.rsvp-section .rsvp-form > * {
  margin-bottom: 0;
}

.rsvp-section .rsvp-form input,
.rsvp-section .rsvp-form select,
.rsvp-section .rsvp-form textarea,
.rsvp-section .rsvp-guest-search input {
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 14px;
}

.rsvp-section .rsvp-form textarea {
  min-height: 108px;
}

.rsvp-section .rsvp-form button[type="submit"] {
  margin-top: clamp(8px, 1.8vw, 14px);
}

.itinerary-section.card-beige {
  width: min(900px, 100%);
  gap: clamp(18px, 2.6vw, 28px);
  align-items: stretch;
  padding-block:
    calc(var(--panel-space-y) + var(--wave-safe-top-timeline))
    calc(var(--panel-space-y) + var(--wave-safe-bottom-timeline));
  padding-inline: clamp(26px, 5vw, 56px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 54 C174 30 326 34 496 52 C670 72 814 70 1000 42 L1000 952 C826 980 676 954 508 968 C326 984 154 980 0 950 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 54 C174 30 326 34 496 52 C670 72 814 70 1000 42 L1000 952 C826 980 676 954 508 968 C326 984 154 980 0 950 Z'/%3E%3C/svg%3E");
}

.itinerary-section > .section-title {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.itinerary-section .itinerary-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(6px, 1vw, 10px) clamp(4px, 1.5vw, 14px) clamp(18px, 2.6vw, 28px);
}

.itinerary-section .itinerary-list {
  --itinerary-axis-width: clamp(96px, 10vw, 122px);
  --itinerary-line-width: 3px;
  gap: clamp(30px, 4.6vw, 44px);
  padding-block: clamp(18px, 2.8vw, 28px);
}

.itinerary-section .itinerary-row {
  column-gap: clamp(18px, 3vw, 32px);
}

.itinerary-section .itinerary-card {
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.62), 0 12px 22px rgba(91, 72, 49, 0.07);
}

.itinerary-section .itinerary-marker {
  box-shadow: 0 0 0 7px rgba(248, 239, 227, 0.96);
}

.itinerary-section::before,
.rsvp-section::before {
  top: clamp(20px, 2.6vw, 28px);
  opacity: 0.7;
}

.itinerary-section::after,
.rsvp-section::after {
  bottom: clamp(20px, 2.6vw, 28px);
  opacity: 0.66;
}

@media (max-width: 760px) {
  :root {
    --wave-safe-top-simple: clamp(52px, 15vw, 72px);
    --wave-safe-bottom-simple: clamp(50px, 14vw, 68px);
    --wave-safe-top-form: clamp(70px, 18vw, 88px);
    --wave-safe-bottom-form: clamp(70px, 18vw, 88px);
    --wave-safe-top-timeline: clamp(80px, 20vw, 100px);
    --wave-safe-bottom-timeline: clamp(70px, 18vw, 90px);
  }

  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    padding-inline: clamp(20px, 6vw, 28px);
  }

  .itinerary-section .itinerary-shell {
    padding-inline: 0;
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 46px;
    gap: 26px;
    padding-block: 16px 22px;
  }

  .itinerary-section .itinerary-row {
    column-gap: 12px;
  }
}

/* Ajustes responsive: ondas mas suaves y zonas seguras en mobile */
@media (max-width: 768px) {
  :root {
    --section-gap: clamp(48px, 11vw, 68px);
    --wave-safe-top-simple: clamp(62px, 13vw, 78px);
    --wave-safe-bottom-simple: clamp(60px, 13vw, 76px);
    --wave-safe-top-form: clamp(82px, 16vw, 102px);
    --wave-safe-bottom-form: clamp(92px, 18vw, 114px);
    --wave-safe-top-timeline: clamp(94px, 18vw, 118px);
    --wave-safe-bottom-timeline: clamp(92px, 17vw, 112px);
  }

  .invitation > .card-beige.flow-section {
    padding-inline: clamp(20px, 6vw, 30px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
  }

  .invitation > .card-beige.flow-section::before,
  .invitation > .card-beige.flow-section::after {
    height: 44px;
    opacity: 0.68;
  }

  .invitation > .card-beige.flow-section::before {
    top: clamp(18px, 5vw, 26px);
  }

  .invitation > .card-beige.flow-section::after {
    bottom: clamp(18px, 5vw, 26px);
  }

  .rsvp-section.card-beige {
    padding-inline: clamp(22px, 6.5vw, 32px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 54 C178 24 336 26 500 46 C684 68 824 62 1000 36 L1000 956 C824 982 662 958 504 970 C326 984 158 978 0 954 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 54 C178 24 336 26 500 46 C684 68 824 62 1000 36 L1000 956 C824 982 662 958 504 970 C326 984 158 978 0 954 Z'/%3E%3C/svg%3E");
  }

  .rsvp-section .rsvp-guest-search,
  .rsvp-section #rsvpFormContainer,
  .rsvp-section .rsvp-status {
    width: 100%;
  }

  .rsvp-section .rsvp-form {
    gap: 16px;
  }

  .rsvp-section .rsvp-form button[type="submit"] {
    margin-top: 12px;
  }

  .itinerary-section.card-beige {
    padding-inline: clamp(22px, 6vw, 32px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 50 C176 24 332 26 500 42 C680 60 824 58 1000 34 L1000 958 C824 982 674 960 506 972 C326 984 156 980 0 956 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 50 C176 24 332 26 500 42 C680 60 824 58 1000 34 L1000 958 C824 982 674 960 506 972 C326 984 156 980 0 956 Z'/%3E%3C/svg%3E");
  }

  .itinerary-section > .section-title {
    margin-bottom: clamp(20px, 5vw, 30px);
  }

  .itinerary-section .itinerary-shell {
    max-width: 100%;
    padding-bottom: clamp(22px, 5vw, 34px);
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 54px;
    --itinerary-line-width: 3px;
    gap: 28px;
    padding-block: 18px 26px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: clamp(42px, 12vw, 56px);
    --wave-safe-top-simple: clamp(54px, 14vw, 66px);
    --wave-safe-bottom-simple: clamp(54px, 14vw, 66px);
    --wave-safe-top-form: clamp(74px, 18vw, 88px);
    --wave-safe-bottom-form: clamp(82px, 20vw, 96px);
    --wave-safe-top-timeline: clamp(82px, 20vw, 98px);
    --wave-safe-bottom-timeline: clamp(80px, 19vw, 94px);
  }

  .invitation {
    padding-inline: 4px;
  }

  .invitation > .card-beige.flow-section {
    padding-inline: clamp(18px, 5vw, 22px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 62 C168 26 334 24 500 48 C688 76 820 70 1000 40 L1000 944 C824 978 668 950 504 964 C322 982 156 974 0 940 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 62 C168 26 334 24 500 48 C688 76 820 70 1000 40 L1000 944 C824 978 668 950 504 964 C322 982 156 974 0 940 Z'/%3E%3C/svg%3E");
  }

  .invitation > .card-beige.flow-section::before,
  .invitation > .card-beige.flow-section::after {
    height: 36px;
    opacity: 0.62;
    background-size: 116% 100%;
  }

  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    padding-inline: clamp(18px, 5vw, 22px);
  }

  .rsvp-section.card-beige {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 52 C178 26 336 28 500 44 C684 62 824 58 1000 36 L1000 958 C824 982 662 962 504 972 C326 984 158 980 0 956 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 52 C178 26 336 28 500 44 C684 62 824 58 1000 36 L1000 958 C824 982 662 962 504 972 C326 984 158 980 0 956 Z'/%3E%3C/svg%3E");
  }

  .itinerary-section.card-beige {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 50 C176 26 332 28 500 42 C680 58 824 56 1000 36 L1000 958 C824 982 674 962 506 972 C326 984 156 980 0 956 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 50 C176 26 332 28 500 42 C680 58 824 56 1000 36 L1000 958 C824 982 674 962 506 972 C326 984 156 980 0 956 Z'/%3E%3C/svg%3E");
  }

  .rsvp-section .rsvp-form input,
  .rsvp-section .rsvp-form select,
  .rsvp-section .rsvp-form textarea,
  .rsvp-section .rsvp-guest-search input {
    min-height: 46px;
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 50px;
    gap: 24px;
    padding-block: 16px 24px;
  }

  .itinerary-section .itinerary-card {
    padding: 18px 16px 20px;
  }
}

@media (max-width: 390px) {
  :root {
    --wave-safe-top-simple: 54px;
    --wave-safe-bottom-simple: 54px;
    --wave-safe-top-form: 74px;
    --wave-safe-bottom-form: 86px;
    --wave-safe-top-timeline: 82px;
    --wave-safe-bottom-timeline: 86px;
  }

  .invitation > .card-beige.flow-section {
    padding-inline: 16px;
  }

  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    padding-inline: 16px;
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 46px;
    gap: 22px;
  }

  .itinerary-section .itinerary-card {
    padding-inline: 15px;
  }
}

/* Variante mobile para secciones largas: RSVP e itinerario */
@media (max-width: 768px) {
  .wave-section--long,
  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    --wave-long-safe-top: clamp(92px, 18vw, 116px);
    --wave-long-safe-bottom: clamp(104px, 20vw, 128px);
    padding-block:
      calc(clamp(34px, 8vw, 44px) + var(--wave-long-safe-top))
      calc(clamp(34px, 8vw, 44px) + var(--wave-long-safe-bottom));
    padding-inline: clamp(22px, 6vw, 34px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 48 C178 24 338 28 500 44 C684 62 824 58 1000 38 L1000 962 C824 982 664 964 504 972 C326 982 158 980 0 960 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 48 C178 24 338 28 500 44 C684 62 824 58 1000 38 L1000 962 C824 982 664 964 504 972 C326 982 158 980 0 960 Z'/%3E%3C/svg%3E");
  }

  .rsvp-section.card-beige {
    gap: clamp(20px, 4vw, 28px);
  }

  .rsvp-section .rsvp-form {
    gap: 18px;
  }

  .rsvp-section .rsvp-form button[type="submit"] {
    margin-top: 16px;
  }

  .rsvp-section .rsvp-status {
    margin-top: 4px;
  }

  .itinerary-section.card-beige {
    --wave-long-safe-top: clamp(106px, 20vw, 132px);
    --wave-long-safe-bottom: clamp(98px, 19vw, 124px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 44 C176 24 334 28 500 42 C682 58 824 56 1000 36 L1000 964 C824 982 674 966 506 974 C326 984 156 980 0 960 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 44 C176 24 334 28 500 42 C682 58 824 56 1000 36 L1000 964 C824 982 674 966 506 974 C326 984 156 980 0 960 Z'/%3E%3C/svg%3E");
  }

  .itinerary-section > .section-title {
    margin-bottom: clamp(24px, 6vw, 36px);
  }

  .itinerary-section .itinerary-shell {
    padding-bottom: clamp(28px, 7vw, 44px);
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 56px;
    gap: 30px;
    padding-block: 20px 30px;
  }
}

@media (max-width: 480px) {
  .wave-section--long,
  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    --wave-long-safe-top: clamp(82px, 21vw, 98px);
    --wave-long-safe-bottom: clamp(92px, 23vw, 108px);
    padding-block:
      calc(30px + var(--wave-long-safe-top))
      calc(30px + var(--wave-long-safe-bottom));
    padding-inline: clamp(18px, 5vw, 24px);
  }

  .itinerary-section.card-beige {
    --wave-long-safe-top: clamp(92px, 23vw, 110px);
    --wave-long-safe-bottom: clamp(88px, 22vw, 106px);
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 52px;
    gap: 26px;
    padding-block: 18px 28px;
  }
}

@media (max-width: 390px) {
  .wave-section--long,
  .rsvp-section.card-beige,
  .itinerary-section.card-beige {
    --wave-long-safe-top: 84px;
    --wave-long-safe-bottom: 98px;
    padding-inline: 16px;
  }

  .itinerary-section.card-beige {
    --wave-long-safe-top: 96px;
    --wave-long-safe-bottom: 94px;
  }

  .itinerary-section .itinerary-list {
    --itinerary-axis-width: 48px;
    gap: 24px;
  }
}

/* Overrides finales solo para las dos secciones largas */
@media (max-width: 768px) {
  #rsvpSection.wave-section--long.card-beige,
  #itinerario.wave-section--long.card-beige {
    overflow: visible;
    padding-inline: clamp(22px, 6vw, 34px);
  }

  #rsvpSection.wave-section--long.card-beige {
    padding-block: clamp(128px, 24vw, 158px) clamp(144px, 26vw, 178px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 46 C156 24 318 30 500 42 C684 56 836 56 1000 38 L1000 962 C826 980 668 968 504 974 C324 982 150 978 0 960 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 46 C156 24 318 30 500 42 C684 56 836 56 1000 38 L1000 962 C826 980 668 968 504 974 C324 982 150 978 0 960 Z'/%3E%3C/svg%3E");
  }

  #itinerario.wave-section--long.card-beige {
    padding-block: clamp(146px, 26vw, 184px) clamp(132px, 24vw, 168px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 42 C158 24 324 28 500 40 C686 54 836 54 1000 36 L1000 964 C824 982 674 970 506 976 C324 984 154 980 0 960 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 42 C158 24 324 28 500 40 C686 54 836 54 1000 36 L1000 964 C824 982 674 970 506 976 C324 984 154 980 0 960 Z'/%3E%3C/svg%3E");
  }

  #rsvpSection.wave-section--long::before,
  #itinerario.wave-section--long::before {
    top: clamp(22px, 5vw, 34px);
    height: 34px;
    opacity: 0.54;
  }

  #rsvpSection.wave-section--long::after,
  #itinerario.wave-section--long::after {
    bottom: clamp(22px, 5vw, 34px);
    height: 34px;
    opacity: 0.5;
  }

  #rsvpSection .rsvp-guest-search,
  #rsvpSection #rsvpFormContainer,
  #rsvpSection .rsvp-status {
    width: 100%;
    max-width: 560px;
  }

  #rsvpSection .rsvp-form {
    gap: 18px;
  }

  #rsvpSection .rsvp-form button[type="submit"] {
    margin-top: 18px;
  }

  #itinerario .itinerary-shell {
    width: 100%;
    padding: 0 0 clamp(30px, 7vw, 46px);
  }

  #itinerario .itinerary-list {
    --itinerary-axis-width: 58px;
    gap: 30px;
    padding-block: 22px 32px;
  }
}

@media (max-width: 480px) {
  #rsvpSection.wave-section--long.card-beige,
  #itinerario.wave-section--long.card-beige {
    padding-inline: clamp(18px, 5.4vw, 24px);
  }

  #rsvpSection.wave-section--long.card-beige {
    padding-block: clamp(120px, 28vw, 140px) clamp(138px, 31vw, 156px);
  }

  #itinerario.wave-section--long.card-beige {
    padding-block: clamp(138px, 31vw, 158px) clamp(126px, 29vw, 146px);
  }

  #itinerario .itinerary-list {
    --itinerary-axis-width: 52px;
    gap: 26px;
    padding-block: 20px 30px;
  }
}

@media (max-width: 390px) {
  #rsvpSection.wave-section--long.card-beige,
  #itinerario.wave-section--long.card-beige {
    padding-inline: 16px;
  }

  #rsvpSection.wave-section--long.card-beige {
    padding-block: 118px 146px;
  }

  #itinerario.wave-section--long.card-beige {
    padding-block: 136px 136px;
  }

  #itinerario .itinerary-list {
    --itinerary-axis-width: 48px;
    gap: 24px;
  }
}

.wave-long-frame {
  position: relative;
  width: 100%;
  margin-inline: auto;
  isolation: isolate;
}

.wave-long-frame--itinerary {
  width: min(900px, 100%);
}

.wave-long-frame--rsvp {
  width: min(820px, 100%);
}

.wave-long-frame > .wave-section--long {
  width: 100%;
  margin: 0 auto;
}

/* Sistema global de envoltorios ondulados por seccion */
.invitation > .wave-frame.flow-section {
  position: relative;
  width: min(var(--panel-max-width), 100%);
  margin-inline: auto;
  padding: 0;
  isolation: isolate;
  overflow: visible;
}

.invitation > .wave-frame--hero.flow-section {
  width: min(var(--panel-max-width), 100%);
}

.wave-frame > .flow-section {
  width: 100%;
  margin: 0 auto;
}

.wave-frame > .card-beige.flow-section,
.wave-frame > .hero-section.glass-card.flow-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding-block:
    calc(var(--panel-space-y) + var(--wave-safe-top-simple))
    calc(var(--panel-space-y) + var(--wave-safe-bottom-simple));
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 252, 247, 0.74), rgba(255, 252, 247, 0) 42%),
    linear-gradient(180deg, var(--wave-fill) 0%, var(--wave-fill-deep) 100%);
  box-shadow: none;
  filter:
    drop-shadow(0 24px 36px rgba(64, 46, 28, 0.12))
    drop-shadow(0 8px 14px rgba(104, 80, 53, 0.05));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 76 C164 34 318 28 496 58 C670 88 810 90 1000 46 L1000 936 C820 972 668 930 506 954 C318 982 154 972 0 930 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 76 C164 34 318 28 496 58 C670 88 810 90 1000 46 L1000 936 C820 972 668 930 506 954 C318 982 154 972 0 930 Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.wave-frame > .hero-section.glass-card.flow-section {
  min-height: clamp(260px, 34vw, 380px);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 252, 247, 0.76), rgba(255, 252, 247, 0) 42%),
    linear-gradient(180deg, var(--wave-fill) 0%, var(--wave-fill-deep) 100%);
  backdrop-filter: none;
}

.wave-frame.wave-section--transparent > .card-beige.flow-section,
.wave-frame.wave-section--transparent > .hero-section.glass-card.flow-section {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 252, 247, 0.34), rgba(255, 252, 247, 0) 44%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.3), rgba(236, 223, 205, 0.18));
  backdrop-filter: blur(2px);
  filter:
    drop-shadow(0 18px 34px rgba(52, 38, 24, 0.11))
    drop-shadow(0 6px 14px rgba(98, 76, 52, 0.06));
}

.wave-frame.wave-section--transparent > .card-beige.flow-section > *,
.wave-frame.wave-section--transparent > .hero-section.glass-card.flow-section > * {
  text-shadow: 0 1px 10px rgba(255, 250, 242, 0.64);
}

.wave-frame.wave-section--soft > .card-beige.flow-section {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 252, 247, 0.62), rgba(255, 252, 247, 0) 42%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.88), rgba(236, 223, 205, 0.82));
  backdrop-filter: blur(1px);
}

.wave-frame > .card-beige.flow-section > *,
.wave-frame > .glass-card.flow-section > * {
  position: relative;
  z-index: 2;
}

.wave-frame > .card-beige.flow-section::before,
.wave-frame > .card-beige.flow-section::after,
.wave-frame > .glass-card.flow-section::before,
.wave-frame > .glass-card.flow-section::after {
  content: none;
}

.invitation > .wave-frame.flow-section::before,
.invitation > .wave-frame.flow-section::after {
  content: none;
}

@media (max-width: 768px) {
  .wave-frame > .card-beige.flow-section {
    padding-inline: clamp(20px, 6vw, 30px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
  }

  .wave-frame > .hero-section.glass-card.flow-section {
    padding-inline: clamp(20px, 6vw, 30px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M0 70 C160 24 326 22 500 54 C686 88 820 80 1000 42 L1000 940 C820 982 668 944 504 962 C320 984 154 974 0 936 Z'/%3E%3C/svg%3E");
  }

}

/* Mobile: secciones mas envolventes a casi todo ancho */
@media (max-width: 768px) {
  .scene {
    padding-inline: clamp(4px, 1.8vw, 8px);
  }

  .invitation {
    width: 100%;
    padding-inline: 0;
  }

  .invitation > .wave-frame.flow-section,
  .invitation > .wave-frame--hero.flow-section,
  .invitation > .wave-long-frame.flow-section {
    width: calc(100vw - clamp(8px, 3vw, 14px));
    max-width: none;
  }
}

@media (max-width: 480px) {
  .scene {
    padding-inline: 3px;
  }

  .invitation > .wave-frame.flow-section,
  .invitation > .wave-frame--hero.flow-section,
  .invitation > .wave-long-frame.flow-section {
    width: calc(100vw - 8px);
  }
}

@media (max-width: 390px) {
  .scene {
    padding-inline: 2px;
  }

  .invitation > .wave-frame.flow-section,
  .invitation > .wave-frame--hero.flow-section,
  .invitation > .wave-long-frame.flow-section {
    width: calc(100vw - 6px);
  }
}

/* Fase continuidad: reducir separacion externa entre bloques */
.invitation {
  row-gap: 0;
}

.invitation > .wave-frame.flow-section {
  margin-block: 0;
}

.invitation > .wave-frame.flow-section + .wave-frame.flow-section {
  margin-top: 0;
  margin-bottom: 0;
}

.invitation > .wave-frame.flow-section + .wave-frame.flow-section::before {
  content: none;
}

.wave-frame.wave-section--transparent > .card-beige.flow-section,
.wave-frame.wave-section--transparent > .hero-section.glass-card.flow-section {
  background: transparent;
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.wave-frame.wave-section--transparent > .card-beige.flow-section > *,
.wave-frame.wave-section--transparent > .hero-section.glass-card.flow-section > * {
  text-shadow:
    0 1px 12px rgba(255, 250, 242, 0.86),
    0 1px 2px rgba(58, 43, 28, 0.12);
}

.parking-section.flow-section {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 5vw, 34px);
  background: transparent;
  box-shadow: none;
}

.parking-section__text {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
  color: rgba(255, 248, 238, 0.96);
  font-size: clamp(1.34rem, 3vw, 1.9rem);
  line-height: 1.45;
  font-weight: 600;
  text-shadow:
    0 2px 14px rgba(42, 31, 22, 0.58),
    0 1px 2px rgba(42, 31, 22, 0.42);
}

/* Animaciones de entrada reutilizables */
.reveal {
  --reveal-delay: 0ms;
  --reveal-duration: 860ms;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translate3d(0, 22px, 0);
}

.reveal-title {
  --reveal-duration: 1000ms;
  transform: translate3d(0, 26px, 0);
}

.reveal-left {
  --reveal-duration: 940ms;
  transform: translate3d(-26px, 16px, 0);
}

.reveal-right {
  --reveal-duration: 940ms;
  transform: translate3d(26px, 16px, 0);
}

.reveal-scale {
  --reveal-duration: 900ms;
  transform: translate3d(0, 14px, 0) scale(0.94);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.wave-frame > .card-beige.flow-section::before,
.wave-frame > .card-beige.flow-section::after,
.wave-frame > .glass-card.flow-section::before,
.wave-frame > .glass-card.flow-section::after,
#rsvpSection.wave-section--long::before,
#rsvpSection.wave-section--long::after,
#itinerario.wave-section--long::before,
#itinerario.wave-section--long::after {
  content: none;
}

/* Ajuste puntual: centrar el contenido de Confirmacion */
#rsvpSection {
  justify-items: center;
  text-align: center;
}

#rsvpSection .rsvp-guest-search,
#rsvpSection #rsvpFormContainer,
#rsvpSection .rsvp-post,
#rsvpSection .rsvp-status {
  justify-self: center;
  margin-inline: auto;
}

#rsvpSection .rsvp-form {
  margin-inline: auto;
  text-align: left;
}

#rsvpSection .rsvp-form button[type="submit"] {
  justify-self: center;
}

/* Ajuste puntual de calendario / cuenta regresiva */
.countdown-section > .section-title {
  color: #fffaf3;
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  text-shadow:
    0 2px 12px rgba(45, 32, 20, 0.34),
    0 1px 2px rgba(45, 32, 20, 0.28);
}

#momentsTitle {
  font-size: clamp(2.45rem, 5.2vw, 3.45rem);
}

#itineraryTitle {
  font-size: clamp(2.45rem, 5.2vw, 3.45rem);
}

.countdown-section .countdown div {
  border: 1px solid rgba(171, 147, 116, 0.34);
  background: linear-gradient(180deg, #fbf4ea 0%, #efe1cd 100%);
  box-shadow:
    0 10px 18px rgba(73, 53, 34, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.countdown-section .countdown::after {
  content: "";
  width: clamp(24px, 4vw, 34px);
  height: clamp(22px, 3.7vw, 31px);
  background: #fffaf3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 21.35 10.55 20.03C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 21.35 10.55 20.03C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(45, 32, 20, 0.22));
}

.event-day-message {
  position: relative;
  width: min(100%, 560px);
  margin: 16px auto 0;
  padding: clamp(20px, 4vw, 30px) clamp(18px, 4vw, 34px);
  border: 1px solid rgba(171, 147, 116, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 250, 243, 0.86), rgba(255, 250, 243, 0) 56%),
    linear-gradient(180deg, #fbf4ea 0%, #efe1cd 100%);
  box-shadow:
    0 14px 28px rgba(73, 53, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: var(--color-text-main);
  text-align: center;
  overflow: hidden;
  animation: eventDayReveal 0.85s ease both;
}

.event-day-message::before,
.event-day-message::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.event-day-message::before {
  inset: 12px;
  border: 1px solid rgba(255, 250, 243, 0.58);
}

.event-day-message::after {
  width: 96px;
  height: 96px;
  top: -42px;
  right: -26px;
  background: rgba(255, 250, 243, 0.42);
  animation: eventDayGlow 4.8s ease-in-out infinite;
}

.event-day-message__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  color: var(--color-accent);
  filter: drop-shadow(0 3px 8px rgba(73, 53, 34, 0.16));
  animation: eventDayPulse 3.2s ease-in-out infinite;
}

.event-day-message__icon::before {
  content: "";
  width: 30px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 21.35 10.55 20.03C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 21.35 10.55 20.03C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.event-day-message__title,
.event-day-message__text {
  position: relative;
  z-index: 1;
}

.event-day-message__title {
  margin: 0;
  font-family: "Brittany Signature", "Brittany", cursive;
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  line-height: 1.22;
  color: var(--title-color);
  text-shadow: 0 1px 2px rgba(45, 32, 20, 0.12);
}

.event-day-message__text {
  max-width: 430px;
  margin: 18px auto 0;
  color: var(--text-secondary-color);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  line-height: 1.5;
}

@keyframes eventDayReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes eventDayPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes eventDayGlow {
  0%,
  100% {
    opacity: 0.32;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.58;
    transform: translate3d(-8px, 10px, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-day-message,
  .event-day-message::after,
  .event-day-message__icon {
    animation: none;
  }
}

/* Ajuste puntual de textos en Regalos */
#regalosTitle,
#regalosIntro,
#regalos > .section-summary {
  color: #fffaf3;
  text-shadow:
    0 2px 12px rgba(45, 32, 20, 0.34),
    0 1px 2px rgba(45, 32, 20, 0.28);
}

#regalosTitle {
  font-size: clamp(2.45rem, 5.2vw, 3.45rem);
}

#regalos > #regalosIntro,
#regalos > .section-summary {
  font-size: clamp(1.24rem, 2.9vw, 1.58rem);
}

#dresscodeTitle {
  font-size: clamp(2.45rem, 5.2vw, 3.45rem);
}

#dresscodeType {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
}

#dresscode > .section-summary {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
}

#dresscode > .section-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-button), var(--color-accent-strong));
  color: #faf5ed;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(118, 91, 62, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

#dresscode > .section-details-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--color-button-hover), #725639);
  color: #faf5ed;
}

#dresscode > .section-details-btn,
#rsvpSection .rsvp-form button[type="submit"] {
  background: linear-gradient(135deg, #d0ba98, #c4a982);
  color: #fffaf3;
  box-shadow: 0 10px 20px rgba(118, 91, 62, 0.08);
}

#dresscode > .section-details-btn:hover,
#rsvpSection .rsvp-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #d7c4a7, #cdb18c);
  color: #fffaf3;
}

/* Ajuste puntual de textos y boton en Lugar de la ceremonia */
.venue-section > .section-title,
.venue-section .location-line {
  color: #fffaf3;
  text-shadow: none;
}

.venue-section > .section-title {
  font-size: clamp(2.45rem, 5.2vw, 3.45rem);
}

.venue-section .waze-btn {
  background: rgba(255, 247, 237, 0.74);
  border-color: rgba(160, 134, 102, 0.32);
  color: var(--color-text-main);
  box-shadow: 0 10px 20px rgba(110, 85, 59, 0.08);
}

.venue-section .waze-btn:hover {
  background: rgba(164, 141, 114, 0.36);
  color: var(--color-text-main);
}

/* Estructura de textos de la primera seccion */
.hero-section.glass-card > .hero-text-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 920px);
  margin-inline: auto;
  row-gap: clamp(30px, 4vw, 54px);
  text-align: center;
  overflow: visible;
  color: #fffaf3;
  text-shadow:
    0 2px 12px rgba(45, 32, 20, 0.34),
    0 1px 2px rgba(45, 32, 20, 0.28);
}

.hero-section.glass-card > .hero-text-stack > .kicker,
.hero-section.glass-card > .hero-text-stack > .hero-names,
.hero-section.glass-card > .hero-text-stack > .hero-quote {
  position: static;
  margin: 0;
  padding: 0;
  min-width: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  flex: 0 0 auto;
  color: inherit;
  text-shadow: inherit;
}

.hero-section.glass-card > .hero-text-stack > .kicker {
  order: 1;
  width: 100%;
  font-size: clamp(1.66rem, 3.05vw, 2.12rem);
  line-height: 1.28;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-section.glass-card > .hero-text-stack > .hero-names {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: clamp(0.04em, 0.6vw, 0.12em);
  width: min(100%, calc(100vw - 48px));
  max-width: min(100%, calc(100vw - 48px));
  font-family: "Brittany Signature", "Brittany", cursive;
  font-weight: 400;
  font-size: clamp(6rem, 13.1vw, 10.6rem);
  line-height: 1.22;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-section.glass-card > .hero-text-stack > .hero-names > span {
  display: block;
  min-width: 0;
}

.hero-section.glass-card > .hero-text-stack > .hero-quote {
  order: 3;
  width: min(100%, 34ch);
  max-width: 34ch;
  font-size: clamp(1.9rem, 3.75vw, 2.56rem);
  line-height: 1.55;
}

.hero-section.glass-card > .hero-text-stack > .parents-grid {
  order: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4px, 0.8vw, 10px) clamp(18px, 4vw, 56px);
  width: min(100%, 760px);
  color: inherit;
  text-shadow: inherit;
}

.hero-section.glass-card > .hero-text-stack > .parents-grid > .parent-name {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  text-shadow: inherit;
  font-style: italic;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.3;
}

.hero-section.glass-card > .hero-text-stack > .parents-grid > .parent-name:nth-child(odd) {
  text-align: right;
}

.hero-section.glass-card > .hero-text-stack > .parents-grid > .parent-name:nth-child(even) {
  text-align: left;
}

/* Ajuste puntual de textos en Ceremonia */
.hero-date-section .ceremony-title {
  font-size: clamp(2.55rem, 4.8vw, 3.45rem);
}

.hero-date-section .ceremony-month,
.hero-date-section .hero-date-line {
  font-size: clamp(1.72rem, 3.25vw, 2.15rem);
}

.hero-date-section .ceremony-date-side {
  font-size: clamp(1.62rem, 3.1vw, 2rem);
}

.hero-date-section .ceremony-day {
  font-size: clamp(4.25rem, 9.2vw, 6.3rem);
}

.hero-date-section .ceremony-year {
  font-size: clamp(1.42rem, 2.75vw, 1.76rem);
}

@media (max-width: 760px) {
  .wave-frame > .hero-section.glass-card.flow-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-block:
      calc(clamp(46px, 13vw, 72px) + var(--wave-safe-top-simple))
      calc(clamp(46px, 13vw, 72px) + var(--wave-safe-bottom-simple));
  }

  .hero-section.glass-card > .hero-text-stack {
    width: min(100%, calc(100vw - 32px));
    row-gap: clamp(36px, 8.8vw, 52px);
  }

  .hero-section.glass-card > .hero-text-stack > .kicker {
    font-size: clamp(1.34rem, 4.8vw, 1.62rem);
    line-height: 1.28;
  }

  .hero-section.glass-card > .hero-text-stack > .hero-names {
    max-width: min(100%, calc(100vw - 48px));
    font-size: clamp(2.9rem, 13vw, 4.28rem);
    line-height: 1.42;
  }

  .hero-section.glass-card > .hero-text-stack > .hero-quote {
    font-size: clamp(1.52rem, 6.1vw, 1.84rem);
    line-height: 1.55;
  }

  .hero-section.glass-card > .hero-text-stack > .parents-grid {
    width: 100%;
    gap: 4px 12px;
  }

  .hero-section.glass-card > .hero-text-stack > .parents-grid > .parent-name {
    font-size: clamp(0.92rem, 4.1vw, 1.2rem);
    line-height: 1.35;
  }

  .hero-date-section .ceremony-title {
    font-size: clamp(2.35rem, 10.2vw, 3.05rem);
  }

  .hero-date-section .ceremony-month {
    font-size: clamp(1.34rem, 5.7vw, 1.68rem);
  }

  .hero-date-section .ceremony-date-side {
    font-size: clamp(1.15rem, 4.85vw, 1.46rem);
  }

  .hero-date-section .ceremony-day {
    font-size: clamp(3.35rem, 16vw, 4.7rem);
  }

  .hero-date-section .ceremony-year {
    font-size: clamp(1.18rem, 4.9vw, 1.42rem);
  }

  .hero-date-section .hero-date-line {
    font-size: clamp(1.4rem, 5.85vw, 1.78rem);
  }
}

@media (min-width: 761px) {
  .hero-section.glass-card > .hero-text-stack > .hero-names {
    position: relative;
    left: calc(-1 * clamp(20px, 2.4vw, 48px));
    width: min(100%, 920px);
    margin-inline: auto;
    min-height: 1.48em;
    text-align: center;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 760px) {
    .wave-frame > .hero-section.glass-card.flow-section,
    .hero-section.glass-card > .hero-text-stack {
      overflow: visible;
    }

    .hero-section.glass-card > .hero-text-stack > .hero-names {
      height: auto;
      max-height: none;
      padding-block: 0.14em 0.08em;
      overflow: visible;
      line-height: 1.5;
    }
  }
}

@media (max-width: 768px) {
  .invitation > .wave-frame.flow-section + .wave-frame.flow-section {
    margin-top: 0;
  }
}
