/* ==========================================================================
   FELIZ CUMPLEAÑOS GABRIELA (GABI) — PALETA PASTEL SCRAPBOOK & TULIPANES
   Inspirado en polaroids artesanales, papel lino crema, cinta washi y tulipanes
   ========================================================================== */

:root {
  --bg-linen: #faf5ec;
  --bg-cream: #f5ede0;
  --paper-white: #fffdf9;
  --ink-primary: #3f3136;
  --ink-soft: #6f5d64;
  --ink-muted: #99858d;

  --pastel-pink: #f3c4d2;
  --pastel-pink-soft: #fbe8ee;
  --pastel-pink-deep: #d27d96;
  --pastel-lavender: #dfd4ef;
  --pastel-lavender-soft: #f2ecfa;
  --pastel-sage: #cfe0cc;
  --pastel-sage-soft: #edf4ec;
  --pastel-peach: #f8d9c8;
  --pastel-peach-soft: #fdf0e8;
  --pastel-gold: #dfbe7f;
  --heart-wine: #7d293e;

  --shadow-polaroid: 0 14px 32px rgba(92, 65, 74, 0.12), 0 3px 8px rgba(92, 65, 74, 0.07);
  --shadow-card: 0 12px 28px rgba(92, 65, 74, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-hand: 'Caveat', cursive;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg-linen);
  /* Textura sutil de papel lino crema inspirada en la imagen de referencia */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(243, 196, 210, 0.34), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(223, 212, 239, 0.38), transparent 32%),
    radial-gradient(circle at 78% 78%, rgba(207, 224, 204, 0.32), transparent 36%),
    repeating-linear-gradient(
      0deg,
      rgba(165, 140, 120, 0.03) 0px,
      rgba(165, 140, 120, 0.03) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(165, 140, 120, 0.03) 0px,
      rgba(165, 140, 120, 0.03) 1px,
      transparent 1px,
      transparent 6px
    );
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1140px, calc(100% - 2.2rem));
  margin-inline: auto;
}

/* ==========================================================================
   CINTAS WASHI ARTESANALES
   ========================================================================== */
.washi-tape {
  position: absolute;
  width: 92px;
  height: 24px;
  opacity: 0.88;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(70, 50, 55, 0.1);
  clip-path: polygon(2% 0%, 98% 2%, 100% 96%, 0% 100%, 2% 52%);
}

.washi-pink-dots {
  background-color: #eea7bc;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1.6px, transparent 1.6px);
  background-size: 9px 9px;
}

.washi-beige {
  background-color: #dfd0ba;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 4px,
    transparent 4px,
    transparent 8px
  );
}

.washi-lavender {
  background-color: #d3c2ea;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.4px, transparent 1.4px);
  background-size: 10px 10px;
}

.washi-sage {
  background-color: #bfd4bc;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.25) 0,
    rgba(255, 255, 255, 0.25) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* ==========================================================================
   BOTONES Y CHIPS PASTEL
   ========================================================================== */
.btn-pastel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #e79db4, #d685a0);
  color: #fffdf9;
  box-shadow: 0 10px 22px rgba(210, 125, 150, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(210, 125, 150, 0.42);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-soft {
  background: var(--paper-white);
  color: var(--ink-primary);
  border-color: rgba(210, 125, 150, 0.42);
  box-shadow: 0 8px 18px rgba(92, 65, 74, 0.06);
}

.btn-soft:hover {
  background: var(--pastel-pink-soft);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0.4rem;
}

.btn-link:hover {
  color: var(--ink-primary);
}

.pastel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip-pink {
  background: var(--pastel-pink-soft);
  color: #9e4b65;
  border: 1px solid rgba(210, 125, 150, 0.3);
}

.chip-lavender {
  background: var(--pastel-lavender-soft);
  color: #6b528d;
  border: 1px solid rgba(169, 146, 204, 0.35);
}

.chip-sage {
  background: var(--pastel-sage-soft);
  color: #4f704d;
  border: 1px solid rgba(141, 173, 138, 0.35);
}

/* ==========================================================================
   OVERLAY DE BIENVENIDA (SOBRE / TARJETA REGALO)
   ========================================================================== */
.gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(243, 196, 210, 0.5), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(223, 212, 239, 0.5), transparent 45%),
    rgba(250, 245, 236, 0.96);
  backdrop-filter: blur(8px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gift-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gift-card {
  position: relative;
  width: min(490px, 100%);
  background: var(--paper-white);
  border-radius: 28px;
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  border: 1px solid rgba(210, 125, 150, 0.25);
  box-shadow: 0 26px 60px rgba(92, 65, 74, 0.14);
}

.gift-tape-top {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
}

.gift-tulip-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 0.4rem;
}

.tulip-emblem {
  width: 100%;
  height: 100%;
  animation: gentleFloat 4.2s ease-in-out infinite;
}

.gift-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8f6b99;
}

