:root {
  --rose-50: #fff8fa;
  --rose-100: #f9e7ec;
  --rose-200: #f0d2da;
  --rose-300: #e8b7c8;
  --rose-400: #d889a5;
  --rose-500: #c28f9c;
  --rose-600: #a87582;
  --rose-700: #8d606b;
  --rose-800: #76515b;
  --gold-400: #d2bb79;
  --gold-500: #b99c58;
  --gold-600: #aa8d4d;
  --gold-700: #806938;
  --text: #8b6470;
  --paper: rgba(255, 248, 250, 0.42);
  --line: rgba(168, 117, 130, 0.32);
  --shadow: 0 12px 28px rgba(168, 117, 130, 0.14);
  --font-script: "Great Vibes", cursive;
  --font-text: "Cormorant", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

html {
  background-color: #f4d5de;
  background-image: url("images/FPALOROSA.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #f4d5de;
  background-image: url("images/FPALOROSA.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18px 24px, rgba(255, 255, 255, 0.98) 0 1px, rgba(255, 255, 255, 0.3) 1.4px, transparent 2px),
    radial-gradient(circle at 63px 71px, rgba(214, 170, 181, 0.92) 0 1.2px, rgba(214, 170, 181, 0.25) 1.7px, transparent 2.2px),
    radial-gradient(circle at 91px 38px, rgba(210, 187, 121, 0.94) 0 1px, rgba(210, 187, 121, 0.28) 1.5px, transparent 2.1px),
    radial-gradient(circle at 37px 96px, rgba(255, 255, 255, 0.86) 0 0.8px, rgba(255, 255, 255, 0.2) 1.2px, transparent 1.7px),
    radial-gradient(circle at 118px 82px, rgba(168, 117, 130, 0.8) 0 0.9px, rgba(168, 117, 130, 0.2) 1.3px, transparent 1.8px),
    radial-gradient(circle at 74px 132px, rgba(185, 156, 88, 0.86) 0 1.1px, rgba(185, 156, 88, 0.22) 1.6px, transparent 2px);
  background-size: 137px 149px, 173px 191px, 211px 167px, 157px 223px, 239px 181px, 193px 251px;
  opacity: 0.72;
  animation: bodySparkle 4.8s ease-in-out infinite alternate;
}

body :is(p, a, button, input, select, textarea, summary) {
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-style: normal;
}

body.portada-lock {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.section,
.footer,
.side-menu {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.side-menu {
  display: none;
}

/* Cover */
.portada {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.portada.abrir {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
}

.portada.abrir .portada-contenido {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.8s ease;
}

.portada::before {
  content: none;
}

.portada-glow {
  position: absolute;
  z-index: 2;
  width: min(62vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: none;
  filter: blur(72px);
  animation: portadaGlowPulse 5s ease-in-out infinite alternate;
}

.portada-contenido {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 2rem));
  cursor: pointer;
  animation: portadaContentIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portada-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: min(100dvh, 760px);
  text-align: center;
  transform: translateY(0);
}

.portada-crown,
.hero-crown {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 0.35rem;
}

.portada-label,
.hero-xv-label {
  margin: 0;
  padding: 10px;
  color: var(--gold-700);
  font-family: var(--font-script) !important;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.18));
  animation: portadaLabelIn 0.9s ease both 0.18s;
}

.portada-kicker.portada-instruction {
  order: 3;
  margin: 0.5rem 0 0;
  padding: 0;
  color: var(--gold-700);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: none;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.18));
  animation: portadaKickerIn 0.9s ease both 0.58s;
}

.portada-main-name,
.hero-title {
  margin: 0.45rem 0 0;
  padding: 10px;
  color: var(--rose-700);
  font-family: var(--font-script) !important;
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: none;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(111, 75, 84, 0.18));
  animation: portadaNameIn 1s ease both 0.32s, portadaGlitter 4.5s ease-in-out infinite 1.3s;
}

.portada-label {
  order: 1;
}

.portada-main-name {
  order: 2;
}

