/* ============================================================
   BABY SHOWER · MÁXIMO — Premium interactive invitation
   Dirección visual: acuarela premium con acabado Disney/Pixar —
   luz suave, profundidad "pintada", texturas de papel y un
   toque de polvo mágico dorado sobre la paleta celeste original.
   ============================================================ */

:root {
  /* ---- Configurable brand colors (kept in sync with script.js) ---- */
  --color-primary: #4f8fa0;      /* teal from ribbon / "BABY" lettering */
  --color-primary-dark: #3a6f7d;
  --color-primary-deep: #2c4d57; /* deepest ink-teal, used for text gradients */
  --color-secondary: #aed3e4;    /* light celeste balloon tone */
  --color-secondary-soft: #d9ecf3;
  --color-bg: #f7fbfc;           /* near-white with a whisper of blue */
  --color-bg-alt: #eef5f8;
  --color-gray: #f0f3f5;
  --color-white: #ffffff;
  --color-paper: #fffefb;        /* warm-white "paper" tone for cards */
  --color-ink: #26424b;          /* soft dark teal-gray for text, not pure black */
  --color-ink-soft: #5c7680;

  /* ---- Warm accents: the Pixar "rim light" against the cool celeste base ---- */
  --color-gold: #eec27e;
  --color-gold-soft: #fbe7c2;
  --color-blush: #f3cdc4;

  /* ---- Painterly shadows: colored, layered, never flat gray ---- */
  --shadow-soft: 0 26px 64px -22px rgba(45, 90, 105, 0.32), 0 6px 18px -8px rgba(45, 90, 105, 0.16);
  --shadow-softer: 0 12px 30px -12px rgba(45, 90, 105, 0.2), 0 2px 8px -4px rgba(45, 90, 105, 0.12);
  --shadow-card: 0 26px 54px -22px rgba(45, 90, 105, 0.28), 0 2px 10px -4px rgba(45, 90, 105, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-btn: 0 18px 40px -14px rgba(79, 143, 160, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --shadow-glow-gold: 0 0 0 1px rgba(238, 194, 126, 0.25), 0 18px 40px -18px rgba(238, 194, 126, 0.55);

  /* ---- Subtle watercolor paper grain (data-uri, no extra request) ---- */
  --texture-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(4rem, 10vw, 9rem);
  --container-w: 720px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis handles smoothing */
  background: var(--color-bg);
}

html, body {
  overscroll-behavior: none;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grano de papel muy sutil sobre todo el sitio: le da al color plano un
   tacto "pintado" en vez de digital. mix-blend-mode preserva el color
   de fondo, solo añade textura. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: var(--texture-grain);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-mark { position: relative; width: 64px; height: 84px; }

.preloader-balloon {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg, var(--color-secondary-soft), var(--color-secondary));
  box-shadow: var(--shadow-softer);
  animation: preloader-pulse 1.4s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ============ AMBIENT PARTICLES ============ */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 500;
  background: transparent;
}

#scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  transform-origin: left;
}

/* ============ LAYOUT HELPERS ============ */
main { position: relative; z-index: 2; }

section {
  position: relative;
  isolation: isolate; /* crea un contexto de apilamiento local: los .decor (z-index:-1) quedan detrás del texto de ESTA sección, no ocultos por el fondo de otra */
  padding: var(--section-pad) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

/* ============ REVEAL PRIMITIVES (GSAP animates from these) ============ */
.reveal-up { opacity: 0; transform: translateY(36px); will-change: transform, opacity; }
.reveal-line { opacity: 0; transform: translateY(14px); will-change: transform, opacity; }
.reveal-scale { opacity: 0; transform: scale(0.85); will-change: transform, opacity; }

/* Safety net: if JS fails, content still appears */
.no-js .reveal-up,
.no-js .reveal-line,
.no-js .reveal-scale { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: 3rem;
  justify-content: flex-start;
  background:
    radial-gradient(60% 45% at 18% 8%, rgba(238, 194, 126, 0.16), transparent 60%),
    radial-gradient(ellipse at 50% 0%, var(--color-secondary-soft) 0%, var(--color-bg) 62%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}
.cloud-1 { width: 260px; height: 120px; top: 8%; left: -5%; }
.cloud-2 { width: 200px; height: 100px; top: 18%; right: -8%; }
.cloud-3 { width: 320px; height: 150px; top: 55%; left: -12%; opacity: 0.5; }
.cloud-4 { width: 220px; height: 110px; top: 68%; right: -10%; opacity: 0.5; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.75rem;
  font-weight: 500;
}

.hero-image-wrap {
  position: relative;
  width: min(78vw, 380px);
  aspect-ratio: 3 / 4;
  margin-bottom: 2rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 6px rgba(255, 255, 255, 0.7), 0 0 0 7px rgba(174, 211, 228, 0.4);
  background: var(--color-white);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateZ(0);
}

.hero-image-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,0.4), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(238, 194, 126, 0.25), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Graceful fallback illustration if assets/hero.png hasn't been added yet */
.hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-secondary-soft), var(--color-secondary));
}
.hero-image-wrap.img-fallback .hero-image { display: none; }
.hero-image-wrap.img-fallback .hero-fallback { display: flex; }