.gift-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.happy-word {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-primary);
}

.birthday-script {
  font-family: var(--font-script);
  font-size: clamp(3.3rem, 7vw, 4.7rem);
  font-weight: 400;
  color: var(--pastel-pink-deep);
  line-height: 0.95;
  margin-top: -0.15rem;
}

.gift-name {
  margin: 0.45rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.gift-sub {
  margin: 0 auto 1.6rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gift-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

/* ==========================================================================
   NAVEGACIÓN FLOTANTE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(210, 125, 150, 0.24);
  box-shadow: 0 10px 26px rgba(92, 65, 74, 0.08);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pill::-webkit-scrollbar {
  display: none;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.zodiac-mark {
  color: #9e74b5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--pastel-pink-soft);
  color: var(--ink-primary);
}

/* ==========================================================================
   HERO SCRAPBOOK
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.sagittarius-constellation {
  position: absolute;
  top: 1.4rem;
  right: 3%;
  width: 240px;
  opacity: 0.85;
  pointer-events: none;
}

.constellation-stars circle {
  animation: twinkle 3.2s ease-in-out infinite alternate;
}

.constellation-stars circle:nth-child(2n) {
  animation-delay: 0.9s;
}

.constellation-stars circle:nth-child(3n) {
  animation-delay: 1.7s;
}

.vintage-script-scrap {
  position: absolute;
  left: -38px;
  bottom: -20px;
  width: 230px;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, #efe4d1, #e5d5bc);
  color: rgba(88, 66, 52, 0.42);
  font-family: var(--font-script);
  font-size: 1.2rem;
  line-height: 1.2;
  transform: rotate(-7deg);
  clip-path: polygon(0 12%, 82% 0, 100% 35%, 94% 100%, 0 100%);
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gabi-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-primary);
  margin-top: 0.1rem;
  letter-spacing: -0.01em;
}

.hero-nickname {
  margin: 0.5rem 0 1rem;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  color: #9e4b65;
}

.hero-lead {
  margin: 0 0 1.8rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-trio-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.82);
  border: 1px dashed rgba(169, 146, 204, 0.55);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.trio-zodiac {
  font-weight: 700;
  color: #6b528d;
}

.trio-sep {
  color: var(--pastel-pink-deep);
}

.trio-caption {
  padding-left: 0.4rem;
  border-left: 1px solid rgba(169, 146, 204, 0.35);
  font-style: italic;
}

/* Collage de 3 Polaroids + Ramo de Tulipanes en el Hero */
.hero-scrapbook {
  position: relative;
  min-height: 575px;
}

.polaroid {
  position: relative;
  margin: 0;
  background: var(--paper-white);
  padding: 12px 12px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-polaroid);
  border: 1px solid rgba(130, 100, 110, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-img-box {
  background: #eee7dc;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 4.4;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.polaroid-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.72rem;
}

.polaroid-note {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-primary);
  line-height: 1.15;
}

.polaroid-heart {
  color: var(--heart-wine);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hero-p1 {
  position: absolute;
  top: 0;
  right: 14px;
  width: 235px;
  transform: rotate(2.6deg);
  z-index: 4;
}

.hero-p2 {
  position: absolute;
  top: 135px;
  left: 0;
  width: 222px;
  transform: rotate(-3.2deg);
  z-index: 3;
}

.hero-p3 {
  position: absolute;
  bottom: 0;
  right: 36px;
  width: 218px;
  transform: rotate(1.8deg);
  z-index: 5;
}

.hero-p1:hover,
.hero-p2:hover,
.hero-p3:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  z-index: 8;
}

.tape-top-right {
  top: -10px;
  right: -18px;
  transform: rotate(24deg);
}

.tape-top-left {
  top: -10px;
  left: -18px;
  transform: rotate(-32deg);
}

.tape-top-left-sm {
  top: -11px;
  left: 20px;
  width: 78px;
  transform: rotate(-11deg);
}

.hero-tulip-bouquet {
  position: absolute;
  right: -24px;
  bottom: 58px;
  width: 175px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(130, 82, 98, 0.14));
  animation: gentleFloat 5s ease-in-out infinite;
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-heading {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.8rem;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a65c74;
}

.section-heading h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink-primary);
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ==========================================================================
   SECCIÓN 1: LA ESENCIA DE GABI
   ========================================================================== */
.essence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.essence-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.45rem;
  border: 1px solid rgba(92, 65, 74, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}

.essence-card:hover {
  transform: translateY(-4px);
}

.card-lavender {
  background: linear-gradient(180deg, #f6f1fc, #eee6f9);
}

.card-pink {
  background: linear-gradient(180deg, #fdf0f4, #fae2ea);
}

.card-peach {
  background: linear-gradient(180deg, #fef4ee, #fbe8dc);
}

.card-sage {
  background: linear-gradient(180deg, #f2f7f1, #e6f0e5);
}

.essence-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.85);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(92, 65, 74, 0.07);
}

.essence-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.essence-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   SECCIÓN 2: LA CARTA COMPLETA PARA GABI
   ========================================================================== */
.letter-paper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper-white);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(210, 125, 150, 0.11) 32px);
  background-size: 100% 32px;
  padding: 3.4rem clamp(1.5rem, 5vw, 4rem) 3rem;
  border-radius: 18px;
  border: 1px solid rgba(210, 125, 150, 0.22);
  box-shadow: 0 22px 48px rgba(92, 65, 74, 0.1);
}

