/* ==========================================================
   BABY SHOWER VIOLETA
   Archivo: assets/css/styles.css
   ========================================================== */

:root {
  --pink-light: #fff4fb;
  --pink: #f5b6d8;
  --pink-dark: #d978ad;

  --purple-light: #e6dcff;
  --purple: #b598df;
  --purple-dark: #533668;

  --blue-light: #dff3ff;
  --blue: #9fd9f2;

  --mint-light: #dcf8ef;
  --mint: #95ddcb;

  --yellow-light: #fff1bd;
  --peach-light: #ffdccc;

  --text: #624373;
  --text-dark: #4f3063;
  --white: #ffffff;

  --card-border: rgba(255, 255, 255, 0.56);
  --card-shadow: rgba(82, 52, 101, 0.18);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background-color: #faf6ff;
  font-family: "DM Sans", sans-serif;
}

body.invitation-open {
  overflow-x: hidden;
  overflow-y: auto;
}

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

button,
a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ==========================================================
   FONDO PRINCIPAL
   ========================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background-image: url("../img/fondo-unicornios.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transform: translateZ(0);
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.01) 0%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(252, 245, 255, 0.08) 100%
    );
  pointer-events: none;
}

/* ==========================================================
   PANTALLA DE BIENVENIDA
   ========================================================== */

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding:
    calc(20px + env(safe-area-inset-top))
    18px
    calc(20px + env(safe-area-inset-bottom));
  overflow: hidden;
  transition:
    opacity 0.85s ease,
    visibility 0.85s ease,
    transform 0.85s ease;
}

.welcome-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 206, 234, 0.45),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 18%,
      rgba(207, 213, 255, 0.42),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      rgba(90, 52, 117, 0.22),
      rgba(255, 245, 252, 0.42)
    );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ==========================================================
   ESTRELLAS DE LA PANTALLA DE BIENVENIDA
   ========================================================== */

.welcome-stars {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.welcome-stars span {
  position: absolute;
  color: rgba(255, 247, 197, 0.96);
  line-height: 1;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 1),
    0 0 17px rgba(255, 198, 232, 0.8);
  animation: welcomeStarTwinkle 2.5s ease-in-out infinite;
}

.welcome-stars span:nth-child(1) {
  top: 10%;
  left: 10%;
  font-size: 34px;
}

.welcome-stars span:nth-child(2) {
  top: 16%;
  right: 14%;
  font-size: 28px;
  animation-delay: 0.5s;
}

.welcome-stars span:nth-child(3) {
  top: 30%;
  left: 18%;
  font-size: 25px;
  animation-delay: 1s;
}

.welcome-stars span:nth-child(4) {
  top: 35%;
  right: 22%;
  font-size: 38px;
  animation-delay: 1.3s;
}

.welcome-stars span:nth-child(5) {
  bottom: 25%;
  left: 13%;
  font-size: 30px;
  animation-delay: 0.8s;
}

.welcome-stars span:nth-child(6) {
  bottom: 14%;
  right: 17%;
  font-size: 34px;
  animation-delay: 1.6s;
}

.welcome-stars span:nth-child(7) {
  top: 48%;
  left: 7%;
  font-size: 27px;
  animation-delay: 0.3s;
}

.welcome-stars span:nth-child(8) {
  bottom: 36%;
  right: 8%;
  font-size: 36px;
  animation-delay: 1.9s;
}

/* ==========================================================
   TARJETA DE BIENVENIDA
   ========================================================== */

.welcome-card {
  position: relative;
  z-index: 10;
  width: min(100%, 470px);
  padding: 28px 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 226, 241, 0.48),
      rgba(226, 218, 255, 0.42),
      rgba(214, 241, 255, 0.35)
    );
  box-shadow:
    0 24px 65px rgba(73, 42, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  text-align: center;
  backdrop-filter: blur(17px) saturate(135%);
  -webkit-backdrop-filter: blur(17px) saturate(135%);
  animation: welcomeCardEntrance 1s ease both;
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.75),
      transparent 70%
    );
  pointer-events: none;
}

