:root {
  --ink: #171515;
  --muted: #5f6f66;
  --paper: #f7f2e9;
  --paper-deep: #eee6d8;
  --sage: #5d725f;
  --sage-light: #aab9a3;
  --gold: #a6904d;
  --plum: #5e4357;
  --blue: #9eb8da;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(38, 34, 28, 0.18);
  --floral-corner: url("assets/floral-watercolor.svg");
  --floral-side: url("assets/floral-sage.svg");
  --floral-opacity: 0.82;
  --floral-size: 190px;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-caps: Montserrat, Arial, sans-serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 1;
  --display-scale: 1;
  --caps-letter-spacing: 0.13em;
  --script-title-size: clamp(3rem, 12vw, 4.9rem);
  --script-heading-size: clamp(3.8rem, 15vw, 5.4rem);
  --detail-heading-size: clamp(2.85rem, 10.8vw, 4rem);
  --confirm-heading-size: clamp(2.35rem, 9vw, 3.5rem);
  --timeline-heading-size: clamp(3.1rem, 12vw, 4.35rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(158, 184, 218, 0.18), transparent 32rem),
    linear-gradient(120deg, #e9edf2, #fbf8f1 44%, #e7eee7);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

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

.audio-gate {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(18, 20, 19, 0.58), rgba(18, 20, 19, 0.72)),
    url("assets/photo-4.webp") 54% center / cover;
}

.audio-gate[hidden] {
  display: none;
}

.audio-gate__panel {
  display: grid;
  width: min(100%, 340px);
  justify-items: center;
  gap: 22px;
  padding: 34px 24px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  background: rgba(255, 253, 248, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  text-align: center;
}

.audio-gate__panel p {
  margin: 0;
  color: #fffdf8;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.4rem, 16vw, 5rem);
  line-height: 0.9;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.38);
}

.audio-gate__panel button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 10px 26px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  color: #1d211f;
  background: #fffdf8;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.audio-gate__panel button::before {
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-18deg);
  content: "";
  pointer-events: none;
  transition: left 0s;
}

.audio-gate__panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.audio-gate__panel button:hover::before {
  left: 130%;
  transition: left 460ms ease;
}

.audio-gate__panel button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.audio-gate__envelope {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 5 / 3;
  margin: 2px auto 22px;
  perspective: 1100px;
}

.audio-gate__envelope-back,
.audio-gate__envelope-paper,
.audio-gate__envelope-front,
.audio-gate__envelope-flap {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
}

.audio-gate__envelope-back {
  border-radius: 9px 9px 7px 7px;
  border: 1px solid rgba(255, 253, 248, 0.58);
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.94), rgba(247, 241, 229, 0.96)),
    linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(166, 144, 77, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.audio-gate__envelope-back::before,
.audio-gate__envelope-back::after {
  position: absolute;
  inset: auto;
  top: 48%;
  width: 66%;
  height: 62%;
  border-top: 1px solid rgba(167, 145, 77, 0.24);
  border-left: 1px solid rgba(167, 145, 77, 0.22);
  border-right: 1px solid rgba(167, 145, 77, 0.22);
  content: "";
}

.audio-gate__envelope-back::before {
  left: 0;
  border-left-width: 0;
  transform: skew(-3deg) rotate(4deg);
}

.audio-gate__envelope-back::after {
  right: 0;
  border-right-width: 0;
  transform: skew(3deg) rotate(-4deg);
}

.audio-gate__envelope-paper {
  inset: 11px 13px 18px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 4px;
  background: linear-gradient(160deg, #fffdf8 0%, #f9f4eb 60%, #f3ece0 100%);
  border: 1px solid rgba(166, 144, 77, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.08);
  color: #5e4d33;
  transform: translateY(14px);
  transition:
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1) 320ms,
    box-shadow 980ms ease 320ms;
  z-index: 1;
}

.audio-gate__envelope-paper strong,
.audio-gate__envelope-paper span {
  display: block;
  letter-spacing: 0.12em;
}

.audio-gate__envelope-paper strong {
  font-size: 1.08rem;
  font-family: var(--font-script);
  line-height: 1;
}

.audio-gate__envelope-paper span {
  font-size: 0.54rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0.72;
}

.audio-gate__envelope-front {
  clip-path: polygon(0 46%, 50% 72%, 100% 46%, 100% 100%, 0 100%);
  background: linear-gradient(170deg, rgba(218, 196, 128, 0.72), rgba(192, 164, 96, 0.75));
  box-shadow: inset 0 -6px 20px rgba(255, 255, 255, 0.22);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.audio-gate__envelope-flap {
  clip-path: polygon(0 46%, 50% 0%, 100% 46%, 100% 100%, 0 100%);
  background: linear-gradient(155deg, rgba(252, 242, 215, 0.97) 0%, rgba(232, 204, 132, 0.97) 52%, rgba(210, 180, 108, 0.97) 100%);
  transform-origin: 50% 46%;
  transform: rotateX(0deg);
  transition: transform 820ms cubic-bezier(0.34, 1.06, 0.64, 1) 60ms;
  z-index: 3;
}

/* Wax seal on the flap triangle */
.audio-gate__envelope-flap::before {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, #e8bd52 0%, #b07e18 50%, #7c5510 100%);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.42),
    inset 0 1px 3px rgba(255, 222, 90, 0.52),
    inset 0 -1px 2px rgba(70, 38, 5, 0.38);
  content: "";
}

/* Monogram inside seal */
.audio-gate__envelope-flap::after {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 244, 192, 0.9);
  font-family: "Great Vibes", cursive;
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
  content: "I";
}

/* — Opening state — */

.audio-gate--opening .audio-gate__envelope-paper {
  transform: translateY(-70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 28px 60px rgba(0, 0, 0, 0.28);
}

.audio-gate--opening .audio-gate__envelope-flap {
  transform: rotateX(-178deg);
}

.audio-gate--opening .audio-gate__envelope-front {
  transform: translateY(3px);
}

.audio-gate--opening .audio-gate__envelope {
  animation: envelope-lift 520ms cubic-bezier(0.34, 1.12, 0.64, 1) forwards;
}

.audio-gate--opening .audio-gate__panel {
  animation: panel-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Elegant full-gate dissolve after the letter rises */
.audio-gate--opening {
  animation: gate-sweep 680ms cubic-bezier(0.4, 0, 1, 1) 1220ms both;
  pointer-events: none;
}

/* Entrance animation when gate first appears */
.audio-gate__panel {
  animation: panel-enter 860ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-enter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes envelope-lift {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  30% {
    transform: translateY(-18px) scale(1.055) rotate(-0.5deg);
  }

  65% {
    transform: translateY(-14px) scale(1.055) rotate(0.4deg);
  }

  100% {
    transform: translateY(-10px) scale(1.04) rotate(0deg);
  }
}

@keyframes panel-rise {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes gate-sweep {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.controls-toggle {
  position: fixed;
  z-index: 45;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #4f5f53;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 14px 36px rgba(33, 30, 26, 0.16);
  backdrop-filter: blur(18px);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.controls-toggle:hover {
  transform: translateY(-1px);
}

.switcher-stack {
  position: fixed;
  z-index: 40;
  top: max(58px, calc(env(safe-area-inset-top) + 58px));
  left: 50%;
  display: grid;
  width: min(calc(100% - 20px), 620px);
  gap: 6px;
  transform: translateX(-50%);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

body[data-controls="closed"] .switcher-stack {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -12px);
}

.version-switcher,
.flower-switcher,
.font-switcher {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 16px 42px rgba(33, 30, 26, 0.18);
  backdrop-filter: blur(18px);
}

.flower-switcher,
.font-switcher {
  min-height: 44px;
}

.version-switcher span,
.flower-switcher span,
.font-switcher span {
  padding: 0 8px 0 10px;
  color: #4f5f53;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.version-switcher button,
.flower-switcher button,
.font-switcher button {
  flex: 1 1 70px;
  min-width: 64px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: #4f5f53;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.version-switcher button:hover,
.flower-switcher button:hover,
.font-switcher button:hover {
  transform: translateY(-1px);
}

body[data-theme="botanica"] .version-switcher button[data-theme-button="botanica"],
body[data-theme="nocturna"] .version-switcher button[data-theme-button="nocturna"],
body[data-theme="editorial"] .version-switcher button[data-theme-button="editorial"],
body[data-theme="sobria"] .version-switcher button[data-theme-button="sobria"],
body[data-theme="cine"] .version-switcher button[data-theme-button="cine"],
body[data-theme="atelier"] .version-switcher button[data-theme-button="atelier"],
body[data-flower="greenvelope"] .flower-switcher button[data-flower-button="greenvelope"],
body[data-flower="acuarela"] .flower-switcher button[data-flower-button="acuarela"],
body[data-flower="eucalipto"] .flower-switcher button[data-flower-button="eucalipto"],
body[data-flower="dorado"] .flower-switcher button[data-flower-button="dorado"],
body[data-flower="marfil"] .flower-switcher button[data-flower-button="marfil"],
body[data-flower="atelier"] .flower-switcher button[data-flower-button="atelier"],
body[data-font="clasica"] .font-switcher button[data-font-button="clasica"],
body[data-font="romantica"] .font-switcher button[data-font-button="romantica"],
body[data-font="editorial"] .font-switcher button[data-font-button="editorial"],
body[data-font="real"] .font-switcher button[data-font-button="real"],
body[data-font="clasica-real"] .font-switcher button[data-font-button="clasica-real"] {
  color: #fffdf8;
  background: #5d725f;
  box-shadow: 0 10px 22px rgba(68, 83, 69, 0.24);
}

.invitation {
  width: min(100%, 490px);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: clamp(28px, 7vw, 42px) clamp(22px, 6vw, 42px);
  isolation: isolate;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(244px, 57vw, 330px);
  padding-bottom: clamp(72px, 14vw, 96px);
  color: var(--white);
  background: #5d6763;
}

body[data-controls="closed"] .hero {
  padding-top: clamp(104px, 23vw, 132px);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--flow-bg));
  pointer-events: none;
  content: "";
  z-index: -1;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.9) brightness(0.9);
  z-index: -3;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(21, 24, 22, 0.62), rgba(21, 24, 22, 0.16) 44%, rgba(21, 24, 22, 0.76)),
    linear-gradient(90deg, rgba(56, 67, 58, 0.28), rgba(56, 67, 58, 0.06));
}

.hero__top {
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.eyebrow,
.letter-title,
.section-kicker {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.script-title,
.signature {
  margin: 0.18em 0 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 12vw, 4.9rem);
  font-weight: 400;
  line-height: 0.92;
}

.sound-button,
.spotify-button {
  align-items: center;
  align-self: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.spotify-button {
  display: inline-flex;
  margin: clamp(18px, 5vw, 30px) auto auto;
  text-decoration: none;
}

.spotify-button[hidden],
.spotify-card[hidden] {
  display: none;
}

.sound-button:not([hidden]) {
  display: inline-flex;
}

.sound-button__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.9rem;
}

.hero__date {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 16px);
  align-items: end;
  width: 100%;
  margin-top: auto;
}

.date-card {
  position: relative;
  height: clamp(178px, 42vw, 228px);
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.date-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.date-card:nth-child(1) img {
  object-position: 42% center;
}

.date-card:nth-child(2) img {
  object-position: 51% center;
}

.date-card:nth-child(3) img {
  object-position: 40% center;
}

.date-card span {
  position: absolute;
  right: 0;
  bottom: -28px;
  left: 0;
  color: var(--white);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(3rem, 14vw, 4.7rem);
  font-weight: 400;
  line-height: 0.8;
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.44);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: grid;
  width: 28px;
  height: 38px;
  translate: -50% 0;
  place-items: center;
  text-decoration: none;
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  rotate: 45deg;
  animation: cue 1.7s infinite;
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.25;
    translate: 0 -5px;
  }

  50% {
    opacity: 1;
    translate: 0 5px;
  }
}

.paper {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(166, 144, 77, 0.08), transparent 16rem),
    radial-gradient(circle at 84% 68%, rgba(93, 114, 95, 0.1), transparent 14rem),
    linear-gradient(rgba(255, 253, 248, 0.54), rgba(255, 253, 248, 0.54)),
    repeating-radial-gradient(circle at 30% 20%, rgba(40, 35, 28, 0.08) 0 1px, transparent 1px 16px),
    var(--paper);
}

.monogram {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: 0 auto clamp(34px, 7vw, 54px);
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border: 1px solid rgba(166, 144, 77, 0.56);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.86);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.76),
    0 12px 34px rgba(77, 67, 50, 0.1);
  color: var(--plum);
  font-size: 1.78rem;
  line-height: 1;
}

.monogram::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(166, 144, 77, 0.18);
  border-radius: inherit;
  content: "";
}