.letter-tape-left {
  top: -12px;
  left: 38px;
  transform: rotate(-14deg);
}

.letter-tape-right {
  top: -12px;
  right: 38px;
  transform: rotate(12deg);
}

.letter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.letter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  color: var(--ink-primary);
}

.tulip-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.tulip-divider span:first-child,
.tulip-divider span:last-child {
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, rgba(210, 125, 150, 0.55), transparent);
}

.divider-tulip {
  font-size: 1.05rem;
  letter-spacing: 0.25em;
}

.letter-body {
  font-size: 1.05rem;
  line-height: 1.92;
  color: var(--ink-primary);
}

.letter-body p {
  margin: 0 0 1.25rem;
}

.letter-opening {
  font-family: var(--font-script);
  font-size: 2.35rem;
  color: var(--pastel-pink-deep);
  line-height: 1.2;
  margin-bottom: 1.1rem !important;
}

.letter-quote {
  margin: 1.8rem 0;
  padding: 1.3rem 1.6rem;
  background: var(--pastel-pink-soft);
  border-left: 4px solid var(--pastel-pink-deep);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  color: #6a2f43;
}

.letter-closing {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--heart-wine);
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

.letter-footer {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(210, 125, 150, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.letter-signature {
  display: flex;
  flex-direction: column;
}

.sig-script {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.sig-meta {
  font-size: 0.85rem;
  color: #7d6296;
  font-weight: 600;
}

.wax-seal {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e796ae, #b75a75);
  color: #fff6f8;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.45), 0 8px 18px rgba(145, 62, 86, 0.28);
  border: 2px dashed rgba(255, 240, 244, 0.55);
}

/* ==========================================================================
   SECCIÓN 3: ÁLBUM POLAROID
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.filter-pill {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(210, 125, 150, 0.32);
  background: var(--paper-white);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: var(--pastel-pink-soft);
  color: var(--ink-primary);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, #e79db4, #d685a0);
  color: #fffdf9;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(210, 125, 150, 0.3);
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 2.2rem 1.8rem;
  align-items: start;
}

.gallery-polaroid {
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
}

.gallery-polaroid:hover {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: 0 20px 42px rgba(92, 65, 74, 0.16);
}

.gallery-polaroid:hover .polaroid-img-box img {
  transform: scale(1.04);
}

.gallery-polaroid .washi-tape {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.gallery-polaroid .polaroid-img-box {
  aspect-ratio: 4 / 4.2;
}

.polaroid-caption-block {
  padding-top: 0.78rem;
}

.polaroid-caption-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.polaroid-card-title {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.15;
}

.polaroid-card-text {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   SECCIÓN 4: VIDEOS EN MOVIMIENTO
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.video-polaroid {
  padding: 14px 14px 18px;
}

.video-polaroid .washi-tape {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.video-frame {
  border-radius: 6px;
  overflow: hidden;
  background: #231c1f;
  aspect-ratio: 9 / 12;
  max-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1b1618;
}

/* ==========================================================================
   SECCIÓN 5: MURO DE FELIZ CUMPLEAÑOS (CLOUDFLARE D1)
   ========================================================================== */
.wishes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.wish-form-card {
  position: relative;
  background: var(--paper-white);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem 1.8rem;
  border: 1px solid rgba(210, 125, 150, 0.24);
  box-shadow: var(--shadow-card);
}

.wish-tape {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.wish-form-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink-primary);
}

.field-group {
  margin-bottom: 1.15rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.char-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.char-counter.near-limit {
  color: var(--heart-wine);
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(175, 145, 155, 0.35);
  background: #fffaf5;
  color: var(--ink-primary);
  font-size: 0.96rem;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-group textarea {
  resize: vertical;
  min-height: 170px;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--pastel-pink-deep);
  box-shadow: 0 0 0 4px rgba(243, 196, 210, 0.45);
}

.wish-feedback {
  min-height: 1.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.wish-feedback.is-success {
  color: #427041;
}

.wish-feedback.is-error {
  color: #a6324d;
}

.wish-list-wrap {
  background: rgba(255, 253, 249, 0.72);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid rgba(210, 125, 150, 0.2);
}

.wish-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.wish-list-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink-primary);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.wishes-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(210, 125, 150, 0.4);
  border-radius: 99px;
}

.wish-item {
  background: var(--paper-white);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(210, 125, 150, 0.22);
  box-shadow: 0 6px 16px rgba(92, 65, 74, 0.05);
  animation: wishPop 0.35s ease;
}

.wish-item:nth-child(3n + 2) {
  border-color: rgba(169, 146, 204, 0.32);
}

.wish-item:nth-child(3n) {
  border-color: rgba(141, 173, 138, 0.35);
}

.wish-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.wish-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wish-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pastel-pink-soft);
  color: #9e4b65;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wish-item:nth-child(3n + 2) .wish-avatar {
  background: var(--pastel-lavender-soft);
  color: #6b528d;
}