.welcome-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================
   ARCOÍRIS Y UNICORNIO DENTRO DE LA TARJETA
   ========================================================== */

.welcome-card-rainbow {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(230px, 62vw, 330px);
  margin: -22px auto 8px;
  opacity: 0.98;
  filter:
    drop-shadow(
      0 10px 18px rgba(84, 52, 103, 0.16)
    );
  animation:
    welcomeCardRainbowFloat
    5s ease-in-out infinite;
}

.welcome-card-unicorn {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(115px, 30vw, 165px);
  margin: 8px auto 16px;
  filter:
    drop-shadow(
      0 10px 18px rgba(84, 52, 103, 0.18)
    );
  animation:
    welcomeCardUnicornFloat
    4.2s ease-in-out infinite;
}

/* ==========================================================
   TEXTOS DE BIENVENIDA
   ========================================================== */

.welcome-kicker {
  margin: 0 0 10px;
  color: #8d5b94;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.6;
  text-transform: uppercase;
}

.welcome-title {
  margin: 0;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 9vw, 3.45rem);
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 2px 3px rgba(255, 255, 255, 0.9);
}

.welcome-name {
  margin: -4px 0 8px;
  color: var(--pink-dark);
  font-family: "Great Vibes", cursive;
  font-size: clamp(5rem, 19vw, 7rem);
  line-height: 0.95;
  text-shadow:
    0 3px 10px rgba(255, 255, 255, 0.82);
}

.welcome-date {
  margin: 0 0 24px;
  color: #674777;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ==========================================================
   BOTÓN DE APERTURA
   ========================================================== */

.open-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 54px;
  padding: 14px 24px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #eb93c4,
      #bd94e5
    );
  box-shadow:
    0 15px 32px rgba(172, 99, 158, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.open-button::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -110px;
  width: 70px;
  height: 180%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  transform: rotate(20deg);
  animation: buttonShine 3.2s ease-in-out infinite;
}

.open-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 38px rgba(172, 99, 158, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.open-button:active {
  transform: scale(0.98);
}

.open-button:focus-visible {
  outline: 3px solid rgba(82, 48, 101, 0.25);
  outline-offset: 4px;
}

.welcome-hint {
  margin: 14px 0 0;
  color: rgba(79, 48, 99, 0.72);
  font-size: 0.76rem;
}

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

.invitation {
  position: relative;
  display: none;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.invitation.is-visible {
  display: block;
  opacity: 1;
}

/* ==========================================================
   ESTRELLAS Y CORAZONES MÁGICOS
   ========================================================== */

.magic-effects {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

.magic-star {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--effect-color, #e6b6dc);
  line-height: 1;
  user-select: none;
  pointer-events: none;

  filter:
    drop-shadow(
      0 0 4px rgba(255, 255, 255, 0.95)
    )
    drop-shadow(
      0 0 9px rgba(244, 196, 226, 0.45)
    );

  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.95),
    0 0 11px rgba(232, 190, 227, 0.45);

  animation:
    magicStarFloat
    var(--star-duration, 9s)
    ease-in-out infinite;
}

/* ==========================================================
   CORAZÓN PASTEL HECHO CON CSS
   Evita que Safari lo convierta en emoji rojo
   ========================================================== */

.pastel-heart {
  position: relative;
  display: block;
  width: 0.72em;
  height: 0.72em;
  border-radius: 12%;
  background: var(--effect-color, #f3a9cc);
  opacity: 0.72;
  transform: rotate(45deg);

  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.45),
    0 0 8px rgba(255, 255, 255, 0.65),
    0 0 14px rgba(238, 184, 218, 0.25);
}

.pastel-heart::before,
.pastel-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.pastel-heart::before {
  top: -50%;
  left: 0;
}

.pastel-heart::after {
  top: 0;
  left: -50%;
}

/* ==========================================================
   HERO A PANTALLA COMPLETA
   ========================================================== */

.hero-fullscreen {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding:
    calc(28px + env(safe-area-inset-top))
    18px
    calc(54px + env(safe-area-inset-bottom));
  overflow: hidden;
  text-align: center;
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.03)
    );
  pointer-events: none;
}

