/* =====================================================================
   BLOQUE 1 — CSS BASE (mobile-first: diseño de celular vertical,
   SIN media queries)
   ===================================================================== */

/* ---------- 1.1 Tokens ---------- */
:root {
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Sacramento', 'Brush Script MT', cursive;

  --c-red: #f43f5e;
  --c-yellow: #fbbf24;
  --c-green: #34d399;
  --c-blue: #60a5fa;
  --c-purple: #c084fc;
  --c-orange: #f97316;

  --page-bg: #fdf0ff;
  --topbar-bg: #fdf0ff;
  --closing-bg: linear-gradient(135deg, #ffe4ef 0%, #fff8e7 50%, #efe7ff 100%);
  --closing-title: #e6007e;
  --closing-text: #5b5678;

  --glass-bg: rgba(255, 255, 255, .17);
  --glass-line: rgba(255, 255, 255, .16);
  --glass-blur: 10px;

  --bar-h: 3rem;
  --garland-h: 44px;
  --pad-x: 1.1rem;
  --content-w: 38rem;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 1.2 Reset y tipografía base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 1.3 Barra superior ---------- */
.topbar {
  position: relative;
  height: var(--bar-h);
  overflow: hidden;
  background: var(--topbar-bg);
  display: none;
}

/* ---------- 1.4 Guirnaldas y banderines ----------
   En móvil la guirnalda se reduce al 80% (se restaura a 100% más abajo) */
.garland {
  position: absolute;
  left: 0;
  z-index: 6;
  width: 125%;
  height: var(--garland-h);
  pointer-events: none;
  transform: scale(.8);
  transform-origin: left top;
  display: none;
}
.garland--top { top: .35rem; }
.garland--bottom {
  bottom: -16px;
  transform-origin: left bottom;
}
.topbar .garland { top: .4rem; }

.bunting {
  position: absolute;
  top: -2px;
  left: -1%;
  z-index: 5;
  width: clamp(12rem, 58vw, 20rem);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent);
  mask-image: linear-gradient(90deg, #000 62%, transparent);
  display: none;
}

/* ---------- 1.5 Sección (slide) genérica ----------
   Móvil: arriba la escena con la bebé, abajo el contenido apilado.
   --stage-h = altura que ocupa la escena antes de empezar el contenido */
.slide {
  --scene-image: none;
  --badge-bg: #ff2d8d;
  --title-grad: linear-gradient(90deg, #ff3b6b, #ff7a30);
  --baby-w: 9rem;
  --baby-top: 4.4rem;
  --stage-h: calc(var(--baby-top) + var(--baby-w) * 1.134);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  color: #fff;
}

.slide--hero {
  --baby-top: 9.2rem;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100svh - var(--bar-h));
  min-height: 100vh;
}
.slide--fiesta,
.slide--ubicacion { --baby-top: 7.4rem; }

.slide__scene {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: 19% top;
  background-size: cover;
}

/* Velo desenfocado: la escena se funde con la zona del texto */
/* .slide__veil {
  position: absolute;
  inset: calc(var(--stage-h) - 1.5rem) 0 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 18, 12, 0), rgba(24, 18, 12, .5) 30%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%);
  mask-image: linear-gradient(180deg, transparent, #000 18%);
} */

/* ---------- 1.6 Escenas de fondo ----------
   Para usar fotos reales: descomenta --scene-image y apunta al archivo.
   Sin imagen se muestra el degradado ilustrado. */
.slide--hero { --scene-image: url('img/foto-1.2.png'); }
.slide--fiesta { --scene-image: url('img/foto-2.png'); }
.slide--programa { --scene-image: url('img/foto-3.png'); }
.slide--ubicacion { --scene-image: url('img/foto-4.png'); }

.slide--hero .slide__scene {
  background-image:
    var(--scene-image),
    linear-gradient(90deg, #4a3320 0, #5b4028 5%, rgba(91, 64, 40, 0) 12%),
    linear-gradient(0deg, rgba(132, 178, 64, .55) 0, rgba(132, 178, 64, 0) 24%),
    radial-gradient(ellipse 34rem 26rem at 20% 26%, rgba(255, 218, 130, .85), rgba(255, 218, 130, 0) 70%),
    radial-gradient(ellipse 22rem 18rem at 60% 6%, rgba(196, 214, 224, .5), rgba(196, 214, 224, 0) 72%),
    linear-gradient(100deg, #8aa650 0%, #587532 28%, #34532b 55%, #1e3521 100%);
}

.slide--fiesta {
  --badge-bg: #2f7bff;
  --title-grad: linear-gradient(90deg, #1fc7e6, #2aa8f0);
}
.slide--fiesta .slide__scene {
  background-image:
    var(--scene-image),
    linear-gradient(0deg, #5da231 0, #7fbe45 26%, rgba(127, 190, 69, 0) 27%),
    radial-gradient(ellipse 9rem 11rem at 5% 42%, #f2c94c 55%, transparent 56%),
    radial-gradient(ellipse 7rem 9rem at 8% 33%, #8b5bd6 60%, transparent 61%),
    radial-gradient(ellipse 13rem 7rem at 60% 46%, #f7f3ea 60%, transparent 61%),
    radial-gradient(ellipse 8rem 12rem at 88% 48%, #e35a4d 55%, transparent 56%),
    linear-gradient(180deg, #5fb4ee 0%, #a9dcfb 55%, #cfeaf8 100%);
}

.slide--programa {
  --badge-bg: #a855f7;
  --title-grad: linear-gradient(90deg, #b56cf2, #e262c6);
}
.slide--programa .slide__scene {
  background-image:
    var(--scene-image),
    linear-gradient(0deg, #86a852 0, #a6c06a 18%, rgba(166, 192, 106, 0) 19%),
    radial-gradient(ellipse 12rem 16rem at 92% 40%, #e08fbd 0, rgba(224, 143, 189, .9) 50%, transparent 72%),
    radial-gradient(ellipse 20rem 11rem at 60% 34%, rgba(255, 226, 176, .75), transparent 70%),
    linear-gradient(180deg, #a9d3f2 0%, #f1d2c6 45%, #e6b0c2 70%, #c5b68e 100%);
}

.slide--ubicacion {
  --badge-bg: #ff9a1f;
  --title-grad: linear-gradient(90deg, #ff9f1c, #ff7a00);
}
.slide--ubicacion .slide__scene {
  background-image:
    var(--scene-image),
    radial-gradient(ellipse 4.6rem 5.6rem at 66% 12%, #d6b23c 92%, transparent 94%),
    radial-gradient(ellipse 4.2rem 5.2rem at 78% 22%, #b53d69 92%, transparent 94%),
    radial-gradient(ellipse 4.4rem 5.4rem at 90% 10%, #7a4aa8 92%, transparent 94%),
    radial-gradient(ellipse 4rem 5rem at 84% 44%, #e0743a 92%, transparent 94%),
    radial-gradient(ellipse 16rem 12rem at 96% 88%, rgba(214, 90, 140, .75), transparent 70%),
    linear-gradient(90deg, #4f9fe8 0%, #a9d6f6 36%, #c9a56d 56%, #a06a3c 100%);
}

/* ---------- 1.7 Bebé (ilustración) ----------
   Para usar la foto real: reemplaza el <svg class="baby__art"> por
   <img class="baby__art" src="img/amelie-1.png" alt=""> */
.baby {
  position: absolute;
  z-index: 1;
  top: var(--baby-top);
  left: 50%;
  width: var(--baby-w);
  aspect-ratio: 300 / 340;
  transform: translateX(-50%);
  pointer-events: none;
  animation: bob 5s ease-in-out infinite alternate;
}

.baby__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .28));
}

/* Poste del carrusel (solo sección programa) */
.pole {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2rem;
  margin-left: -4.6rem;
  background: linear-gradient(90deg, #7a4d17, #e6b54f 40%, #f6d886 55%, #8a5a1c);
  box-shadow: 0 0 24px rgba(0, 0, 0, .25);
  display: none;
}

/* ---------- 1.8 Textos decorativos sobre la imagen ---------- */
.neon {
  position: absolute;
  z-index: 2;
  top: 3.6rem;
  left: 50%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .86;
  text-align: center;
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: none;
  display: none;
}
.neon__small {
  display: block;
  font-size: 1.8rem;
  color: #b6dcff;
  text-shadow: 0 0 6px #7cc0ff, 0 0 18px #3d9bff, 0 0 34px #3d9bff;
}
.neon__big {
  display: block;
  font-size: 3.6rem;
  color: #ffc4f7;
  text-shadow: 0 0 8px #ff7de9, 0 0 22px #ff4fd8, 0 0 44px #ff2fc8;
}

.script-tag {
  position: absolute;
  z-index: 2;
  top: 4rem;
  left: 50%;
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 2px rgba(0, 0, 0, .4);
  transform: translateX(-50%) rotate(-7deg);
  pointer-events: none;
  display: none;
}

/* ---------- 1.9 Contenido ---------- */
.slide__content {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--stage-h);
  padding: 1.6rem var(--pad-x) 4.6rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .95rem;
  border-radius: 999px;
  background: var(--badge-bg);
  font: 700 .7rem / 1 var(--font-display);
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.title {
  margin: .7rem 0 .8rem;
  font: 700 2.1rem / 1.02 var(--font-display);
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .14));
}

.lead {
  margin: 0 0 1.1rem;
  font: 800 1rem / 1.3 var(--font-body);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.credits {
  margin: 1rem 0 0;
  font: 800 .82rem / 1.3 var(--font-body);
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* Píldoras de vidrio */
.pill-list {
  display: grid;
  gap: .65rem;
  width: 100%;
  max-width: 30rem;
}
.pill {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.05rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  font: 800 .86rem / 1.25 var(--font-body);
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.pill__icon {
  flex: none;
  width: 1.5rem;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
}

/* Programa del día */
.timeline {
  display: grid;
  gap: .45rem;
  width: 100%;
  max-width: 30rem;
}
.timeline__row {
  display: grid;
  grid-template-columns: 4.3rem minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
}
.time {
  padding: .32rem .5rem;
  border-radius: 999px;
  background: var(--t, #06b6d4);
  font: 700 .72rem / 1.1 var(--font-display);
  text-align: center;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.event {
  padding: .58rem .95rem;
  border: 1px solid var(--glass-line);
  border-radius: 1rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  font: 800 .84rem / 1.25 var(--font-body);
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* Tarjeta de mapa */
.map-card {
  width: 100%;
  max-width: 30rem;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 1.4rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
.map-card__head {
  display: grid;
  gap: .15rem;
  padding: .85rem 1.2rem .7rem;
  text-align: left;
}
.map-card__place {
  margin: 0;
  font: 800 1rem / 1.2 var(--font-body);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.map-card__when {
  margin: 0;
  font: 700 .85rem / 1.2 var(--font-body);
  color: rgba(255, 255, 255, .72);
}
.map-card__frame { position: relative; }
.map-card__map {
  width: 100%;
  height: 10.5rem;
  border: 0;
}
.map-chip {
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .45rem .9rem;
  border-radius: .35rem;
  background: #fff;
  font: 800 .85rem / 1 var(--font-body);
  color: #1a73e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 30rem;
  margin-top: .75rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  font: 800 .95rem / 1.2 var(--font-body);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-map:hover { background: rgba(255, 255, 255, .3); }
.btn-map:active { transform: scale(.98); }

/* ---------- 1.10 Mariposas ---------- */
.butterflies {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.butterfly {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s, 2.2rem);
  color: var(--c, #f9a8c0);
  animation: drift var(--d, 9s) ease-in-out infinite alternate;
}
.butterfly svg {
  width: 100%;
  height: auto;
  animation: flap .55s ease-in-out infinite alternate;
}

/* ---------- 1.11 Cierre ---------- */
.closing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 55vh, 32rem);
  padding: 3.5rem var(--pad-x) 6rem;
  overflow: hidden;
  text-align: center;
  color: var(--closing-text);
  background: var(--closing-bg);
}
.closing__inner {
  position: relative;
  z-index: 3;
  max-width: 34rem;
}
.closing__party {
  display: block;
  margin-bottom: .4rem;
  font-size: 2.6rem;
  line-height: 1;
}
.closing__title {
  margin: 0 0 .7rem;
  font: 700 clamp(2rem, 4.4vw, 3rem) / 1.1 var(--font-display);
  color: var(--closing-title);
}
.closing__text {
  max-width: 24rem;
  margin: 0 auto 1.4rem;
  font: 800 clamp(1rem, 1.5vw, 1.15rem) / 1.5 var(--font-body);
}
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  font-size: 1.15rem;
  line-height: 1;
}
.emoji-row span { transition: transform .2s var(--ease-out); }
.emoji-row span:hover { transform: translateY(-4px) scale(1.15); }

/* ---------- 1.12 Entrada al hacer scroll (solo con JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .is-visible .reveal {
  opacity: 1;
  transform: none;
}
.js .baby__art {
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .7s ease, transform .8s var(--ease-out);
}
.js .is-visible .baby__art {
  opacity: 1;
  transform: none;
  display: none;
}

/* ---------- 1.13 Animaciones ---------- */
@keyframes bob {
  from { translate: 0 0; }
  to { translate: 0 -.6rem; }
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(-6deg); }
  to { transform: translate(1.6rem, -2rem) rotate(8deg); }
}
@keyframes flap {
  from { transform: scaleX(1); }
  to { transform: scaleX(.45); }
}


/* =====================================================================
   BLOQUE 2 — MEDIA QUERIES (mobile-first, solo min-width)
   Orden: de menor a mayor ancho. Las condiciones de orientación / altura
   se apoyan en min-width. Al final: preferencias del usuario.
   ===================================================================== */

/* ---------- 2.1 Móvil estándar (≥ 361px) ---------- */
@media (min-width: 361px) {
  .slide { --baby-w: clamp(9.5rem, 46vw, 13rem); }

  .badge { font-size: .76rem; }
  .title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .pill { font-size: .92rem; }
  .timeline__row { grid-template-columns: 4.7rem minmax(0, 1fr); }
  .event { font-size: .88rem; }

  .neon__small { font-size: 2rem; }
  .neon__big { font-size: 4.1rem; }
  .script-tag { font-size: 2.5rem; }

  .emoji-row { font-size: 1.3rem; }
}

/* ---------- 2.2 Móvil grande y tablet vertical (≥ 481px) ---------- */
@media (min-width: 481px) {
  :root { --pad-x: 1.25rem; }

  .slide { --baby-w: clamp(10.5rem, 44vw, 17rem); }

  .garland {
    width: 100%;
    transform: none;
  }

  .badge { font-size: .8rem; }
  .title { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .lead { font-size: 1.05rem; }

  .pill {
    gap: .9rem;
    padding: .9rem 1.4rem;
    font-size: 1rem;
  }
  .pill__icon {
    width: 1.7rem;
    font-size: 1.35rem;
  }

  .timeline__row { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .time {
    padding: .38rem .7rem;
    font-size: .78rem;
  }
  .event {
    padding: .6rem 1.1rem;
    font-size: .92rem;
  }

  .neon__small { font-size: 2.3rem; }
  .neon__big { font-size: 4.6rem; }
  .script-tag { font-size: 2.9rem; }

  .map-card__map { height: 12rem; }
  .btn-map { font-size: 1rem; }

  .closing { padding: 4.5rem var(--pad-x) 6rem; }
  .closing__party { font-size: 3.2rem; }
  .emoji-row {
    gap: .9rem;
    font-size: 1.5rem;
  }
}

/* ---------- 2.3 Layout de dos columnas ----------
   Se activa en pantallas anchas (≥ 769px) y también en celulares
   horizontales (≥ 568px). Aquí van los tamaños compactos, pensados
   para poca altura; los tamaños amplios se recuperan en 2.4 en adelante. */
@media (min-width: 769px), (min-width: 568px) and (orientation: landscape) {
  :root {
    --bar-h: 2.6rem;
    --content-w: 38rem;
    --pad-x: clamp(1rem, 2.4vw, 2.5rem);
  }

  .slide {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: center;
    padding: 3.6rem var(--pad-x) 3.4rem 0;
  }

  .slide__scene { background-position: center; }
  .slide__veil {
    inset: 0 0 0 30%;
    background: linear-gradient(90deg, rgba(24, 18, 12, 0), rgba(24, 18, 12, .42) 40%, rgba(24, 18, 12, .5));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
    mask-image: linear-gradient(90deg, transparent, #000 24%);
  }

  .bunting { width: clamp(10rem, 30vw, 16rem); }

  .pole {
    left: 9%;
    width: clamp(1.6rem, 3vw, 2.6rem);
    margin-left: 0;
  }

  .baby {
    top: auto;
    bottom: -9%;
    left: 12%;
    width: clamp(9rem, 24vw, 14rem);
    transform: none;
  }
  .baby--fiesta { left: 15%; bottom: -13%; width: clamp(9rem, 22vw, 13rem); }
  .baby--programa { left: 5%; bottom: -6%; width: clamp(9rem, 24vw, 14rem); }
  .baby--ubicacion { left: -6%; bottom: -14%; width: clamp(9rem, 24vw, 14rem); }

  .neon {
    top: 8%;
    left: 13%;
    text-align: left;
    transform: rotate(-7deg);
  }
  .neon__small { font-size: 1.8rem; }
  .neon__big { font-size: 3.4rem; }

  .script-tag { font-size: 2.8rem; }
  .script-tag--invite { top: 36%; left: 5%; transform: rotate(-13deg); }
  .script-tag--name { top: 50%; left: 5%; transform: rotate(-9deg); }

  .slide__content {
    grid-column: 2;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: var(--content-w);
    margin-top: 0;
    padding: 0;
    text-align: left;
  }

  .title {
    margin: .4rem 0 .5rem;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
  .lead {
    margin-bottom: .6rem;
    font-size: .95rem;
  }
  .credits { margin-top: .5rem; }

  .pill-list,
  .timeline,
  .map-card,
  .btn-map { max-width: none; }

  .pill-list { gap: .4rem; }
  .pill {
    padding: .45rem 1rem;
    font-size: .88rem;
  }

  .timeline { gap: .3rem; }
  .time {
    padding: .25rem .5rem;
    font-size: .7rem;
  }
  .event {
    padding: .35rem .9rem;
    font-size: .8rem;
  }

  .map-card__head { padding: .5rem 1rem; }
  .map-card__map { height: 6rem; }
  .btn-map {
    margin-top: .4rem;
    padding: .5rem 1rem;
  }

  .closing {
    min-height: 0;
    padding: 3rem var(--pad-x) 4.5rem;
  }
}

/* ---------- 2.4 Tablet horizontal y laptop con altura normal
   (≥ 769px y ≥ 521px de alto): tamaños amplios ---------- */
@media (min-width: 769px) and (min-height: 521px) {
  :root { --bar-h: 3.6rem; }

  .slide { padding: 5rem var(--pad-x) 5rem 0; }

  .bunting { width: clamp(18rem, 42vw, 38rem); }

  .baby { width: clamp(14rem, 30vw, 22rem); }
  .baby--fiesta { width: clamp(13rem, 27vw, 20rem); }
  .baby--programa { width: clamp(14rem, 30vw, 23rem); }
  .baby--ubicacion { width: clamp(14rem, 30vw, 22rem); }

  .neon { top: 15%; }
  .neon__small { font-size: clamp(1.8rem, 4.6vw, 3rem); }
  .neon__big { font-size: clamp(3.4rem, 9vw, 6rem); }
  .script-tag { font-size: clamp(2.8rem, 6.6vw, 4.6rem); }

  .title {
    margin: .7rem 0 .8rem;
    font-size: clamp(2.3rem, 6vw, 3.6rem);
  }
  .lead {
    margin-bottom: 1.1rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }
  .credits { margin-top: 1rem; }

  .pill-list { gap: .65rem; }
  .pill {
    padding: .8rem 1.2rem;
    font-size: 1rem;
  }

  .timeline { gap: .45rem; }
  .time {
    padding: .38rem .7rem;
    font-size: .78rem;
  }
  .event {
    padding: .6rem 1.1rem;
    font-size: .92rem;
  }

  .map-card__head { padding: .85rem 1.2rem .7rem; }
  .map-card__map { height: 11rem; }
  .btn-map {
    margin-top: .75rem;
    padding: .85rem 1.4rem;
  }

  .closing {
    min-height: clamp(22rem, 55vh, 32rem);
    padding: 4.5rem var(--pad-x) 6.5rem;
  }
}

/* ---------- 2.5 Desktop (≥ 1025px) ---------- */
@media (min-width: 1025px) and (min-height: 521px) {
  :root { --content-w: 46rem; }

  .slide {
    grid-template-columns: 44% minmax(0, 1fr);
    padding-top: 5.5rem;
  }
  .slide__veil { inset: 0 0 0 34%; }

  .neon__small { font-size: clamp(2rem, 4.4vw, 3.6rem); }
  .neon__big { font-size: clamp(4rem, 9vw, 7.4rem); }
  .script-tag { font-size: clamp(3.2rem, 6.4vw, 6rem); }

  .title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
  .pill { padding: .9rem 1.4rem; }
}

/* ---------- 2.6 Pantallas grandes (≥ 1201px) ---------- */
@media (min-width: 1201px) and (min-height: 521px) {
  .slide { grid-template-columns: 46% minmax(0, 1fr); }

  .baby { width: clamp(15rem, 27vw, 26rem); }
  .baby--fiesta { width: clamp(14rem, 24vw, 23rem); }
  .baby--programa { width: clamp(15rem, 28vw, 27rem); }
  .baby--ubicacion { width: clamp(15rem, 27vw, 26rem); }

  .neon { left: 15%; }
}

/* ---------- 2.7 Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .baby__art {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 2.8 Tema oscuro del visor ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #1c1526;
    --topbar-bg: #261b33;
    --closing-bg: linear-gradient(135deg, #2b1a33 0%, #241f35 50%, #1f1a3a 100%);
    --closing-title: #ff7ac0;
    --closing-text: #dad4ee;
  }
}
:root[data-theme="dark"] {
  --page-bg: #1c1526;
  --topbar-bg: #261b33;
  --closing-bg: linear-gradient(135deg, #2b1a33 0%, #241f35 50%, #1f1a3a 100%);
  --closing-title: #ff7ac0;
  --closing-text: #dad4ee;
}