.wish-item:nth-child(3n) .wish-avatar {
  background: var(--pastel-sage-soft);
  color: #4f704d;
}

.wish-author {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.wish-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.wish-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.wishes-loading,
.wishes-empty {
  margin: 1rem 0;
  text-align: center;
  color: var(--ink-muted);
  font-style: italic;
}

/* ==========================================================================
   SECCIÓN FINAL: HOMENAJE A SUS GATOS
   ========================================================================== */
.cats-finale-section {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.cats-finale-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
  gap: 2.8rem;
  align-items: center;
  background: linear-gradient(135deg, #fdf3f6, #f4eefb 55%, #f2f7f0);
  border-radius: 30px;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  border: 1px solid rgba(210, 125, 150, 0.25);
  box-shadow: 0 22px 52px rgba(92, 65, 74, 0.1);
}

.cats-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ink-primary);
}

.cats-caption {
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.cats-closing-box {
  background: rgba(255, 253, 249, 0.86);
  border-radius: 20px;
  padding: 1.45rem 1.55rem;
  border: 1px dashed rgba(210, 125, 150, 0.45);
}

.cats-toast {
  margin: 0 0 0.4rem;
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--pastel-pink-deep);
  line-height: 1.1;
}

.cats-subtoast {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cats-signature {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heart-wine);
}