.fallback-balloon { position: relative; width: 55%; }
.fallback-balloon-panel {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg, #ffffff, var(--color-secondary));
  box-shadow: var(--shadow-softer);
}
.fallback-balloon-basket {
  display: block;
  width: 34%;
  aspect-ratio: 1/1;
  margin: -8% auto 0;
  border-radius: 8px;
  background: var(--color-primary);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  background: linear-gradient(180deg, var(--color-primary-dark) 20%, var(--color-primary-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6)) drop-shadow(0 16px 30px rgba(45,90,105,0.2));
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-ink-soft);
  max-width: 30ch;
  margin: 0 0 3rem;
  font-weight: 300;
}

.scroll-cue {
  width: 30px;
  height: 46px;
  border: 1.5px solid var(--color-primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
}

.scroll-cue-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============ STORY LINE ============ */
.story-line {
  min-height: 60vh;
  justify-content: center;
  background: var(--color-bg);
}

.story-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  max-width: 18ch;
  color: var(--color-primary-dark);
  line-height: 1.4;
}

/* ============ NAME REVEAL ============ */
.name-reveal {
  min-height: 70vh;
  justify-content: center;
  background:
    radial-gradient(55% 45% at 82% 18%, rgba(238, 194, 126, 0.14), transparent 65%),
    radial-gradient(50% 40% at 12% 85%, rgba(174, 211, 228, 0.3), transparent 65%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.name-reveal-label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  font-weight: 300;
  margin: 0 0 0.75rem;
}

.name-reveal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 14vw, 7.5rem);
  margin: 0;
  line-height: 1;
  background: linear-gradient(175deg, var(--color-primary-dark) 15%, var(--color-primary-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6)) drop-shadow(0 20px 34px rgba(45,90,105,0.22));
}

.name-underline {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  margin-top: 1.75rem;
  background: linear-gradient(90deg, var(--color-gold), var(--color-secondary), var(--color-primary));
  box-shadow: 0 0 16px 1px rgba(238, 194, 126, 0.5);
}

/* ============ COUNTDOWN ============ */
.countdown-section {
  background:
    radial-gradient(55% 45% at 12% 15%, rgba(174, 211, 228, 0.35), transparent 62%),
    radial-gradient(45% 40% at 88% 85%, rgba(238, 194, 126, 0.16), transparent 65%),
    var(--color-bg-alt);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: clamp(0.75rem, 3vw, 1.75rem);
  max-width: 560px;
  width: 100%;
}