.monogram em {
  position: absolute;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 2.7rem;
  font-style: normal;
}

.monogram--small {
  width: 98px;
  height: 98px;
  margin-bottom: clamp(34px, 8vw, 58px);
  font-size: 1.56rem;
}

.letter-title {
  width: 100%;
  color: var(--ink);
}

.letter-title--full {
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.7;
}

.bible-verse {
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
  letter-spacing: 0.08em;
  text-transform: none;
}

.bible-verse span {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
}

.paper h2,
.timeline h2,
.gallery h2 {
  margin: 0.25em 0 0.72em;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.8rem, 15vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
}

#invitacion h2 {
  white-space: nowrap;
}

#detalles h2 {
  font-size: clamp(2.85rem, 10.8vw, 4rem);
  max-width: 380px;
  margin-right: auto;
  margin-left: auto;
}

#confirmacion h2 {
  font-size: clamp(2.35rem, 9vw, 3.5rem);
  line-height: 1.08;
}

.invitation-copy,
.rsvp-copy {
  max-width: 310px;
  margin: 0 auto 1.15em;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(0.82rem, 2.9vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.6;
  text-transform: uppercase;
}

.invitation-copy--wide {
  max-width: 335px;
}

.detail-photo {
  width: min(100%, 310px);
  margin: clamp(18px, 5vw, 28px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(166, 144, 77, 0.24);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 16px 34px rgba(77, 67, 50, 0.12);
}

.detail-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.countdown-block {
  width: 100%;
  margin-top: clamp(34px, 8vw, 58px);
}

.countdown-block p {
  margin: 0 0 15px;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 1.5;
  text-transform: uppercase;
}

.countdown-block span {
  color: var(--ink);
  font-family: "Great Vibes", cursive;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  color: var(--muted);
}

.spotify-card {
  width: min(100%, 340px);
  margin: clamp(24px, 7vw, 42px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(166, 144, 77, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: 0 16px 36px rgba(77, 67, 50, 0.12);
}

.spotify-card iframe {
  display: block;
  border: 0;
}

.countdown div {
  min-width: 0;
}

.countdown strong {
  display: block;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 6px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-line {
  display: grid;
  width: min(100%, 430px);
  margin: clamp(34px, 8vw, 52px) auto;
  grid-template-columns: 1fr 112px 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--font-caps);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.date-line > span {
  font-size: clamp(0.88rem, 2.8vw, 1rem);
  font-weight: 900;
  text-shadow: 0.4px 0 currentColor;
}

.date-line > span[data-year] {
  font-size: clamp(1.05rem, 3.2vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.26em;
}

.date-line strong {
  display: grid;
  min-height: 88px;
  place-items: center;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-weight: 900;
}

.date-line small {
  font-size: clamp(0.7rem, 2.2vw, 0.82rem);
  font-weight: 900;
  text-shadow: 0.4px 0 currentColor;
}

.date-line b {
  font-size: clamp(1.45rem, 4.8vw, 1.8rem);
  font-weight: 900;
  text-shadow: 0.45px 0 currentColor;
}

.floral-divider {
  display: flex;
  width: min(72%, 270px);
  height: 54px;
  margin: 0 auto clamp(28px, 7vw, 42px);
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.floral-divider span {
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.72;
}

.floral-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.floral-divider i {
  width: 100px;
  height: 45px;
  background:
    radial-gradient(ellipse at 28% 56%, #8fb5aa 0 12px, transparent 13px),
    radial-gradient(ellipse at 44% 38%, #587a73 0 15px, transparent 16px),
    radial-gradient(ellipse at 62% 55%, #b6c9a2 0 14px, transparent 15px),
    radial-gradient(ellipse at 74% 34%, #789a72 0 12px, transparent 13px);
  filter: blur(0.1px);
}

.floral-divider--compact {
  margin-top: 18px;
  margin-bottom: 28px;
}

.venue {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.venue p {
  max-width: 310px;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.church {
  display: block;
  width: clamp(150px, 38vw, 190px);
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}

.primary-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  color: #fffdf8;
  background: var(--sage);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: 0 12px 28px rgba(67, 83, 68, 0.25);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-link:hover {
  background: #4e624f;
  transform: translateY(-1px);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: #fffdf8;
}

.timeline .section-kicker,
.gallery .section-kicker {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.timeline h2 {
  margin-top: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 12vw, 4.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.98;
  text-transform: uppercase;
}

.timeline__rail {
  position: relative;
  display: grid;
  width: min(78%, 292px);
  margin-top: 14px;
  padding: 30px 30px 32px;
  gap: 18px;
  border: 1px solid rgba(182, 142, 61, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 245, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 58px rgba(71, 75, 62, 0.11);
  z-index: 1;
}

.timeline__rail article {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.timeline__rail article + article::before {
  display: block;
  width: 46px;
  height: 1px;
  margin: -3px 0 8px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.timeline__rail h3 {
  margin: 2px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.timeline__rail time {
  color: color-mix(in srgb, var(--ink) 82%, var(--gold));
  font-size: 0.76rem;
  font-weight: 700;
}

.timeline-icon {
  display: block;
  width: clamp(66px, 18vw, 84px);
  height: clamp(66px, 18vw, 84px);
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(80, 69, 45, 0.12));
}

.timeline-icon--rings {
  width: clamp(76px, 20vw, 94px);
}

.timeline-icon--dinner {
  width: clamp(72px, 19vw, 90px);
}

.signature {
  margin-top: clamp(24px, 7vw, 38px);
  color: var(--gold);
  font-size: clamp(2.4rem, 10vw, 3.3rem);
  line-height: 0.86;
}

.timeline__flowers {
  position: absolute;
  top: 13%;
  bottom: 8%;
  width: 42%;
  opacity: 0.72;
  z-index: 0;
}

.timeline__flowers--left {
  left: -19%;
  background:
    radial-gradient(ellipse at 64% 10%, rgba(64, 88, 66, 0.42) 0 21px, transparent 22px),
    radial-gradient(ellipse at 48% 20%, rgba(116, 141, 99, 0.45) 0 26px, transparent 27px),
    radial-gradient(ellipse at 70% 34%, rgba(84, 107, 75, 0.45) 0 27px, transparent 28px),
    radial-gradient(ellipse at 48% 48%, rgba(137, 158, 110, 0.44) 0 31px, transparent 32px),
    radial-gradient(ellipse at 72% 68%, rgba(84, 107, 75, 0.45) 0 31px, transparent 32px),
    radial-gradient(ellipse at 35% 88%, rgba(72, 93, 67, 0.38) 0 35px, transparent 36px);
}

.timeline__flowers--right {
  right: -19%;
  background:
    radial-gradient(ellipse at 34% 10%, rgba(64, 88, 66, 0.42) 0 21px, transparent 22px),
    radial-gradient(ellipse at 52% 25%, rgba(139, 154, 84, 0.48) 0 26px, transparent 27px),
    radial-gradient(ellipse at 30% 40%, rgba(84, 107, 75, 0.45) 0 27px, transparent 28px),
    radial-gradient(ellipse at 54% 56%, rgba(137, 158, 110, 0.44) 0 31px, transparent 32px),
    radial-gradient(ellipse at 28% 75%, rgba(84, 107, 75, 0.45) 0 31px, transparent 32px),
    radial-gradient(ellipse at 65% 93%, rgba(72, 93, 67, 0.38) 0 35px, transparent 36px);
}

.dress-code {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #435247;
  background: #fbf5ee;
  text-align: center;
}

.dress-code__florals {
  position: absolute;
  left: 50%;
  width: 130%;
  height: 180px;
  background:
    var(--floral-corner) 5% 42% / 210px auto no-repeat,
    var(--floral-side) 30% 35% / 190px auto no-repeat,
    var(--floral-corner) 70% 40% / 205px auto no-repeat,
    var(--floral-side) 96% 44% / 190px auto no-repeat;
  opacity: max(0.42, var(--floral-opacity, 0.72));
  pointer-events: none;
  transform: translateX(-50%);
}

.dress-code__florals--top {
  top: -42px;
}

.dress-code__florals--bottom {
  bottom: -42px;
  transform: translateX(-50%) scaleY(-1);
}

.dress-code h2 {
  margin: clamp(74px, 16vw, 112px) 0 clamp(28px, 8vw, 44px);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.95rem, 7vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.dress-code__grid {
  display: grid;
  --dress-icon-area: clamp(188px, 43vw, 208px);
  --dress-icon-text-gap: clamp(16px, 3.8vw, 22px);
  --dress-copy-gap: clamp(6px, 1.6vw, 8px);
  width: min(100%, 456px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.dress-code__grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 0 clamp(10px, 3vw, 16px) clamp(12px, 3vw, 16px);
}

.dress-code__grid article .dress-icon {
  flex-shrink: 0;
  margin-bottom: var(--dress-icon-text-gap);
}

.dress-code__grid article + article {
  border-left: 1px solid rgba(67, 82, 71, 0.68);
  align-self: stretch;
}

.dress-icon {
  display: block;
  width: var(--dress-icon-width, clamp(112px, 29vw, 136px));
  height: var(--dress-icon-area);
  color: rgba(67, 82, 71, 0.72);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  object-fit: contain;
  object-position: center top;
  opacity: 0.82;
}

.dress-icon--gown {
  --dress-icon-width: clamp(118px, 31vw, 142px);
  transform: translate(clamp(-24px, -5vw, -18px), clamp(-32px, -6.6vw, -24px)) scale(1.34);
  transform-origin: center top;
}

.dress-icon--suit {
  --dress-icon-width: clamp(116px, 30vw, 140px);
}

.dress-code h3 {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1rem, 3.2vw, 1.08rem);
  font-weight: 800;
  line-height: 1;
}

.dress-code p {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.dress-code__grid article p {
  margin-top: var(--dress-copy-gap);
  font-size: clamp(0.78rem, 2.9vw, 0.94rem);
  letter-spacing: 0.1em;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: nowrap;
}

.dress-code__note {
  margin-top: clamp(58px, 14vw, 84px) !important;
  max-width: 330px;
  color: rgba(67, 82, 71, 0.82);
  font-size: 0.86rem !important;
  letter-spacing: 0.03em;
}

.dress-code__signature {
  margin-top: clamp(60px, 15vw, 92px) !important;
  color: var(--gold);
  font-family: var(--font-script) !important;
  font-size: clamp(2rem, 8.5vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-transform: none;
}

.dress-code__signature span {
  position: relative;
  display: inline-block;
  margin: 0 0.12em;
  color: inherit;
  font-family: inherit;
  font-size: 0.82em;
  vertical-align: 0.02em;
}

.gallery {
  display: flex;
  min-height: auto;
  flex-direction: column;
  padding-top: 58px;
  padding-bottom: 70px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(235, 239, 230, 0.92)),
    var(--white);
}

.gallery h2 {
  margin-bottom: 26px;
}

.gallery .section-kicker {
  margin-bottom: 28px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery figure {
  height: clamp(210px, 61vw, 290px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 144, 77, 0.24);
  background: #e9e5db;
}

.gallery figure:nth-child(even) {
  margin-top: 30px;
}

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

.gallery figure:nth-child(1) img {
  object-position: 46% center;
}

.gallery figure:nth-child(2) img {
  object-position: 42% center;
}

.gallery figure:nth-child(3) img {
  object-position: 48% center;
}

.gallery figure:nth-child(4) img {
  object-position: 45% center;
}

.rsvp-copy {
  max-width: 330px;
  margin-top: 12px;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  letter-spacing: 0.2em;
}

.gift-note {
  margin: clamp(82px, 20vw, 120px) 0 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 13vw, 4.4rem);
  line-height: 0.95;
}

.gift-envelope {
  width: min(78%, 330px);
  margin: clamp(14px, 4vw, 24px) auto 0;
  opacity: 0.9;
  filter: drop-shadow(0 16px 30px rgba(55, 47, 37, 0.12));
}

.botanical {
  position: absolute;
  width: 160px;
  height: 145px;
  opacity: 0.58;
  pointer-events: none;
  z-index: -1;
}

.botanical::before,
.botanical::after {
  position: absolute;
  content: "";
}

.botanical::before {
  inset: 36px 12px 28px 16px;
  border-top: 2px solid rgba(94, 122, 101, 0.45);
  border-radius: 50%;
  rotate: -26deg;
}

.botanical::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 26% 76%, rgba(90, 122, 103, 0.48) 0 12px, transparent 13px),
    radial-gradient(ellipse at 42% 56%, rgba(122, 151, 119, 0.52) 0 14px, transparent 15px),
    radial-gradient(ellipse at 60% 43%, rgba(82, 110, 98, 0.48) 0 12px, transparent 13px),
    radial-gradient(ellipse at 76% 27%, rgba(143, 161, 131, 0.5) 0 13px, transparent 14px),
    radial-gradient(circle at 74% 70%, rgba(69, 82, 72, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 61%, rgba(69, 82, 72, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 87% 76%, rgba(69, 82, 72, 0.36) 0 2px, transparent 3px);
  filter: blur(0.1px);
}

.botanical--tl {
  top: 0;
  left: -12px;
}

.botanical--tr {
  top: 0;
  right: -12px;
  transform: scaleX(-1);
}

.botanical--bl {
  bottom: 0;
  left: -12px;
  transform: scaleY(-1);
}

.botanical--br {
  right: -12px;
  bottom: 0;
  transform: scale(-1);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

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

body[data-theme="nocturna"] {
  --ink: #f7efe3;
  --muted: #c8ba92;
  --paper: #161b1b;
  --paper-deep: #202827;
  --sage: #c0a260;
  --sage-light: #d2c297;
  --gold: #d5b76a;
  --plum: #eadfca;
  --blue: #86a6c6;
  --white: #fff9ee;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --floral-corner: url("assets/floral-ivory.svg");
  --floral-side: url("assets/floral-ivory.svg");
  --floral-opacity: 0.34;
  background:
    radial-gradient(circle at 70% 0%, rgba(213, 183, 106, 0.18), transparent 24rem),
    linear-gradient(145deg, #0e1212, #1d2423 48%, #0f1414);
}

body[data-theme="nocturna"] .version-switcher,
body[data-theme="nocturna"] .flower-switcher {
  border-color: rgba(213, 183, 106, 0.28);
  background: rgba(17, 22, 22, 0.82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

body[data-theme="nocturna"] .version-switcher span,
body[data-theme="nocturna"] .version-switcher button,
body[data-theme="nocturna"] .flower-switcher span,
body[data-theme="nocturna"] .flower-switcher button {
  color: #f5ead4;
}

body[data-theme="nocturna"] .version-switcher button[data-theme-button="nocturna"],
body[data-theme="nocturna"] .flower-switcher button[aria-pressed="true"] {
  color: #151918;
  background: #d5b76a;
}

body[data-theme="nocturna"] .invitation {
  background: #111615;
  border-color: rgba(213, 183, 106, 0.2);
}

body[data-theme="nocturna"] .hero {
  background: #101514;
}

body[data-theme="nocturna"] .hero__image {
  object-position: 56% center;
  filter: saturate(0.72) contrast(1.06) brightness(0.68);
  transform: scale(1.03);
}

body[data-theme="nocturna"] .hero__shade {
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 183, 106, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(7, 9, 9, 0.78), rgba(7, 9, 9, 0.26) 42%, rgba(7, 9, 9, 0.88)),
    linear-gradient(90deg, rgba(9, 18, 20, 0.58), rgba(9, 18, 20, 0.14));
}

body[data-theme="nocturna"] .hero__top {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.72);
}

body[data-theme="nocturna"] .date-card img {
  border-color: rgba(213, 183, 106, 0.44);
  filter: brightness(0.92) saturate(0.82);
}

body[data-theme="nocturna"] .date-card span {
  color: #f5d883;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.68);
}

body[data-theme="nocturna"] .paper {
  background:
    radial-gradient(circle at 16% 14%, rgba(213, 183, 106, 0.13), transparent 13rem),
    radial-gradient(circle at 88% 72%, rgba(121, 150, 141, 0.12), transparent 14rem),
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 249, 238, 0.06) 0 1px, transparent 1px 17px),
    linear-gradient(145deg, #171d1d, #111616);
}

body[data-theme="nocturna"] .timeline,
body[data-theme="nocturna"] .gallery {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 183, 106, 0.12), transparent 18rem),
    linear-gradient(180deg, #151a1a, #0f1414);
}

body[data-theme="nocturna"] .timeline__rail {
  border: 1px solid rgba(213, 183, 106, 0.26);
  background: rgba(18, 23, 23, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body[data-theme="nocturna"] .monogram {
  border-color: rgba(213, 183, 106, 0.62);
  background: rgba(20, 25, 25, 0.78);
  box-shadow:
    inset 0 0 0 7px rgba(255, 249, 238, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.32);
}

body[data-theme="nocturna"] .date-line strong {
  border-color: rgba(247, 239, 227, 0.55);
}

body[data-theme="nocturna"] .primary-link {
  color: #151918;
  background: #d5b76a;
  border-color: rgba(255, 249, 238, 0.24);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

body[data-theme="nocturna"] .primary-link:hover {
  background: #e0c77f;
}

body[data-theme="nocturna"] .spotify-card,
body[data-theme="cine"] .spotify-card {
  border-color: rgba(216, 183, 101, 0.28);
  background: rgba(12, 13, 14, 0.64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

body[data-theme="nocturna"] .gallery figure {
  border-color: rgba(213, 183, 106, 0.36);
  background: #1f2726;
}

body[data-theme="nocturna"] .paper {
  background:
    radial-gradient(circle at 16% 14%, rgba(213, 183, 106, 0.13), transparent 13rem),
    linear-gradient(180deg, rgba(17, 22, 22, 0.88), rgba(17, 22, 22, 0.82)),
    url("assets/photo-6-bw-smile.webp") center / cover;
}

body[data-theme="nocturna"] #detalles {
  background:
    radial-gradient(circle at 50% 24%, rgba(213, 183, 106, 0.13), transparent 13rem),
    linear-gradient(180deg, rgba(17, 22, 22, 0.88), rgba(17, 22, 22, 0.8)),
    url("assets/photo-8-bw-embrace.webp") 46% center / cover;
}

body[data-theme="nocturna"] #confirmacion {
  background:
    radial-gradient(circle at 50% 70%, rgba(213, 183, 106, 0.13), transparent 13rem),
    linear-gradient(180deg, rgba(17, 22, 22, 0.88), rgba(17, 22, 22, 0.8)),
    url("assets/photo-9-bw-close.webp") 48% center / cover;
}

body[data-theme="nocturna"] .detail-photo,
body[data-theme="cine"] .detail-photo {
  border-color: rgba(216, 183, 101, 0.3);
  background: rgba(12, 13, 14, 0.56);
}

body[data-theme="nocturna"] .botanical {
  opacity: 0.34;
}

body[data-theme="editorial"] {
  --ink: #1f1b16;
  --muted: #746b59;
  --paper: #fbf8f0;
  --paper-deep: #eee6d6;
  --sage: #486b68;
  --sage-light: #aebd9f;
  --gold: #b49347;
  --plum: #283746;
  --blue: #87b5d9;
  --white: #fffdf8;
  --shadow: 0 24px 68px rgba(54, 48, 38, 0.2);
  --floral-corner: url("assets/floral-gold-line.svg");
  --floral-side: url("assets/floral-gold-line.svg");
  --floral-opacity: 0.42;
  background:
    radial-gradient(circle at 12% 0%, rgba(135, 181, 217, 0.2), transparent 24rem),
    linear-gradient(135deg, #eef3f6, #fffaf0 52%, #edf0e7);
}

body[data-theme="editorial"] .version-switcher,
body[data-theme="editorial"] .flower-switcher {
  border-color: rgba(180, 147, 71, 0.24);
  background: rgba(255, 253, 248, 0.86);
}

body[data-theme="editorial"] .version-switcher span,
body[data-theme="editorial"] .version-switcher button,
body[data-theme="editorial"] .flower-switcher span,
body[data-theme="editorial"] .flower-switcher button {
  color: #51442e;
}

body[data-theme="editorial"] .version-switcher button[data-theme-button="editorial"],
body[data-theme="editorial"] .flower-switcher button[aria-pressed="true"] {
  color: #fffdf8;
  background: #b49347;
}

body[data-theme="editorial"] .hero {
  color: #241f19;
  background: #fbf8f0;
}

body[data-theme="editorial"] .hero__image {
  filter: saturate(0.72) brightness(1.04);
}

body[data-theme="editorial"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.74), rgba(255, 253, 248, 0.14) 42%, rgba(255, 253, 248, 0.88)),
    radial-gradient(circle at 50% 12%, rgba(180, 147, 71, 0.18), transparent 18rem);
}

body[data-theme="editorial"] .hero__top {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.72);
}

body[data-theme="editorial"] .eyebrow {
  color: #554936;
}

body[data-theme="editorial"] .script-title {
  color: #2e271d;
}

body[data-theme="editorial"] .date-card {
  filter: drop-shadow(0 18px 30px rgba(72, 62, 46, 0.22));
}

body[data-theme="editorial"] .date-card img {
  border: 7px solid #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(180, 147, 71, 0.18);
}

body[data-theme="editorial"] .date-card span {
  color: #b49347;
  text-shadow: 0 3px 16px rgba(255, 253, 248, 0.8);
}

body[data-theme="editorial"] .paper {
  box-shadow: inset 0 0 0 18px rgba(255, 253, 248, 0.34);
  background:
    linear-gradient(90deg, rgba(180, 147, 71, 0.16) 0 1px, transparent 1px calc(100% - 1px), rgba(180, 147, 71, 0.16) calc(100% - 1px)),
    radial-gradient(circle at 18% 22%, rgba(135, 181, 217, 0.13), transparent 16rem),
    radial-gradient(circle at 84% 68%, rgba(180, 147, 71, 0.09), transparent 14rem),
    repeating-radial-gradient(circle at 30% 20%, rgba(40, 35, 28, 0.055) 0 1px, transparent 1px 18px),
    #fbf8f0;
}

body[data-theme="editorial"] .paper h2,
body[data-theme="editorial"] .gallery h2 {
  color: #11100e;
}

body[data-theme="editorial"] .monogram {
  border-color: rgba(180, 147, 71, 0.62);
  background: rgba(255, 253, 248, 0.92);
}

body[data-theme="editorial"] .timeline {
  background:
    linear-gradient(90deg, rgba(180, 147, 71, 0.12), transparent 18%, transparent 82%, rgba(180, 147, 71, 0.12)),
    #fffdf8;
}

body[data-theme="editorial"] .timeline__rail {
  border: 1px solid rgba(180, 147, 71, 0.22);
  background: rgba(255, 253, 248, 0.94);
}

body[data-theme="editorial"] .gallery {
  background:
    linear-gradient(180deg, #fffdf8, #eef3f6);
}

body[data-theme="editorial"] .gallery figure {
  border: 7px solid #fffdf8;
  box-shadow: 0 16px 38px rgba(54, 48, 38, 0.14);
}

body[data-theme="editorial"] .spotify-card,
body[data-theme="atelier"] .spotify-card {
  border-color: rgba(182, 142, 61, 0.24);
  background: rgba(255, 253, 248, 0.84);
}

body[data-theme="editorial"] #confirmacion {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(251, 248, 240, 0.92)),
    url("assets/photo-7-rings.webp") center / cover;
}

/* Version 4: sobria, limpia y ceremonial */
body[data-theme="sobria"] {
  --ink: #191815;
  --muted: #6b6255;
  --paper: #f4efe6;
  --paper-deep: #e5dccd;
  --sage: #42584f;
  --sage-light: #9eaa9b;
  --gold: #aa9056;
  --plum: #4b3c48;
  --blue: #a9bdd1;
  --white: #fffdf8;
  --shadow: 0 24px 64px rgba(55, 47, 37, 0.18);
  --floral-corner: url("assets/floral-sage.svg");
  --floral-side: url("assets/floral-sage.svg");
  --floral-opacity: 0.46;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.35)),
    repeating-linear-gradient(90deg, rgba(61, 75, 68, 0.045) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #ece7df, #fbf7ef 48%, #e5ebe5);
}

body[data-theme="sobria"] .version-switcher,
body[data-theme="sobria"] .flower-switcher {
  border-color: rgba(66, 88, 79, 0.22);
  background: rgba(255, 253, 248, 0.86);
}

body[data-theme="sobria"] .hero__image {
  filter: saturate(0.72) brightness(0.86) contrast(1.02);
}

body[data-theme="sobria"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(28, 31, 29, 0.68), rgba(28, 31, 29, 0.14) 45%, rgba(28, 31, 29, 0.82)),
    linear-gradient(90deg, rgba(66, 88, 79, 0.42), rgba(66, 88, 79, 0.05));
}

body[data-theme="sobria"] .paper {
  background:
    linear-gradient(90deg, rgba(170, 144, 86, 0.2) 0 1px, transparent 1px calc(100% - 1px), rgba(170, 144, 86, 0.2) calc(100% - 1px)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(244, 239, 230, 0.88)),
    repeating-linear-gradient(0deg, rgba(32, 29, 24, 0.035) 0 1px, transparent 1px 12px),
    #f4efe6;
}

body[data-theme="sobria"] #detalles {
  background:
    radial-gradient(circle at 50% 23%, rgba(170, 144, 86, 0.16), transparent 13rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(234, 227, 215, 0.9)),
    #f4efe6;
}

body[data-theme="sobria"] #confirmacion {
  background:
    radial-gradient(circle at 50% 70%, rgba(66, 88, 79, 0.12), transparent 14rem),
    linear-gradient(180deg, #f8f4ec, #efe7da);
}

body[data-theme="sobria"] .timeline {
  background:
    linear-gradient(90deg, rgba(66, 88, 79, 0.12), transparent 22%, transparent 78%, rgba(66, 88, 79, 0.12)),
    linear-gradient(180deg, #fffdf8, #f0eadf);
}

body[data-theme="sobria"] .gallery {
  background:
    linear-gradient(180deg, #f8f5ee, #e9efe9);
}

body[data-theme="sobria"] .botanical {
  opacity: 0.2;
  filter: saturate(0.55);
}

/* Version 5: cinematografica, con fondos fotograficos por seccion */
body[data-theme="cine"] {
  --ink: #fbf3e8;
  --muted: #d8c591;
  --paper: #101113;
  --paper-deep: #1a1d1f;
  --sage: #c5a15a;
  --sage-light: #d7c492;
  --gold: #d8b765;
  --plum: #efe2cf;
  --blue: #8aa9ca;
  --white: #fffaf0;
  --shadow: 0 28px 76px rgba(0, 0, 0, 0.55);
  --floral-corner: url("assets/floral-ivory.svg");
  --floral-side: url("assets/floral-ivory.svg");
  --floral-opacity: 0.22;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 183, 101, 0.18), transparent 26rem),
    linear-gradient(145deg, #08090a, #151719 46%, #090a0b);
}

body[data-theme="cine"] .version-switcher,
body[data-theme="cine"] .flower-switcher {
  border-color: rgba(216, 183, 101, 0.28);
  background: rgba(11, 12, 13, 0.82);
}

body[data-theme="cine"] .version-switcher span,
body[data-theme="cine"] .version-switcher button,
body[data-theme="cine"] .flower-switcher span,
body[data-theme="cine"] .flower-switcher button {
  color: #f8ead1;
}

body[data-theme="cine"] .version-switcher button[data-theme-button="cine"],
body[data-theme="cine"] .flower-switcher button[aria-pressed="true"] {
  color: #0d0e0f;
  background: #d8b765;
}

body[data-theme="cine"] .hero__image {
  object-position: 55% center;
  filter: saturate(0.68) contrast(1.1) brightness(0.62);
  transform: scale(1.04);
}

body[data-theme="cine"] .hero__shade {
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 183, 101, 0.2), transparent 15rem),
    linear-gradient(180deg, rgba(5, 6, 7, 0.84), rgba(5, 6, 7, 0.22) 42%, rgba(5, 6, 7, 0.92));
}

body[data-theme="cine"] .paper {
  color: #fbf3e8;
  background:
    linear-gradient(180deg, rgba(7, 8, 9, 0.84), rgba(7, 8, 9, 0.78)),
    url("assets/photo-5-bw-beach.webp") center / cover;
}

body[data-theme="cine"] #detalles {
  background:
    linear-gradient(180deg, rgba(7, 8, 9, 0.86), rgba(7, 8, 9, 0.72)),
    url("assets/photo-8-bw-embrace.webp") 46% center / cover;
}

body[data-theme="cine"] #confirmacion {
  background:
    linear-gradient(180deg, rgba(7, 8, 9, 0.86), rgba(7, 8, 9, 0.74)),
    url("assets/photo-9-bw-close.webp") 48% center / cover;
}

body[data-theme="cine"] .timeline {
  color: #fbf3e8;
  background:
    linear-gradient(180deg, rgba(7, 8, 9, 0.88), rgba(7, 8, 9, 0.82)),
    url("assets/photo-7-rings.webp") center / cover;
}

body[data-theme="cine"] .gallery {
  color: #fbf3e8;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 183, 101, 0.14), transparent 17rem),
    #101113;
}

body[data-theme="cine"] .monogram,
body[data-theme="cine"] .timeline__rail {
  border-color: rgba(216, 183, 101, 0.34);
  background: rgba(12, 13, 14, 0.68);
  backdrop-filter: blur(12px);
}

body[data-theme="cine"] .invitation-copy,
body[data-theme="cine"] .rsvp-copy,
body[data-theme="cine"] .letter-title,
body[data-theme="cine"] .countdown-block p,
body[data-theme="cine"] .countdown-block span {
  color: #fbf3e8;
}

body[data-theme="nocturna"] .gift-envelope,
body[data-theme="cine"] .gift-envelope {
  opacity: 0.78;
  filter:
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.36))
    brightness(1.08);
}

body[data-theme="cine"] .countdown,
body[data-theme="cine"] .timeline h2,
body[data-theme="cine"] .signature,
body[data-theme="cine"] .date-card span {
  color: #d8b765;
}

body[data-theme="cine"] .date-line strong {
  border-color: rgba(251, 243, 232, 0.6);
}

body[data-theme="cine"] .primary-link {
  color: #0d0e0f;
  background: #d8b765;
}

body[data-theme="cine"] .botanical,
body[data-theme="cine"] .timeline__flowers {
  display: none;
}

body[data-theme="cine"] .gallery figure {
  border-color: rgba(216, 183, 101, 0.32);
  background: #171a1c;
}

/* Version 6: atelier editorial, clara y dorada */
body[data-theme="atelier"] {
  --ink: #201a14;
  --muted: #74664e;
  --paper: #fbf6ea;
  --paper-deep: #eadfc8;
  --sage: #315f63;
  --sage-light: #a9c0b4;
  --gold: #b68e3d;
  --plum: #2d3948;
  --blue: #9fc1db;
  --white: #fffdf8;
  --shadow: 0 26px 70px rgba(58, 47, 29, 0.2);
  --floral-corner: url("assets/floral-atelier.svg");
  --floral-side: url("assets/floral-atelier.svg");
  --floral-opacity: 0.56;
  background:
    radial-gradient(circle at 12% 0%, rgba(49, 95, 99, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 14%, rgba(182, 142, 61, 0.2), transparent 20rem),
    linear-gradient(135deg, #edf3f4, #fbf6ea 48%, #f6ecd7);
}

body[data-theme="atelier"] .version-switcher,
body[data-theme="atelier"] .flower-switcher {
  border-color: rgba(182, 142, 61, 0.28);
  background: rgba(255, 253, 248, 0.9);
}

body[data-theme="atelier"] .version-switcher span,
body[data-theme="atelier"] .version-switcher button,
body[data-theme="atelier"] .flower-switcher span,
body[data-theme="atelier"] .flower-switcher button {
  color: #5a4726;
}

body[data-theme="atelier"] .version-switcher button[data-theme-button="atelier"],
body[data-theme="atelier"] .flower-switcher button[aria-pressed="true"] {
  color: #fffdf8;
  background: #b68e3d;
}

body[data-theme="atelier"] .hero {
  color: #201a14;
  background: #fbf6ea;
}

body[data-theme="atelier"] .hero__image {
  filter: saturate(0.7) brightness(1.05);
}

body[data-theme="atelier"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(251, 246, 234, 0.8), rgba(251, 246, 234, 0.16) 42%, rgba(251, 246, 234, 0.9)),
    linear-gradient(120deg, rgba(182, 142, 61, 0.18), transparent 45%, rgba(49, 95, 99, 0.16));
}

body[data-theme="atelier"] .eyebrow,
body[data-theme="atelier"] .script-title {
  color: #201a14;
  text-shadow: 0 2px 18px rgba(255, 253, 248, 0.82);
}

body[data-theme="atelier"] .paper {
  background:
    linear-gradient(135deg, rgba(182, 142, 61, 0.16) 0 16%, transparent 16% 100%),
    linear-gradient(315deg, rgba(49, 95, 99, 0.1) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 50% 18%, rgba(182, 142, 61, 0.12), transparent 13rem),
    #fbf6ea;
}

body[data-theme="atelier"] #detalles {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 253, 248, 0.82) 12% 88%, transparent 88%),
    linear-gradient(135deg, rgba(49, 95, 99, 0.14), transparent 38%),
    #f8f1e2;
}

body[data-theme="atelier"] #confirmacion {
  background:
    radial-gradient(circle at 50% 78%, rgba(49, 95, 99, 0.13), transparent 13rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(242, 230, 207, 0.9)),
    url("assets/photo-7-rings.webp") center / cover;
}

body[data-theme="atelier"] .timeline {
  background:
    linear-gradient(90deg, rgba(182, 142, 61, 0.14), transparent 18%, transparent 82%, rgba(49, 95, 99, 0.12)),
    #fffdf8;
}

body[data-theme="atelier"] .gallery {
  background:
    linear-gradient(135deg, #fffdf8 0 52%, #eaf1ef 52% 100%);
}

body[data-theme="atelier"] .date-card img,
body[data-theme="atelier"] .gallery figure {
  border: 8px solid #fffdf8;
  box-shadow: 0 18px 44px rgba(58, 47, 29, 0.16);
}

body[data-theme="atelier"] .date-card span,
body[data-theme="atelier"] .timeline h2,
body[data-theme="atelier"] .signature {
  color: #b68e3d;
}

body[data-theme="atelier"] .botanical {
  opacity: 0.14;
  filter: sepia(0.2) saturate(0.65);
}

.botanical {
  width: var(--floral-size, 190px);
  height: var(--floral-size, 190px);
  background: var(--floral-corner) center / contain no-repeat;
  opacity: var(--floral-opacity, 0.82);
  filter: none;
}

.botanical::before,
.botanical::after {
  display: none;
}

.botanical--tl {
  top: 10px;
  left: -18px;
}

.botanical--tr {
  top: 10px;
  right: -18px;
}

.botanical--bl {
  bottom: 6px;
  left: -18px;
}

.botanical--br {
  right: -18px;
  bottom: 6px;
}

.timeline__flowers {
  background: var(--floral-side) center / contain no-repeat;
  opacity: var(--floral-opacity, 0.82);
  filter: none;
}

.timeline__flowers--right {
  transform: scaleX(-1);
}

body[data-theme="botanica"] {
  --floral-corner: url("assets/floral-watercolor.svg");
  --floral-side: url("assets/floral-watercolor.svg");
  --floral-opacity: 0.72;
}

body[data-theme="botanica"] .paper {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(247, 242, 233, 0.76)),
    repeating-linear-gradient(0deg, rgba(40, 35, 28, 0.035) 0 1px, transparent 1px 14px),
    var(--paper);
}

body[data-theme="botanica"] #invitacion .botanical--tl,
body[data-theme="botanica"] #confirmacion .botanical--tl {
  width: 235px;
  height: 215px;
}

body[data-theme="botanica"] #invitacion .botanical--br,
body[data-theme="botanica"] #confirmacion .botanical--br {
  width: 235px;
  height: 215px;
}

body[data-theme="editorial"] {
  --floral-corner: url("assets/floral-gold-line.svg");
  --floral-side: url("assets/floral-gold-line.svg");
  --floral-opacity: 0.5;
}

body[data-theme="editorial"] .botanical {
  width: 205px;
  height: 190px;
}

body[data-theme="nocturna"] {
  --floral-corner: url("assets/floral-ivory.svg");
  --floral-side: url("assets/floral-ivory.svg");
  --floral-opacity: 0.28;
}

body[data-theme="nocturna"] .botanical {
  opacity: var(--floral-opacity, 0.28);
  mix-blend-mode: screen;
}

body[data-theme="cine"] .botanical,
body[data-theme="cine"] .timeline__flowers {
  display: block;
  mix-blend-mode: screen;
}

body[data-theme="cine"] .botanical {
  opacity: 0.16;
}

body[data-theme="sobria"] .botanical {
  width: 215px;
  height: 205px;
  opacity: var(--floral-opacity, 0.46);
}

body[data-theme="atelier"] .botanical {
  width: 220px;
  height: 205px;
  opacity: var(--floral-opacity, 0.56);
}

body[data-theme="nocturna"] .dress-code,
body[data-theme="cine"] .dress-code {
  color: #efe3cf;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0.88)),
    url("assets/photo-1.webp") center / cover;
}

body[data-theme="nocturna"] .dress-icon,
body[data-theme="cine"] .dress-icon {
  color: rgba(239, 227, 207, 0.82);
  filter: invert(1) sepia(0.12) saturate(0.7) brightness(1.12);
  opacity: 0.86;
}

body[data-theme="nocturna"] .dress-code__grid article + article,
body[data-theme="cine"] .dress-code__grid article + article {
  border-left-color: rgba(239, 227, 207, 0.54);
}

body[data-theme="nocturna"] .dress-code__note,
body[data-theme="cine"] .dress-code__note {
  color: rgba(239, 227, 207, 0.86);
}

body[data-theme="editorial"] .dress-code,
body[data-theme="atelier"] .dress-code {
  color: #3d453d;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(251, 246, 234, 0.94)),
    linear-gradient(135deg, rgba(182, 142, 61, 0.1), transparent 48%, rgba(49, 95, 99, 0.08));
}

/* Continuous section system: one visual canvas after the hero, no hard floral cuts. */
:root {
  --flow-bg: #f7f2e9;
  --flow-veil: rgba(255, 253, 248, 0.58);
  --flow-top-fade: rgba(247, 242, 233, 0.94);
  --flow-bottom-fade: rgba(247, 242, 233, 0.84);
  --flow-hairline: rgba(166, 144, 77, 0.18);
  --flow-side-tint: rgba(93, 114, 95, 0.08);
  --flow-rail-image: var(--floral-side);
  --flow-rail-opacity: 0.11;
  --flow-rail-size: 205px;
  --flow-rail-blend: normal;
  --flow-texture:
    radial-gradient(circle at 50% 0%, rgba(166, 144, 77, 0.08), transparent 22rem),
    repeating-linear-gradient(0deg, rgba(40, 35, 28, 0.026) 0 1px, transparent 1px 15px);
}

body[data-theme="botanica"] {
  --flow-bg: #f7f2e9;
  --flow-veil: rgba(255, 253, 248, 0.62);
  --flow-top-fade: rgba(247, 242, 233, 0.95);
  --flow-bottom-fade: rgba(238, 231, 218, 0.82);
  --flow-hairline: rgba(166, 144, 77, 0.18);
  --flow-side-tint: rgba(93, 114, 95, 0.08);
  --flow-rail-image: url("assets/floral-watercolor.svg");
  --flow-rail-opacity: 0.12;
}

body[data-theme="sobria"] {
  --flow-bg: #f4efe6;
  --flow-veil: rgba(255, 253, 248, 0.54);
  --flow-top-fade: rgba(244, 239, 230, 0.95);
  --flow-bottom-fade: rgba(230, 223, 209, 0.82);
  --flow-hairline: rgba(66, 88, 79, 0.2);
  --flow-side-tint: rgba(66, 88, 79, 0.09);
  --flow-rail-image: url("assets/floral-sage.svg");
  --flow-rail-opacity: 0.12;
}

body[data-theme="editorial"] {
  --flow-bg: #fbf8f0;
  --flow-veil: rgba(255, 253, 248, 0.72);
  --flow-top-fade: rgba(251, 248, 240, 0.96);
  --flow-bottom-fade: rgba(238, 243, 246, 0.8);
  --flow-hairline: rgba(180, 147, 71, 0.2);
  --flow-side-tint: rgba(180, 147, 71, 0.08);
  --flow-rail-image: url("assets/floral-gold-line.svg");
  --flow-rail-opacity: 0.1;
}

body[data-theme="atelier"] {
  --flow-bg: #fbf6ea;
  --flow-veil: rgba(255, 253, 248, 0.68);
  --flow-top-fade: rgba(251, 246, 234, 0.96);
  --flow-bottom-fade: rgba(234, 241, 239, 0.78);
  --flow-hairline: rgba(182, 142, 61, 0.18);
  --flow-side-tint: rgba(49, 95, 99, 0.08);
  --flow-rail-image: url("assets/floral-atelier.svg");
  --flow-rail-opacity: 0.11;
}

body[data-theme="nocturna"],
body[data-theme="cine"] {
  --flow-bg: #101414;
  --flow-veil: rgba(16, 20, 20, 0.62);
  --flow-top-fade: rgba(16, 20, 20, 0.95);
  --flow-bottom-fade: rgba(16, 20, 20, 0.86);
  --flow-hairline: rgba(216, 183, 101, 0.18);
  --flow-side-tint: rgba(216, 183, 101, 0.08);
  --flow-rail-image: url("assets/floral-ivory.svg");
  --flow-rail-opacity: 0.075;
  --flow-rail-blend: screen;
  --flow-texture:
    radial-gradient(circle at 50% 0%, rgba(216, 183, 101, 0.12), transparent 22rem),
    repeating-linear-gradient(0deg, rgba(255, 249, 238, 0.025) 0 1px, transparent 1px 16px);
}

.invitation {
  position: relative;
  background: var(--flow-bg);
}

.invitation::before,
.invitation::after {
  position: absolute;
  top: 100svh;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  content: "";
}

.invitation::before {
  z-index: 0;
  background:
    linear-gradient(90deg, var(--flow-side-tint), transparent 18%, transparent 82%, var(--flow-side-tint)),
    var(--flow-texture),
    var(--flow-bg);
}

.invitation::after {
  z-index: 1;
  background:
    var(--flow-rail-image) left -82px top 28px / var(--flow-rail-size) auto repeat-y,
    var(--flow-rail-image) right -82px top 210px / var(--flow-rail-size) auto repeat-y;
  mix-blend-mode: var(--flow-rail-blend);
  opacity: var(--flow-rail-opacity);
}

.panel {
  z-index: 2;
}

.panel:not(.hero) {
  background:
    linear-gradient(180deg, var(--flow-top-fade), transparent 96px, transparent calc(100% - 96px), var(--flow-bottom-fade)),
    linear-gradient(90deg, transparent 0 11px, var(--flow-hairline) 11px 12px, transparent 12px calc(100% - 12px), var(--flow-hairline) calc(100% - 12px) calc(100% - 11px), transparent calc(100% - 11px)),
    linear-gradient(180deg, var(--flow-veil), var(--flow-veil)) !important;
}

.paper,
.timeline,
.gallery,
.dress-code {
  background-color: transparent !important;
}

.panel:not(.hero) .botanical,
.timeline__flowers {
  display: none !important;
}

.dress-code__florals {
  width: 116%;
  height: 132px;
  opacity: calc(var(--flow-rail-opacity) + 0.12);
  background:
    var(--flow-rail-image) 2% center / 155px auto no-repeat,
    var(--flow-rail-image) 98% center / 155px auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.dress-code__florals--top {
  top: 16px;
}

.dress-code__florals--bottom {
  bottom: 16px;
}

body[data-theme="nocturna"] .dress-code,
body[data-theme="cine"] .dress-code {
  background: transparent !important;
}

body[data-theme="nocturna"] .dress-code__florals,
body[data-theme="cine"] .dress-code__florals {
  mix-blend-mode: screen;
  opacity: 0.12;
}

/* Floral suite refinement: decorative, consistent, and never tiled/stretched. */
:root {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 242, 233, 0.9)),
    repeating-radial-gradient(circle at 30% 20%, rgba(40, 35, 28, 0.06) 0 1px, transparent 1px 16px),
    #f7f2e9;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-divider: url("assets/floral-divider.svg");
  --suite-line: rgba(166, 144, 77, 0.2);
  --suite-floral-opacity: 0.62;
}

body[data-theme="botanica"] {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 242, 233, 0.9)),
    repeating-radial-gradient(circle at 30% 20%, rgba(40, 35, 28, 0.06) 0 1px, transparent 1px 16px),
    #f7f2e9;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-floral-opacity: 0.62;
}

body[data-theme="sobria"] {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(244, 239, 230, 0.9)),
    repeating-linear-gradient(0deg, rgba(32, 29, 24, 0.035) 0 1px, transparent 1px 13px),
    #f4efe6;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-line: rgba(66, 88, 79, 0.2);
  --suite-floral-opacity: 0.5;
}

body[data-theme="editorial"] {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(251, 248, 240, 0.92)),
    repeating-linear-gradient(90deg, rgba(180, 147, 71, 0.035) 0 1px, transparent 1px 18px),
    #fbf8f0;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-line: rgba(180, 147, 71, 0.2);
  --suite-floral-opacity: 0.46;
}

body[data-theme="atelier"] {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(251, 246, 234, 0.9)),
    radial-gradient(circle at 50% 18%, rgba(182, 142, 61, 0.08), transparent 14rem),
    #fbf6ea;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-line: rgba(182, 142, 61, 0.2);
  --suite-floral-opacity: 0.52;
}

body[data-theme="nocturna"],
body[data-theme="cine"] {
  --suite-paper-bg:
    linear-gradient(180deg, rgba(17, 22, 22, 0.9), rgba(17, 22, 22, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(216, 183, 101, 0.1), transparent 18rem),
    #111616;
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --suite-line: rgba(216, 183, 101, 0.18);
  --suite-floral-opacity: 0.18;
}

body[data-flower="greenvelope"] {
  --suite-garland: url("assets/floral-greenvelope-garland.svg");
  --suite-corner: url("assets/floral-greenvelope-corner.svg");
  --floral-corner: url("assets/floral-greenvelope-corner.svg");
  --floral-side: url("assets/floral-greenvelope-garland.svg");
  --flow-rail-image: url("assets/floral-greenvelope-corner.svg");
  --suite-floral-opacity: 0.62;
  --floral-opacity: 0.62;
}

body[data-flower="acuarela"] {
  --suite-garland: url("assets/floral-garland.svg");
  --suite-corner: url("assets/floral-watercolor.svg");
  --floral-corner: url("assets/floral-watercolor.svg");
  --floral-side: url("assets/floral-garland.svg");
  --flow-rail-image: url("assets/floral-watercolor.svg");
  --suite-floral-opacity: 0.58;
  --floral-opacity: 0.58;
}

body[data-flower="eucalipto"] {
  --suite-garland: url("assets/floral-eucalyptus-garland.svg");
  --suite-corner: url("assets/floral-sage.svg");
  --floral-corner: url("assets/floral-sage.svg");
  --floral-side: url("assets/floral-eucalyptus-garland.svg");
  --flow-rail-image: url("assets/floral-sage.svg");
  --suite-floral-opacity: 0.56;
  --floral-opacity: 0.56;
}

body[data-flower="dorado"] {
  --suite-garland: url("assets/floral-gold-garland.svg");
  --suite-corner: url("assets/floral-gold-line.svg");
  --floral-corner: url("assets/floral-gold-line.svg");
  --floral-side: url("assets/floral-gold-garland.svg");
  --flow-rail-image: url("assets/floral-gold-line.svg");
  --suite-floral-opacity: 0.5;
  --floral-opacity: 0.5;
}

body[data-flower="marfil"] {
  --suite-garland: url("assets/floral-ivory-garland.svg");
  --suite-corner: url("assets/floral-ivory.svg");
  --floral-corner: url("assets/floral-ivory.svg");
  --floral-side: url("assets/floral-ivory-garland.svg");
  --flow-rail-image: url("assets/floral-ivory.svg");
  --suite-floral-opacity: 0.54;
  --floral-opacity: 0.54;
}

body[data-flower="atelier"] {
  --suite-garland: url("assets/floral-atelier-garland.svg");
  --suite-corner: url("assets/floral-atelier.svg");
  --floral-corner: url("assets/floral-atelier.svg");
  --floral-side: url("assets/floral-atelier-garland.svg");
  --flow-rail-image: url("assets/floral-atelier.svg");
  --suite-floral-opacity: 0.56;
  --floral-opacity: 0.56;
}

body[data-theme="nocturna"],
body[data-theme="cine"] {
  --suite-floral-opacity: 0.2;
  --floral-opacity: 0.26;
}

.invitation::before,
.invitation::after {
  position: absolute;
  top: 100svh;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
  content: "";
}

.invitation::before {
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 16px, var(--suite-line) 16px 17px, transparent 17px calc(100% - 17px), var(--suite-line) calc(100% - 17px) calc(100% - 16px), transparent calc(100% - 16px)),
    var(--suite-paper-bg);
}

.panel:not(.hero) {
  overflow: hidden;
  background: transparent !important;
}

.panel:not(.hero)::before,
.panel:not(.hero)::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 116px;
  pointer-events: none;
  content: "";
  z-index: -1;
}

.panel:not(.hero)::before {
  top: 0;
  height: clamp(86px, 18vw, 120px);
  background: var(--suite-garland) top -34px center / min(760px, 116%) auto no-repeat;
  opacity: var(--suite-floral-opacity);
  z-index: -1;
}

.panel:not(.hero)::after {
  bottom: 0;
  display: none;
}

.paper,
.timeline,
.dress-code,
.gallery {
  background: transparent !important;
  background-color: transparent !important;
}

.panel:not(.hero) .botanical {
  display: block !important;
  width: clamp(142px, 36vw, 188px);
  height: clamp(128px, 33vw, 170px);
  background: var(--suite-corner) center / contain no-repeat;
  opacity: var(--suite-floral-opacity);
  mix-blend-mode: normal;
}

.panel:not(.hero) .botanical--tl {
  top: 4px;
  left: -42px;
}

.panel:not(.hero) .botanical--tr {
  top: 4px;
  right: -42px;
}

.panel:not(.hero) .botanical--bl {
  bottom: 4px;
  left: -42px;
  display: none !important;
}

.panel:not(.hero) .botanical--br {
  right: -42px;
  bottom: 4px;
  display: none !important;
}

#confirmacion.panel:not(.hero) .botanical--bl,
#confirmacion.panel:not(.hero) .botanical--br {
  display: block !important;
}

.timeline__flowers {
  display: block !important;
  top: 15%;
  bottom: 10%;
  width: 36%;
  background: var(--suite-corner) center / contain no-repeat !important;
  opacity: var(--suite-floral-opacity);
  z-index: -1;
}

.timeline__flowers--left {
  left: -17%;
}

.timeline__flowers--right {
  right: -17%;
  transform: scaleX(-1);
}

.dress-code__florals {
  display: none !important;
  width: 118%;
  height: 150px;
  background: var(--suite-garland) center / min(760px, 116%) auto no-repeat !important;
  opacity: var(--suite-floral-opacity);
  transform: translateX(-50%);
  -webkit-mask-image: none;
  mask-image: none;
}

.dress-code__florals--top {
  top: -30px;
}

.dress-code__florals--bottom {
  bottom: -30px;
  display: none !important;
  transform: translateX(-50%) scaleY(-1);
}

.floral-divider {
  width: min(82%, 310px);
  height: 34px;
  gap: 16px;
}

.floral-divider span {
  flex: 1 1 0;
  max-width: 124px;
}

body[data-theme="nocturna"] .panel:not(.hero) .botanical,
body[data-theme="cine"] .panel:not(.hero) .botanical,
body[data-theme="nocturna"] .timeline__flowers,
body[data-theme="cine"] .timeline__flowers,
body[data-theme="nocturna"] .dress-code__florals,
body[data-theme="cine"] .dress-code__florals {
  mix-blend-mode: screen;
}

body .panel:not(.hero),
body .paper,
body .timeline,
body .dress-code,
body .gallery,
body #detalles,
body #confirmacion {
  background: transparent !important;
  background-color: transparent !important;
}