.hero-fullscreen::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 50%;
  width: min(96vw, 780px);
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 252, 255, 0.92) 0%,
      rgba(255, 248, 253, 0.68) 38%,
      rgba(255, 247, 253, 0.3) 60%,
      transparent 78%
    );
  filter: blur(8px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 14px;
  transform: translateY(-2.5vh);
}

.hero-kicker {
  margin: 0 0 12px;
  color: #7a4d82;
  font-size: clamp(0.68rem, 2.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.55;
  text-transform: uppercase;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.95);
}

.hero-title {
  margin: 0;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.85rem, 9vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  text-shadow:
    0 2px 2px rgba(255, 255, 255, 0.92),
    0 4px 18px rgba(255, 255, 255, 0.9);
}

.hero-name {
  margin: -6px 0 8px;
  color: #db75ac;
  font-family: "Great Vibes", cursive;
  font-size: clamp(5.4rem, 18vw, 9rem);
  line-height: 0.9;
  text-shadow:
    0 2px 2px rgba(255, 255, 255, 0.95),
    0 5px 18px rgba(255, 255, 255, 0.9),
    0 3px 8px rgba(123, 65, 106, 0.18);
}

.hero-parents {
  margin: 18px 0;
  color: #60416f;
  font-size: clamp(0.96rem, 3vw, 1.12rem);
  line-height: 1.6;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 1),
    0 0 11px rgba(255, 255, 255, 0.95);
}

.hero-parents strong {
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.12em;
}

.hero-copy {
  width: min(100%, 540px);
  margin: 0 auto;
  color: #5d416c;
  font-size: clamp(0.91rem, 2.6vw, 1.04rem);
  font-weight: 500;
  line-height: 1.8;
  text-wrap: balance;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 1),
    0 0 11px rgba(255, 255, 255, 1);
}

/* ==========================================================
   INDICADOR DE DESLIZAR
   ========================================================== */

.scroll-indicator {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #704b79;
  transform: translateX(-50%);
  animation: scrollIndicatorFloat 2s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 19px;
  height: 30px;
  border: 1.5px solid rgba(79, 48, 99, 0.56);
  border-radius: 999px;
}

.scroll-indicator span::before {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  margin: 5px auto 0;
  border-radius: 999px;
  background: #704b79;
  animation: scrollIndicatorDot 1.6s ease-in-out infinite;
}

.scroll-indicator small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================
   CONTENEDOR DE LAS SECCIONES
   ========================================================== */

.content-shell {
  position: relative;
  z-index: 4;
  width: min(100% - 22px, 570px);
  margin: 0 auto;
  padding: 58px 0 85px;
}

/* ==========================================================
   TARJETAS PASTEL TRANSPARENTES
   ========================================================== */

.countdown-card,
.info-card,
.rsvp-card,
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  box-shadow:
    0 20px 48px var(--card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: center;
  backdrop-filter: blur(17px) saturate(135%);
  -webkit-backdrop-filter: blur(17px) saturate(135%);
}

.countdown-card::before,
.info-card::before,
.rsvp-card::before,
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.48),
      transparent 70%
    );
  pointer-events: none;
}

.countdown-card > *,
.info-card > *,
.rsvp-card > *,
.footer > * {
  position: relative;
  z-index: 2;
}

.countdown-card {
  padding: 29px 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 207, 232, 0.5),
      rgba(220, 211, 255, 0.43),
      rgba(199, 232, 255, 0.34)
    );
}

.info-card {
  padding: 29px 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 216, 235, 0.48),
      rgba(226, 216, 255, 0.4),
      rgba(208, 244, 237, 0.34)
    );
}

.rsvp-card {
  padding: 29px 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 211, 234, 0.48),
      rgba(219, 212, 255, 0.4),
      rgba(206, 235, 255, 0.34)
    );
}