#btn-abrir.portada-envelope-button {
  position: relative;
  order: 4;
  display: block;
  width: min(82vw, 403px);
  min-height: 0;
  height: auto;
  margin: 0.9rem auto 0;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  animation: portadaButtonIn 0.85s ease both 0.78s, portadaButtonBreath 2.8s ease-in-out infinite 1.7s;
}

#btn-abrir.portada-envelope-button:hover,
#btn-abrir.portada-envelope-button:focus,
#btn-abrir.portada-envelope-button:active {
  border-color: transparent;
  color: transparent;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.portada-envelope-button > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.portada-guest-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 64%;
  transform: translate(-50%, -50%);
}

.portada-guest-card > img:first-child {
  position: relative;
  top: 40px;
  width: 100%;
  height: 155px;
  margin: 0 auto;
  border: 2px solid var(--gold-500);
  object-fit: fill;
}

.portada-guest-card .portada-seal {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  margin: 0;
  object-fit: contain;
  transform: translateX(-50%);
}

.portada-guest-copy {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  height: 155px;
  color: var(--text);
  font-family: var(--font-text);
  line-height: 1.15;
  text-align: center;
}

.portada-guest-copy #portada-invitado {
  padding: 10px;
  color: var(--rose-700);
  font-family: var(--font-script);
  font-size: clamp(calc(1.3rem + 4px), calc(5vw + 4px), calc(2rem + 4px));
  font-weight: 400;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(111, 75, 84, 0.16));
}

.portada-guest-copy #portada-pases {
  max-width: 95%;
  color: var(--gold-700);
  font-size: 12px;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.14));
}

.portada-guest-corner {
  position: absolute;
  right: -20%;
  bottom: -60%;
  z-index: 5;
  width: 92px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  pointer-events: none;
}

/* Invitation shell */
.invitacion-shell {
  position: relative;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  background: transparent;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.invitacion-shell.revelar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-content {
  position: relative;
  overflow: hidden;
}

.main-content > .section {
  position: relative;
  isolation: isolate;
  max-width: none;
  background: transparent;
}

.invitation-sparkle {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 0 7px 3px rgba(255, 253, 248, 0.9), 0 0 18px 7px rgba(255, 253, 248, 0.48);
  pointer-events: none;
  animation: sparkleGlow 2.8s ease-in-out infinite;
}

.invitation-sparkle:nth-of-type(even) {
  background: #d2bb79;
  box-shadow: 0 0 7px 3px rgba(210, 187, 121, 0.95), 0 0 20px 8px rgba(210, 187, 121, 0.5);
}

.sparkle-one { top: 10%; left: 12%; }
.sparkle-two { top: 18%; right: 16%; animation-delay: 0.45s; }
.sparkle-three { top: 34%; left: 7%; animation-delay: 0.9s; }
.sparkle-four { top: 42%; right: 9%; animation-delay: 1.35s; }
.sparkle-five { top: 57%; left: 15%; animation-delay: 1.8s; }
.sparkle-six { top: 64%; right: 14%; animation-delay: 2.25s; }
.sparkle-seven { top: 76%; left: 8%; animation-delay: 0.7s; }
.sparkle-eight { top: 82%; right: 11%; animation-delay: 1.2s; }
.sparkle-nine { top: 91%; left: 24%; animation-delay: 1.7s; }
.sparkle-ten { top: 94%; right: 25%; animation-delay: 2.2s; }

@keyframes sparkleGlow {
  0%, 100% { opacity: 0.48; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* Hero */
.hero {
  display: grid;
  place-items: center;
  row-gap: clamp(0.6rem, 1.8vw, 1.15rem);
  width: 100%;
  min-height: auto;
  padding: clamp(3.75rem, 8vw, 6rem) 1.25rem clamp(5.25rem, 10vw, 7rem);
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.hero::before {
  content: none;
}

.hero > :is(.hero-crown, .hero-xv-label, .hero-title, .hero-event-date, .hero-special-message) {
  position: relative;
  z-index: 3;
}

.hero .hero-crown {
  margin-bottom: clamp(0.2rem, 0.8vw, 0.5rem);
}

.hero .hero-xv-label,
.hero .hero-title {
  margin: 0;
}

.hero-event-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.4vw, 1.1rem);
  margin-top: clamp(0.25rem, 0.8vw, 0.5rem);
  color: var(--gold-700);
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-date-part {
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.18));
}

.hero-date-day {
  font-size: 40px;
  line-height: 0.8;
}

.hero-date-separator {
  width: 3px;
  height: 30px;
  background: radial-gradient(circle, rgba(128, 105, 56, 0.82) 0 1.1px, transparent 1.25px) center top / 3px 6px repeat-y;
  filter: drop-shadow(0 0 2px rgba(210, 187, 121, 0.34));
}

.hero-special-message {
  width: min(620px, 100%);
  margin-top: clamp(0.5rem, 1.2vw, 0.85rem);
  color: var(--rose-700);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(111, 75, 84, 0.12));
}