body[data-font="clasica"] {
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-caps: Montserrat, Arial, sans-serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 1;
  --display-scale: 1;
  --caps-letter-spacing: 0.13em;
  --script-title-size: clamp(3rem, 12vw, 4.9rem);
  --script-heading-size: clamp(3.8rem, 15vw, 5.4rem);
  --detail-heading-size: clamp(2.85rem, 10.8vw, 4rem);
  --confirm-heading-size: clamp(2.35rem, 9vw, 3.5rem);
  --timeline-heading-size: clamp(3.1rem, 12vw, 4.35rem);
}

body[data-font="romantica"] {
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: Allura, cursive;
  --font-caps: Montserrat, Arial, sans-serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 1.08;
  --display-scale: 0.98;
  --caps-letter-spacing: 0.13em;
  --script-title-size: clamp(3.18rem, 12.8vw, 5.25rem);
  --script-heading-size: clamp(4.05rem, 16vw, 5.75rem);
  --detail-heading-size: clamp(3rem, 11.6vw, 4.25rem);
  --confirm-heading-size: clamp(2.5rem, 9.8vw, 3.72rem);
  --timeline-heading-size: clamp(3rem, 11.6vw, 4.25rem);
}

body[data-font="editorial"] {
  --font-body: "Playfair Display", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: Parisienne, cursive;
  --font-caps: Cinzel, Georgia, serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 0.98;
  --display-scale: 0.98;
  --caps-letter-spacing: 0.15em;
  --script-title-size: clamp(3rem, 11.8vw, 4.75rem);
  --script-heading-size: clamp(3.65rem, 14.4vw, 5.15rem);
  --detail-heading-size: clamp(2.75rem, 10.3vw, 3.8rem);
  --confirm-heading-size: clamp(2.28rem, 8.7vw, 3.38rem);
  --timeline-heading-size: clamp(2.95rem, 11.5vw, 4.18rem);
}