.countdown-unit {
  background: linear-gradient(165deg, var(--color-paper), var(--color-bg-alt));
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.75rem) 0.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.countdown-unit:nth-child(odd) { transform: rotate(-1.1deg); }
.countdown-unit:nth-child(even) { transform: rotate(1.1deg); }
.countdown-unit:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-soft); }

.countdown-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ============ INFO CARD ============ */
.info-section {
  background:
    radial-gradient(50% 40% at 85% 15%, rgba(174, 211, 228, 0.22), transparent 65%),
    var(--color-bg);
}

.info-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, var(--color-paper), #ffffff);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 5vw, 2.75rem);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.info-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(45,90,105,0.2));
}

.info-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.info-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--color-ink);
}

.info-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray) 20%, var(--color-gray) 80%, transparent);
  margin: 1.25rem 0;
}

/* ============ ACTION SECTIONS ============ */
.action-section {
  background:
    radial-gradient(45% 40% at 88% 12%, rgba(238, 194, 126, 0.14), transparent 65%),
    var(--color-bg-alt);
}
.action-section-alt {
  background:
    radial-gradient(45% 40% at 10% 88%, rgba(174, 211, 228, 0.25), transparent 65%),
    var(--color-bg);
}

.action-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-primary-dark);
  max-width: 22ch;
  margin: 0 0 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}

/* Brillo de "cristal pintado" que recorre el botón al pasar el mouse */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.5) 0%, transparent 35%);
  opacity: 0.9;
  pointer-events: none;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: linear-gradient(165deg, #5fa3b3, var(--color-primary) 55%, var(--color-primary-dark));
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn-secondary {
  background: linear-gradient(165deg, var(--color-paper), #ffffff);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-secondary-soft);
}

.btn:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-icon { font-size: 1.1rem; }

/* ============ DESEO PARA MÁXIMO (formulario) ============ */
.wish-hint {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  font-weight: 300;
  max-width: 32ch;
  margin: -0.75rem 0 2rem;
}

.wish-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.wish-input,
.wish-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-ink);
  background: linear-gradient(165deg, var(--color-paper), #ffffff);
  border: 1px solid var(--color-secondary-soft);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-softer);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wish-textarea { resize: vertical; min-height: 100px; font-family: inherit; }

.wish-input:focus,
.wish-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 143, 160, 0.15);
}

.wish-input::placeholder,
.wish-textarea::placeholder { color: var(--color-ink-soft); opacity: 0.7; }

.wish-submit { align-self: center; margin-top: 0.4rem; border: none; }

/* Honeypot anti-spam: oculto visualmente, visible para bots */
.wish-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wish-error {
  color: #b04b4b;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.wish-success {
  max-width: 420px;
  background: linear-gradient(165deg, var(--color-paper), #ffffff);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.wish-success.is-visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ============ FINALE ============ */
.finale {
  min-height: 90vh;
  justify-content: center;
  background:
    radial-gradient(50% 40% at 85% 20%, rgba(238, 194, 126, 0.18), transparent 65%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-secondary-soft) 100%);
  overflow: hidden;
}

#confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.finale-inner {
  position: relative;
  max-width: 34ch;
  z-index: 1;
}

.finale-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 65%);
  pointer-events: none;
}

.finale-emoji {
  font-size: 3rem;
  margin: 0 0 1rem;
  filter: drop-shadow(0 10px 20px rgba(60,110,125,0.25));
}

.finale-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
}

.finale-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
  font-weight: 300;
  margin: 0 0 1.5rem;
}

.finale-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ============ MUSIC PLAYER ============ */
.music-player {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 400;
}

.music-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--color-paper), #ffffff);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.music-bars {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.music-toggle[aria-pressed="true"] .music-icon { opacity: 0; }
.music-toggle[aria-pressed="true"] .music-bars { display: flex; }

.music-bars i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-primary);
  animation: music-bar 1s ease-in-out infinite;
}
.music-bars i:nth-child(2) { animation-delay: 0.2s; }
.music-bars i:nth-child(3) { animation-delay: 0.4s; }