.hero-countdown,
.countdown-calendar {
  display: none;
}

.quince-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff3f4 !important;
  padding: clamp(2.5rem, 7vw, 5rem) 1rem;
  text-align: center;
}

.quince-calendar-image {
  width: min(280px, 70vw);
  height: auto;
}

.quince-calendar-label {
  color: var(--gold-700);
  font-family: var(--font-script);
  padding: 20px;
  font-size: 40px;
  line-height: 1;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quince-calendar .quince-countdown {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(0.7rem, 2vw, 1.15rem);
  width: auto;
}

.quince-countdown div {
  display: grid;
  place-items: center;
  min-width: clamp(54px, 12vw, 82px);
  margin-inline: auto;
  border: 0;
  background: transparent;
}

.quince-countdown strong {
  color: var(--gold-700);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quince-countdown span {
  color: var(--gold-700);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quince-calendar-button {
  display: inline-flex;
  padding: 10px;
  border: 1px solid rgba(185, 156, 88, 0.38);
  border-radius: 999px;
  color: var(--gold-700);
  background: rgba(255, 248, 250, 0.12);
  box-shadow: 0 6px 18px rgba(168, 117, 130, 0.08);
  transform: translateY(calc(var(--calendar-parallax, 0px) - 44px));
  transition: transform 0.18s ease-out, background 0.25s ease, box-shadow 0.25s ease;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.quince-calendar-button {
  text-decoration: none;
}

.quince-calendar-button span {
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quince-calendar-button:hover {
  transform: translateY(calc(var(--calendar-parallax, 0px) - 47px));
  background: rgba(255, 248, 250, 0.2);
  box-shadow: 0 8px 22px rgba(168, 117, 130, 0.14);
}

#scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 138px;
  min-height: 52px;
  padding: 0.65rem 0.9rem 0.52rem;
  border: 1px solid rgba(185, 156, 88, 0.24);
  border-radius: 999px;
  color: var(--gold-700);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(255, 248, 250, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 6px 18px rgba(168, 117, 130, 0.08);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.18s ease-out;
}

#scroll-hint span {
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 24%, #d2bb79 44%, #806938 64%, #b99c58 82%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.1));
}

#scroll-hint::after {
  content: "↓";
  display: block;
  color: var(--gold-700);
  font-size: 0.86rem;
  line-height: 0.8;
  background: linear-gradient(180deg, #d2bb79, #806938);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollArrow 1.2s ease-in-out infinite;
}

#scroll-hint.mostrar,
#scroll-hint.visible {
  opacity: 1;
  pointer-events: auto;
}

.section-separator {
  position: relative;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: clamp(110px, 18vw, 190px);
  margin: clamp(-3.5rem, -4vw, -1.5rem) 0;
  overflow: visible;
  pointer-events: none;
}

.section-separator img {
  width: min(980px, 115vw);
  max-width: none;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(168, 117, 130, 0.16));
}

.section-separator-es2 {
  background: linear-gradient(to bottom, transparent 0 50%, #fff3f4 50% 100%);
}

.section-separator-ceremony {
  background: linear-gradient(to bottom, #fff3f4 0 50%, transparent 50% 100%);
}

.section-separator-album {
  background: linear-gradient(to bottom, #fff3f4 0 50%, transparent 50% 100%);
}

/* Shared sections */
.intro-section,
.ceremony-section,
.dresscode,
.regalos,
.album-digital,
.rsvp,
.frase-final {
  position: relative;
  width: 100%;
  padding: clamp(3.2rem, 8vw, 6rem) 1rem;
  text-align: center;
}

.intro-section {
  background: transparent;
}

.intro-section::before,
.intro-section::after {
  content: none;
}

.dresscode,
.regalos {
  background: #fff3f4 !important;
}

.regalos {
  padding-top: 0;
  margin-top: -20px;
}

.intro-section,
.regalos,
.album-digital {
  display: grid;
  place-items: center;
}

.ceremony-section,
.dresscode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  animation: introContentFloat 6s ease-in-out infinite;
}

.intro-blessing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 3.2vw, 1.8rem);
  width: min(340px, 86vw);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(6.75rem, 16vw, 8rem) clamp(1.4rem, 5vw, 2rem) clamp(4.25rem, 10vw, 5.25rem);
  border: 1px solid rgba(185, 156, 88, 0.34);
  border-radius: 170px 170px 26px 26px;
  background: #fff3f4;
  box-shadow: 0 20px 45px rgba(168, 117, 130, 0.14);
  overflow: visible;
  transform: translateY(-40px);
}

.intro-blessing p {
  position: relative;
  z-index: 1;
  color: var(--rose-700);
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.08em;
  max-width: 24ch;
  line-height: 1.65;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(111, 75, 84, 0.12));
}

.intro-blessing-corner {
  position: absolute;
  right: auto;
  left: 50%;
  bottom: -12%;
  z-index: 3;
  width: 120px;
  padding: 0;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.intro-blessing h3,
.ceremony-card h3,
.dress-title,
.regalos-title,
.music-card h3,
.album-card h3,
.rsvp-card h3,
.frase-final-title,
.rsvp-popup-title {
  color: var(--rose-700);
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(111, 75, 84, 0.18));
}

.intro-blessing h3 {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 10px;
   font-size: 40px;
   line-height: 1.15;
   background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(105, 86, 47, 0.16));
}