body[data-font="real"] {
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: Cinzel, Georgia, serif;
  --font-script: "Alex Brush", cursive;
  --font-caps: Cinzel, Georgia, serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 1.04;
  --display-scale: 0.88;
  --caps-letter-spacing: 0.12em;
  --script-title-size: clamp(3.1rem, 12.5vw, 5.1rem);
  --script-heading-size: clamp(3.95rem, 15.5vw, 5.58rem);
  --detail-heading-size: clamp(2.95rem, 11.2vw, 4.14rem);
  --confirm-heading-size: clamp(2.42rem, 9.4vw, 3.62rem);
  --timeline-heading-size: clamp(2.68rem, 10.2vw, 3.82rem);
}

body[data-font="clasica-real"] {
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-caps: Cinzel, Georgia, serif;
  --font-ui: Montserrat, Arial, sans-serif;
  --script-scale: 1;
  --display-scale: 1;
  --caps-letter-spacing: 0.12em;
  --script-title-size: clamp(3rem, 12vw, 4.9rem);
  --script-heading-size: clamp(3.8rem, 15vw, 5.4rem);
  --detail-heading-size: clamp(2.85rem, 10.8vw, 4rem);
  --confirm-heading-size: clamp(2.35rem, 9vw, 3.5rem);
  --timeline-heading-size: clamp(3.1rem, 12vw, 4.35rem);
}