@keyframes music-bar {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}

/* ============ ACENTOS DECORATIVOS (SVG livianos, inspirados en la ilustración) ============ */
.decor {
  position: absolute;
  z-index: -1; /* queda detrás del texto y las tarjetas, nunca las tapa */
  pointer-events: none;
  opacity: 0.55;
  filter: drop-shadow(0 6px 14px rgba(45, 90, 105, 0.14));
}
.decor svg { width: 100%; height: 100%; display: block; }
.decor-sm { width: 30px; height: 30px; }
.decor-md { width: 46px; height: 46px; }
.decor-lg { width: 130px; height: 70px; }
.decor-sprig { width: 44px; height: 68px; }

/* Globos redondos y globos aerostáticos (tonos celeste/azul) */
.decor-round-sm { width: 26px; height: 44px; }
.decor-round-md { width: 36px; height: 60px; }
.decor-hotair-sm { width: 58px; height: 83px; }
.decor-hotair-md { width: 78px; height: 111px; }
.decor-hotair-lg { width: 104px; height: 149px; }

/* Elefante bebé mascota (más presente que el resto de los acentos) */
.decor-elephant-md { width: 128px; height: 118px; }
.decor-elephant-lg { width: 176px; height: 162px; }

/* Polvo mágico: destellos dorados de 4 puntas, tipo "pixie dust" */
.decor-sparkle {
  filter: drop-shadow(0 0 6px rgba(238, 194, 126, 0.65));
  opacity: 0.85;
}
.decor-sparkle-xs { width: 12px; height: 12px; }
.decor-sparkle-sm { width: 18px; height: 18px; }

@keyframes decor-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
.decor-float { animation: decor-float 7s ease-in-out infinite; }
.decor-float-slow { animation: decor-float 9.5s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes decor-twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.25; }
  50% { transform: scale(1.15) rotate(18deg); opacity: 1; }
}
.decor-twinkle { animation: decor-twinkle 3.2s ease-in-out infinite; }
.decor-twinkle-slow { animation: decor-twinkle 4.4s ease-in-out infinite; animation-delay: 0.8s; }

/* Ternura del elefante: oreja que se mueve y parpadeo suave */
.ele-ear {
  transform-origin: 150px 88px;
  animation: ele-ear-flap 3.4s ease-in-out infinite;
}
@keyframes ele-ear-flap {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg); }
}
.ele-eye-open { animation: ele-blink 4.6s ease-in-out infinite; }
.ele-eye-closed { animation: ele-blink-lash 4.6s ease-in-out infinite; }
@keyframes ele-blink {
  0%, 92%, 100% { opacity: 1; }
  95% { opacity: 0; }
}
@keyframes ele-blink-lash {
  0%, 92%, 100% { opacity: 0; }
  95% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .decor-float, .decor-float-slow, .decor-twinkle, .decor-twinkle-slow, .ele-ear, .ele-eye-open, .ele-eye-closed { animation: none; }
}

@media (max-width: 560px) {
  .decor-lg { width: 96px; height: 52px; }
  .decor-md { width: 36px; height: 36px; }
  .decor { opacity: 0.4; }
  .decor-hotair-lg { width: 76px; height: 108px; }
  .decor-hotair-md { width: 58px; height: 83px; }
  .decor-hotair-sm { width: 44px; height: 63px; }
  .decor-round-md { width: 26px; height: 44px; }
  .decor-round-sm { width: 20px; height: 34px; }
  .decor-elephant-md { width: 96px; height: 88px; }
  .decor-elephant-lg { width: 128px; height: 118px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .countdown-unit { padding: 0.85rem 0.25rem; border-radius: 16px; }
  .info-row { gap: 0.85rem; }
}

@media (min-width: 900px) {
  :root { --container-w: 820px; }
  .hero-image-wrap { width: min(40vw, 420px); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