.footer {
  padding: 27px 20px 32px;
  background:
    linear-gradient(
      145deg,
      rgba(251, 213, 235, 0.45),
      rgba(224, 216, 255, 0.38),
      rgba(214, 239, 255, 0.3)
    );
}

/* ==========================================================
   TÍTULOS DE SECCIONES
   ========================================================== */

.section-kicker {
  margin: 0 0 8px;
  color: #8e6194;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow:
    0 1px 5px rgba(255, 255, 255, 0.65);
}

.section-title {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.85),
    0 0 10px rgba(255, 255, 255, 0.5);
}

.section-copy {
  max-width: 470px;
  margin: 0 auto;
  color: rgba(79, 48, 99, 0.9);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================
   CUENTA REGRESIVA
   ========================================================== */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.time-box {
  position: relative;
  overflow: hidden;
  padding: 18px 7px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 206, 229, 0.45),
      rgba(213, 210, 255, 0.4),
      rgba(199, 231, 250, 0.32)
    );
  box-shadow:
    0 11px 24px rgba(89, 58, 108, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.time-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.55),
      transparent 70%
    );
}

.time-box strong {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1;
}

.time-box span {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px;
  color: #8d6093;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.countdown-finished {
  margin: 20px 0 0;
  color: var(--pink-dark);
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
}

/* ==========================================================
   DETALLES DEL EVENTO
   ========================================================== */

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

.detail-item {
  position: relative;
  overflow: hidden;
  padding: 19px 15px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 220, 237, 0.45),
      rgba(222, 215, 255, 0.39),
      rgba(205, 239, 249, 0.3)
    );
  box-shadow:
    0 11px 24px rgba(89, 58, 108, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.detail-item::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.45),
      transparent 70%
    );
}

.detail-location {
  grid-column: 1 / -1;
}

.detail-label {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 7px;
  color: #906695;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-item strong {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.13rem;
  line-height: 1.45;
}

.detail-item p {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  color: rgba(79, 48, 99, 0.85);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================
   BOTONES
   ========================================================== */

.main-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 22px;
  padding: 14px 25px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.main-button::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -100px;
  width: 65px;
  height: 190%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.42),
      transparent
    );
  transform: rotate(20deg);
  transition: left 0.7s ease;
}

.main-button:hover::before {
  left: calc(100% + 40px);
}

.main-button:hover {
  transform: translateY(-3px);
}

.main-button:active {
  transform: scale(0.98);
}

.main-button.pink {
  background:
    linear-gradient(
      135deg,
      #e891c1,
      #b98cde
    );
  box-shadow:
    0 14px 30px rgba(173, 98, 156, 0.27);
}

.main-button.green {
  background:
    linear-gradient(
      135deg,
      #59c8a4,
      #39a780
    );
  box-shadow:
    0 14px 30px rgba(58, 164, 126, 0.27);
}

/* ==========================================================
   MESAS DE REGALOS
   ========================================================== */

.gift-grid {
  display: grid;
  gap: 12px;
  margin-top: 21px;
}

.gift-link {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.47);
  border-radius: 23px;
  color: var(--text-dark);
  text-align: left;
  text-decoration: none;
  box-shadow:
    0 11px 24px rgba(89, 58, 108, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.57);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gift-link::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.5),
      transparent 70%
    );
}