.cats-polaroid {
  max-width: 360px;
  margin-inline: auto;
  transform: rotate(1.8deg);
}

.cats-polaroid:hover {
  transform: rotate(0deg) translateY(-5px);
}

.cats-img-box {
  aspect-ratio: 3 / 4.2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 1.6rem 1.2rem 5.4rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(45, 34, 38, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  z-index: 910;
  width: min(680px, 100%);
  max-height: 92vh;
}

.lightbox-polaroid {
  padding: 14px 14px 20px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox-img-wrap {
  background: #231c1f;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 64vh;
}

.lightbox-img-wrap img {
  max-height: 64vh;
  width: auto;
  object-fit: contain;
}

.lightbox-caption-wrap {
  padding-top: 1rem;
}

.lightbox-caption-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.lightbox-caption-head h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--ink-primary);
}

.lightbox-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.lightbox-caption-wrap p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 960;
  border: none;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--pastel-pink-soft);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.15rem;
}

.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   REPRODUCTOR DE MÚSICA FLOTANTE
   ========================================================================== */
.music-player {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(210, 125, 150, 0.34);
  box-shadow: 0 12px 28px rgba(92, 65, 74, 0.16);
}

.music-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e79db4, #d685a0);
  color: #fffdf9;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.06);
}

.music-info {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.music-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.music-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-eq span {
  width: 3px;
  height: 5px;
  border-radius: 99px;
  background: var(--pastel-pink-deep);
  transition: height 0.2s ease;
}

.music-player.is-playing .music-eq span {
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.music-player.is-playing .music-eq span:nth-child(2) {
  animation-delay: 0.25s;
}

.music-player.is-playing .music-eq span:nth-child(3) {
  animation-delay: 0.5s;
}

/* ==========================================================================
   CELEBRACIÓN DE PÉTALOS Y ESTRELLAS
   ========================================================================== */
.celebration-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 800;
  overflow: hidden;
}

.petal-particle {
  position: absolute;
  top: -30px;
  font-size: 1.1rem;
  opacity: 0.9;
  animation: petalFall var(--dur, 4.5s) ease-in forwards;
}

/* ==========================================================================
   ANIMACIONES SUAVES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

@keyframes twinkle {
  from {
    opacity: 0.45;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes eqBounce {
  from {
    height: 4px;
  }
  to {
    height: 16px;
  }
}

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

@keyframes petalFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.95;
  }
  100% {
    transform: translateY(105vh) translateX(var(--drift, 40px)) rotate(320deg);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .wishes-layout,
  .cats-finale-card {
    grid-template-columns: 1fr;
  }

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

  .hero-scrapbook {
    max-width: 480px;
    width: 100%;
    margin: 0.5rem auto 0;
    min-height: 470px;
  }

  .sagittarius-constellation {
    width: 185px;
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 0 4rem;
  }

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

  .hero-scrapbook {
    min-height: 420px;
  }

  .hero-p1 {
    width: 195px;
    right: 0;
  }

  .hero-p2 {
    width: 185px;
    top: 108px;
  }

  .hero-p3 {
    width: 180px;
    right: 26px;
  }

  .hero-tulip-bouquet {
    width: 132px;
    right: -12px;
    bottom: 52px;
  }

  .lightbox-prev {
    left: 0.6rem;
  }

  .lightbox-next {
    right: 0.6rem;
  }

  .music-player {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  }
}