body {
  font-family: var(--font-body);
}

.audio-gate__panel button,
.controls-toggle,
.version-switcher span,
.flower-switcher span,
.font-switcher span,
.version-switcher button,
.flower-switcher button,
.font-switcher button,
.sound-button,
.spotify-button,
.eyebrow,
.letter-title,
.section-kicker,
.invitation-copy,
.rsvp-copy,
.countdown-block p,
.countdown small,
.primary-link,
.dress-code h2,
.dress-code h3,
.dress-code p {
  font-family: var(--font-caps);
  letter-spacing: var(--caps-letter-spacing);
}

.version-switcher button,
.flower-switcher button,
.font-switcher button,
.sound-button,
.spotify-button,
.primary-link,
.dress-code h3 {
  font-family: var(--font-ui);
}

.script-title,
.signature,
.monogram em,
.paper h2,
.gallery h2,
.countdown-block span,
.dress-code__signature span {
  font-family: var(--font-script);
}

.script-title,
.signature {
  font-size: var(--script-title-size);
}

.paper h2,
.gallery h2 {
  font-size: var(--script-heading-size);
}

#detalles h2 {
  font-size: var(--detail-heading-size);
}

#confirmacion h2 {
  font-size: var(--confirm-heading-size);
}

.timeline .section-kicker,
.gallery .section-kicker,
.date-card span,
.countdown strong,
.timeline h2 {
  font-family: var(--font-display);
}