.gift-link:hover {
  transform: translateY(-4px);
  box-shadow:
    0 17px 30px rgba(89, 58, 108, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.gift-link.amazon {
  background:
    linear-gradient(
      145deg,
      rgba(255, 238, 188, 0.53),
      rgba(255, 211, 232, 0.36),
      rgba(225, 216, 255, 0.3)
    );
}

.gift-link.liverpool {
  background:
    linear-gradient(
      145deg,
      rgba(255, 204, 230, 0.5),
      rgba(220, 212, 255, 0.4),
      rgba(203, 236, 250, 0.3)
    );
}

.gift-link small,
.gift-link strong,
.gift-link span {
  position: relative;
  z-index: 2;
}

.gift-link small {
  display: block;
  margin-bottom: 5px;
  color: #916494;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gift-link strong {
  display: block;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.gift-link span {
  display: block;
  margin-top: 4px;
  color: rgba(79, 48, 99, 0.78);
  font-size: 0.88rem;
}

/* ==========================================================
   RSVP
   ========================================================== */

.note {
  display: block;
  margin-top: 12px;
  color: rgba(79, 48, 99, 0.67);
  font-size: 0.73rem;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer p {
  margin: 0;
  color: #916694;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer strong {
  display: block;
  margin-top: 8px;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.footer span {
  display: block;
  margin-top: 5px;
  color: var(--pink-dark);
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
}

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

.music-control {
  position: fixed;
  right: 15px;
  bottom: calc(15px + env(safe-area-inset-bottom));
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #e98fc1,
      #ba91e1
    );
  box-shadow:
    0 15px 30px rgba(82, 52, 101, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.music-control:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 19px 36px rgba(82, 52, 101, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.music-control:active {
  transform: scale(0.95);
}

.music-control.is-muted {
  opacity: 0.72;
}

/* ==========================================================
   ANIMACIÓN REVEAL
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* ==========================================================
   CONFETI
   ========================================================== */

.confetti-piece {
  position: fixed;
  top: -30px;
  z-index: 999;
  width: 10px;
  height: 16px;
  opacity: 1;
  pointer-events: none;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.55);
  will-change: transform, opacity;
  animation:
    confettiFall
    var(--fall-duration, 3.8s)
    cubic-bezier(0.2, 0.75, 0.4, 1)
    forwards;
}

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

@keyframes welcomeCardRainbowFloat {
  0%,
  100% {
    transform:
      translateY(0)
      scale(1);
  }

  50% {
    transform:
      translateY(-7px)
      scale(1.02);
  }
}

@keyframes welcomeCardUnicornFloat {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(-1deg);
  }

  50% {
    transform:
      translateY(-8px)
      rotate(1deg);
  }
}

@keyframes welcomeStarTwinkle {
  0%,
  100% {
    opacity: 0.3;
    transform:
      scale(0.8)
      rotate(0deg);
  }

  50% {
    opacity: 1;
    transform:
      scale(1.25)
      rotate(25deg);
  }
}

@keyframes welcomeCardEntrance {
  from {
    opacity: 0;
    transform:
      translateY(30px)
      scale(0.95);
  }

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

@keyframes buttonShine {
  0%,
  35% {
    left: -110px;
  }

  65%,
  100% {
    left: calc(100% + 60px);
  }
}

@keyframes magicStarFloat {
  0%,
  100% {
    opacity: 0.25;
    transform:
      translate3d(0, 18px, 0)
      rotate(-8deg)
      scale(0.78);
  }

  50% {
    opacity: 0.78;
    transform:
      translate3d(9px, -24px, 0)
      rotate(8deg)
      scale(1.08);
  }
}

@keyframes scrollIndicatorFloat {
  0%,
  100% {
    transform:
      translateX(-50%)
      translateY(0);
  }

  50% {
    transform:
      translateX(-50%)
      translateY(-5px);
  }
}

@keyframes scrollIndicatorDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(11px);
  }
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform:
      translate3d(0, -25px, 0)
      rotate(0deg);
  }

  22% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        var(--drift, 0),
        110svh,
        0
      )
      rotate(720deg);
  }
}

/* ==========================================================
   TABLET Y COMPUTADORA
   ========================================================== */

@media (min-width: 700px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-shell {
    width: min(100% - 32px, 660px);
  }
}

/* ==========================================================
   CELULARES
   ========================================================== */

@media (max-width: 640px) {
  body::before {
    background-position: center top;
  }

  .welcome-screen {
    padding:
      calc(14px + env(safe-area-inset-top))
      12px
      calc(14px + env(safe-area-inset-bottom));
  }

  .welcome-card {
    width: min(100%, 420px);
    padding: 24px 18px 27px;
    border-radius: 27px;
  }

  .welcome-card-rainbow {
    width: clamp(210px, 70vw, 300px);
    margin-top: -17px;
    margin-bottom: 5px;
  }

  .welcome-card-unicorn {
    width: clamp(105px, 34vw, 145px);
    margin-top: 5px;
    margin-bottom: 12px;
  }

  .welcome-kicker {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }

  .welcome-date {
    font-size: 0.88rem;
  }

  .open-button {
    width: 100%;
  }

  .hero-fullscreen {
    height: 100svh;
    min-height: 100svh;
    padding:
      calc(20px + env(safe-area-inset-top))
      12px
      calc(48px + env(safe-area-inset-bottom));
  }

  .hero-fullscreen::after {
    top: 49%;
    width: 99vw;
    height: 62%;
    filter: blur(7px);
  }

  .hero-content {
    width: 100%;
    padding: 8px;
    transform: translateY(-1.5vh);
  }

  .hero-kicker {
    margin-bottom: 9px;
    font-size: 0.65rem;
    letter-spacing: 0.17em;
  }

  .hero-title {
    font-size: clamp(2.7rem, 12vw, 3.8rem);
  }

  .hero-name {
    margin-top: -5px;
    margin-bottom: 7px;
    font-size: clamp(5rem, 22vw, 7rem);
  }

  .hero-parents {
    margin-top: 14px;
    margin-bottom: 15px;
    font-size: 0.96rem;
  }

  .hero-copy {
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .content-shell {
    width: min(100% - 16px, 570px);
    padding-top: 52px;
    padding-bottom: 88px;
  }

  .countdown-card,
  .info-card,
  .rsvp-card,
  .footer {
    border-radius: 25px;
  }

  .countdown-card,
  .info-card,
  .rsvp-card {
    padding: 25px 15px;
  }

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

  .time-box {
    padding: 19px 8px;
  }

  .time-box span {
    font-size: 0.66rem;
  }

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

  .detail-location {
    grid-column: 1 / -1;
  }

  .main-button {
    width: 100%;
  }

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

  .music-control {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================
   CELULARES PEQUEÑOS
   ========================================================== */

@media (max-width: 390px) {
  .welcome-card {
    padding-inline: 14px;
  }

  .welcome-card-rainbow {
    width: 210px;
  }

  .welcome-card-unicorn {
    width: 105px;
  }

  .hero-kicker {
    font-size: 0.6rem;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .hero-name {
    font-size: 4.9rem;
  }

  .hero-copy {
    max-width: 325px;
    font-size: 0.84rem;
  }

  .time-box strong {
    font-size: 2rem;
  }

  .detail-item {
    padding-inline: 11px;
  }

  .detail-item strong {
    font-size: 1.02rem;
  }
}

/* ==========================================================
   CELULARES CON POCA ALTURA
   ========================================================== */

@media (max-height: 760px) and (max-width: 640px) {
  .welcome-card {
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .welcome-card-rainbow {
    width: 190px;
    margin-top: -12px;
    margin-bottom: 2px;
  }

  .welcome-card-unicorn {
    width: 92px;
    margin-top: 2px;
    margin-bottom: 8px;
  }

  .welcome-title {
    font-size: 2.2rem;
  }

  .welcome-name {
    font-size: 4.7rem;
  }

  .welcome-date {
    margin-bottom: 16px;
  }

  .welcome-hint {
    margin-top: 9px;
  }

  .hero-content {
    transform: translateY(-1vh);
  }

  .hero-kicker {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-name {
    margin-bottom: 2px;
    font-size: 4.55rem;
  }

  .hero-parents {
    margin-top: 8px;
    margin-bottom: 9px;
    font-size: 0.84rem;
  }

  .hero-copy {
    max-width: 320px;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .scroll-indicator {
    bottom: 5px;
  }
}

/* ==========================================================
   REDUCIR MOVIMIENTO
   ========================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .magic-star,
  .confetti-piece {
    display: none;
  }
}