/* Cards */
.ceremony-card,
.dress-card,
.regalos-card,
.music-card,
.album-card,
.rsvp-card {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  padding: clamp(1.25rem, 3.7vw, 2.15rem) clamp(0.9rem, 3vw, 1.55rem);
  border: 0;
  border-radius: 28px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.album-card,
.rsvp-card {
  background: rgb(255, 243, 244);
  border-radius: 0;
}

.ceremony-card:first-of-type {
  background: #fff3f4;
}

.ceremony-card {
  transform: translateY(var(--ceremony-card-parallax, 0));
  transition: transform 0.2s ease-out;
}

.reception-card {
  scroll-margin-top: 5rem;
}

.section-icon-img,
.playlist-section-icon,
.gift-section-icon {
  width: 310px;
  height: auto;
  margin: 0 auto clamp(0.85rem, 2.8vw, 1.25rem);
  animation: iconFloat 6.2s ease-in-out infinite;
}

.gift-section-icon {
  width: 290px;
}

.dress-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.85rem, 2.8vw, 1.25rem);
}

.dress-icons img {
  width: 150px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  object-fit: contain;
  animation: iconFloat 6.2s ease-in-out infinite;
}

.ceremony-card h3,
.dress-title,
.regalos-title,
.music-card h3,
.album-card h3,
.rsvp-card h3,
.frase-final-title {
  margin-top: 0.3rem;
  padding: 10px;
  font-size: 40px;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ceremony-card .event-lugar,
.ceremony-card .event-direccion,
.dress-copy,
.dress-note,
.music-card p,
.regalos-copy,
.album-card p,
.rsvp-card p,
.rsvp-card h4 {
  margin-top: 0.85rem;
  color: var(--rose-700);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0.04em;
}

.ceremony-card .event-lugar {
  font-size: 20px;
  font-weight: 400;
}

.ceremony-card .event-time {
  margin-top: 0.85rem;
  color: var(--rose-700);
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 400;
}

.ceremony-card {
  width: min(350px, 84vw);
  margin-bottom: 40px;
  border-radius: 0;
  background: #fff3f4;
  overflow: visible;
}

.event-card-corner {
  position: absolute;
  bottom: -17%;
  z-index: 3;
  width: 170px;
  padding: 15px;
  pointer-events: none;
}

.event-card-corner-left {
  left: -17%;
}

.event-card-corner-right {
  right: -17%;
  transform: scaleX(-1);
}

.album-card .event-card-corner {
  width: 150px;
  right: -10%;
}

.rsvp-card .event-card-corner {
  width: 150px;
  right: auto;
  left: -10%;
}

.ceremony-card .event-lugar,
.ceremony-card .event-direccion,
.ceremony-card .event-time {
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dress-note {
  display: block;
}

.dress-card .dress-copy,
.dress-card .dress-note {
  color: var(--rose-700);
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.regalos-copy {
  color: var(--rose-700);
  font-weight: 400;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-soft,
#rsvp-submit,
.btn-location,
.rsvp-popup-btn,
.rsvp-popup-close,
.music-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff8f5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--rose-400), #b76e79);
  box-shadow: 0 8px 22px rgba(183, 110, 121, 0.24), 0 0 12px rgba(168, 117, 130, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-soft,
#rsvp-submit,
.btn-location {
  margin-top: 1.35rem;
}

.ceremony-card .btn-location {
  color: var(--rose-700);
  background: #f3c6d2;
  border-color: rgba(168, 117, 130, 0.34);
  box-shadow: 0 6px 16px rgba(168, 117, 130, 0.12);
}

.btn-soft:hover,
#rsvp-submit:hover,
.btn-location:hover,
.rsvp-popup-btn:hover,
.rsvp-popup-close:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.3), 0 0 20px rgba(168, 117, 130, 0.24);
}

/* Gifts */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.gift-option {
  min-height: 0;
  border: 1px solid rgba(168, 117, 130, 0.22);
  border-radius: 18px;
  background: rgba(255, 245, 248, 0.36);
  overflow: hidden;
}

.gift-option summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  color: #fff8f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
  background: linear-gradient(145deg, rgba(216, 137, 165, 0.92), rgba(183, 110, 121, 0.88));
  cursor: pointer;
}

.gift-option summary::-webkit-details-marker {
  display: none;
}

.gift-option > :not(summary) {
  margin: 1rem auto;
}

.gift-option p {
  color: var(--text);
  font-size: 0.9rem;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border: 1px dashed rgba(168, 117, 130, 0.42);
  border-radius: 18px;
  color: var(--text);
  font-weight: 700;
  background:
    linear-gradient(45deg, rgba(240, 182, 201, 0.18) 25%, transparent 25% 50%, rgba(168, 117, 130, 0.12) 50% 75%, transparent 75%),
    rgba(255, 245, 248, 0.5);
  background-size: 18px 18px;
}

.qr-placeholder span {
  font-size: 0.72rem;
}

.album-qr {
  width: min(210px, 62vw);
  margin: 1.35rem auto 0;
  animation: iconFloat 6.2s ease-in-out infinite;
}

.album-card p {
  color: var(--rose-700);
  font-weight: 400;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.album-card .btn-soft {
  color: var(--rose-700);
  background: #f3c6d2;
  border: 0;
  box-shadow: 0 6px 16px rgba(168, 117, 130, 0.12);
}

/* RSVP */
.rsvp-card {
  width: min(760px, 100%);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.8rem, 6vw, 3.6rem);
}

.rsvp-card > *:not(:first-child) {
  margin-top: 1.05rem;
}

.rsvp-card .invitado-nombre {
  color: var(--rose-700);
  font-family: var(--font-script);
  font-size: clamp(2.15rem, 9vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invitado-lugares {
  color: transparent;
  background: linear-gradient(120deg, #715d32 0%, #aa8d4d 20%, #d2bb79 40%, #806938 57%, #b99c58 76%, #69562f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 600;
}

.rsvp-card .invitado-nombre {
  padding: 10px;
}

.rsvp-intro {
  max-width: 420px;
  margin-inline: auto;
  color: transparent !important;
  background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#rsvp-form {
  display: flex;
  justify-content: center;
}

#rsvp-form.is-locked {
  opacity: 0.72;
}

#rsvp-success {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(168, 117, 130, 0.34);
  border-radius: 20px;
  background: rgba(216, 137, 165, 0.14);
}

.frase-final-title {
  display: block;
  max-width: 760px;
  margin: 0 auto;
   padding: 10px;
   text-align: center;
   background: linear-gradient(120deg, #76515b 0%, #a87582 20%, #d6aab5 39%, #8d606b 57%, #c28f9c 76%, #6f4b54 100%);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* Footer */
.footer {
  width: 100%;
  max-width: none;
  padding: 2rem 1rem 3rem;
  color: var(--text);
  text-align: center;
  background: #d6aab5;
}

#social-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

#social-icons a,
.music-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(168, 117, 130, 0.5);
  border-radius: 50%;
  color: var(--rose-700);
  background: rgba(255, 245, 248, 0.48);
  box-shadow: 0 6px 18px rgba(183, 110, 121, 0.16);
  text-decoration: none;
}

.footer-logo {
  width: 90px;
  height: auto;
  margin: 0.9rem auto 0;
}

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 50;
  color: #fff8f5;
  background: linear-gradient(145deg, var(--rose-400), #b76e79);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}

.music-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.music-fab.is-playing .music-fab-icon {
  animation: musicPulse 1.8s ease-in-out infinite;
}

/* RSVP popup */
.rsvp-popup-overlay {
  position: fixed;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(183, 110, 121, 0.26);
  backdrop-filter: blur(6px);
}

.rsvp-popup-overlay.active {
  display: flex;
}

.rsvp-popup {
  width: min(520px, 100%);
  padding: 1.4rem;
  border: 1px solid rgba(168, 117, 130, 0.42);
  border-radius: 28px;
  background: #f7dfe6;
  box-shadow: 0 18px 44px rgba(183, 110, 121, 0.28);
  text-align: center;
}

.rsvp-popup.is-error {
  border-color: var(--rose-600);
}

.rsvp-popup-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.rsvp-popup-subtitle,
.rsvp-popup-message {
  margin-top: 0.65rem;
  color: var(--text);
}

.rsvp-popup-select {
  width: 100%;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(168, 117, 130, 0.38);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 248, 250, 0.72);
  font: inherit;
}

.rsvp-popup-actions {
  display: grid;
  gap: 0.7rem;
}

.rsvp-popup-btn.secondary,
.rsvp-popup-close {
  color: var(--rose-700);
  background: rgba(255, 248, 250, 0.72);
}

/* Reveals */
.fade-in-element,
.zoom-in-element {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--reveal-order, 0) * 80ms);
}

.fade-in-element.visible,
.fade-in-element.is-visible,
.zoom-in-element.visible,
.zoom-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Motion */
@keyframes portadaGlowPulse {
  from { opacity: 0.22; transform: scale(0.92); }
  to { opacity: 0.42; transform: scale(1.08); }
}

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

@keyframes portadaLabelIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes portadaNameIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes portadaGlitter {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes portadaButtonIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes portadaButtonBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

@keyframes introContentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes scrollArrow {
  0%, 100% { transform: translateY(-1px); opacity: 0.58; }
  50% { transform: translateY(3px); opacity: 1; }
}

@keyframes bodySparkle {
  0%, 100% { opacity: 0.22; filter: brightness(0.82); }
  25% { opacity: 0.86; filter: brightness(1.12); }
  52% { opacity: 0.38; filter: brightness(0.9); }
  78% { opacity: 1; filter: brightness(1.2); }
}

/* Responsive */
@media (max-width: 820px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .portada-center {
    transform: translateY(-55px);
  }

  .portada-main-name,
  .hero-title {
    letter-spacing: 0.02em;
  }

  .hero {
    row-gap: 0.65rem;
    padding: 3.25rem 1rem 5rem;
  }

  .intro-blessing {
    transform: translateY(-28px);
  }

  .gift-grid {
    grid-template-columns: 1fr;
  }

}

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