.timeline h2 {
  font-size: var(--timeline-heading-size);
}

.monogram,
.date-line {
  font-family: var(--font-display);
}

body[data-font="editorial"] .paper h2,
body[data-font="real"] .paper h2,
body[data-font="editorial"] .gallery h2,
body[data-font="real"] .gallery h2 {
  line-height: 1.08;
}

body[data-font="real"] .timeline h2,
body[data-font="editorial"] .timeline h2 {
  letter-spacing: 0.055em;
}

body[data-theme="nocturna"] .font-switcher {
  border-color: rgba(213, 183, 106, 0.28);
  background: rgba(17, 22, 22, 0.82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

body[data-theme="nocturna"] .font-switcher span,
body[data-theme="nocturna"] .font-switcher button {
  color: #f5ead4;
}

body[data-theme="nocturna"] .font-switcher button[aria-pressed="true"] {
  color: #151918;
  background: #d5b76a;
}

body[data-theme="nocturna"] .controls-toggle {
  border-color: rgba(213, 183, 106, 0.28);
  color: #f5ead4;
  background: rgba(17, 22, 22, 0.86);
}

body[data-theme="editorial"] .font-switcher {
  border-color: rgba(180, 147, 71, 0.24);
  background: rgba(255, 253, 248, 0.86);
}

body[data-theme="editorial"] .font-switcher span,
body[data-theme="editorial"] .font-switcher button {
  color: #51442e;
}

body[data-theme="editorial"] .font-switcher button[aria-pressed="true"] {
  color: #fffdf8;
  background: #b49347;
}

body[data-theme="editorial"] .controls-toggle {
  border-color: rgba(180, 147, 71, 0.24);
  color: #51442e;
  background: rgba(255, 253, 248, 0.88);
}

body[data-theme="sobria"] .font-switcher {
  border-color: rgba(66, 88, 79, 0.22);
  background: rgba(255, 253, 248, 0.86);
}

body[data-theme="sobria"] .controls-toggle {
  border-color: rgba(66, 88, 79, 0.22);
  color: #42584f;
  background: rgba(255, 253, 248, 0.88);
}

body[data-theme="cine"] .font-switcher {
  border-color: rgba(216, 183, 101, 0.28);
  background: rgba(11, 12, 13, 0.82);
}

body[data-theme="cine"] .font-switcher span,
body[data-theme="cine"] .font-switcher button {
  color: #f8ead1;
}

body[data-theme="cine"] .font-switcher button[aria-pressed="true"] {
  color: #0d0e0f;
  background: #d8b765;
}

body[data-theme="cine"] .controls-toggle {
  border-color: rgba(216, 183, 101, 0.28);
  color: #f8ead1;
  background: rgba(11, 12, 13, 0.86);
}

body[data-theme="atelier"] .font-switcher {
  border-color: rgba(182, 142, 61, 0.28);
  background: rgba(255, 253, 248, 0.9);
}

body[data-theme="atelier"] .font-switcher span,
body[data-theme="atelier"] .font-switcher button {
  color: #5a4726;
}

body[data-theme="atelier"] .font-switcher button[aria-pressed="true"] {
  color: #fffdf8;
  background: #b68e3d;
}

body[data-theme="atelier"] .controls-toggle {
  border-color: rgba(182, 142, 61, 0.28);
  color: #5a4726;
  background: rgba(255, 253, 248, 0.92);
}

@media (min-width: 720px) {
  body {
    padding: 28px 0;
  }

  .invitation {
    border: 1px solid rgba(166, 144, 77, 0.22);
  }
}

@media (max-width: 520px) {
  #detalles h2 {
    max-width: 320px;
    font-size: clamp(2.35rem, 10.4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 0.88em;
  }
}

@media (max-width: 380px) {
  .controls-toggle {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 0.6rem;
  }

  .switcher-stack {
    width: min(calc(100% - 14px), 620px);
  }

  .version-switcher,
  .flower-switcher,
  .font-switcher {
    min-height: 42px;
    padding: 5px;
    gap: 3px;
  }

  .version-switcher span,
  .flower-switcher span,
  .font-switcher span {
    display: none;
  }

  .version-switcher button,
  .flower-switcher button,
  .font-switcher button {
    flex-basis: 60px;
    min-width: 58px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.64rem;
  }

  .panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .date-line {
    grid-template-columns: 1fr 92px 1fr;
    gap: 11px;
    letter-spacing: 0.14em;
  }

  .primary-link {
    max-width: 100%;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
