/* Invitación: mashup pantano + cielo de juguetes (diseño original, sin assets con copyright) */

@font-face {
    font-family: "ShrekTitle";
    src: url("assets/SHREK___.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  :root {
    --swamp-deep: #142d10;
    --swamp-mid: #1f4a18;
    --swamp-light: #4a8c32;
    --swamp-moss: #6b9e4a;
    --swamp-glow: #9ccc65;
    --sky-deep: #1e6ba8;
    --sky-top: #3d8fd4;
    --sky-mid: #6ec4e8;
    --sky-bottom: #bfe8fb;
    --toy-red: #c62828;
    --toy-yellow: #ffd54f;
    --toy-blue: #1565c0;
    --toy-plaid: #e3f2fd;
    --paper: #fffdf7;
    --paper-warm: #fff8ee;
    --ink: #1c1b19;
    --ink-soft: #4a4540;
    --shadow: rgba(18, 42, 14, 0.18);
    --shadow-deep: rgba(12, 28, 10, 0.35);
    --radius: 1.35rem;
    --radius-sm: 0.85rem;
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background: linear-gradient(180deg, #d4ecd5 0%, #e8f5e9 35%, #c5e1a5 100%);
    overflow-x: hidden;
  }
  
  .noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  
  /* ——— Hero: escenarios apilados (pantano arriba, cielo abajo) ——— */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }
  
  .hero__scenario {
    position: relative;
    width: 100%;
    min-height: 42vh;
    overflow: hidden;
  }
  
  .hero__scenario--swamp {
    flex-shrink: 0;
    min-height: 100vh;
    background:
      radial-gradient(ellipse 90% 75% at 50% 100%, rgba(155, 204, 102, 0.18) 0%, transparent 55%),
      radial-gradient(ellipse 55% 45% at 20% 100%, rgba(30, 60, 22, 0.2) 0%, transparent 50%),
      repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 14px,
        rgba(0, 0, 0, 0.04) 14px,
        rgba(0, 0, 0, 0.04) 15px
      ),
      linear-gradient(180deg, #102a0f 0%, #1a3f16 44%, #2f5f24 82%, #3f7a2f 100%);
    background-size: auto, auto, auto, auto;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
  }

  @keyframes hero-scroll-cta-float {
    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-7px);
    }
  }

  /* Flecha “seguir”: un estilo por escena (pantano vs cielo Andy) */
  .hero__scroll-cta {
    position: absolute;
    left: 50%;
    bottom: calc(clamp(0.85rem, 3.2vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
    z-index: 28;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(46px, 12vw, 54px);
    height: clamp(46px, 12vw, 54px);
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    cursor: pointer;
    transform: translateX(-50%);
    animation: hero-scroll-cta-float 2.9s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.35) inset,
      0 3px 14px rgba(0, 0, 0, 0.08);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      filter 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }

  .hero__scroll-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
  }

  .hero__scroll-cta__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .hero__scroll-cta__arrow svg {
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
  }

  .hero__scroll-cta--swamp:hover {
    transform: translateX(-50%) translateY(3px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.52);
    color: rgba(255, 255, 255, 0.68);
  }

  .hero__scroll-cta--swamp:active {
    transform: translateX(-50%) translateY(5px);
  }

  /* Misma posición que el de pantano; el script alterna cuál se ve (vuelve a la 1.ª escena) */
  .hero__scroll-cta--toy {
    z-index: 29;
    opacity: 0;
    pointer-events: none;
  }

  .hero__scroll-cta--toy .hero__scroll-cta__arrow {
    transform: rotate(180deg);
  }

  .hero__scroll-cta--toy:hover {
    animation: none;
    transform: translateX(-50%) translateY(3px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.52);
    color: rgba(255, 255, 255, 0.68);
  }

  .hero__scroll-cta--toy:active {
    animation: none;
    transform: translateX(-50%) translateY(5px);
  }

  @media (max-width: 767px) {
    .hero__scroll-cta {
      bottom: calc(
        clamp(0.85rem, 3.2vw, 1.5rem) + env(safe-area-inset-bottom, 0px) + clamp(46px, 12vw, 54px)
      );
    }
  }

  /* Entrada suave: el control queda entero visible (antes casi todo quedaba fuera de viewport) */
  @keyframes music-snippet-peek-in {
    from {
      transform: translate(-10px, -8px);
      opacity: 0;
    }
    to {
      transform: translate(0, 0);
      opacity: 1;
    }
  }

  @keyframes music-snippet-playing-pulse {
    0%,
    100% {
      box-shadow:
        0 0 0 0 rgba(45, 90, 30, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        4px 8px 20px rgba(0, 0, 0, 0.12);
    }
    50% {
      box-shadow:
        0 0 0 6px rgba(45, 90, 30, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        4px 8px 24px rgba(0, 0, 0, 0.14);
    }
  }

  @keyframes music-snippet-need-tap-glow {
    0%,
    100% {
      opacity: 0.45;
    }
    50% {
      opacity: 0.95;
    }
  }

  /* Play en media píldora que asoma desde la esquina superior izquierda */
  .music-snippet {
    --music-peek-x: 1.65rem;
    --music-peek-y: 1.65rem;
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0 0 max(0.28rem, env(safe-area-inset-left, 0px));
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    font-family: var(--font-body, "Nunito", system-ui, sans-serif);
  }

  .music-snippet__peek {
    pointer-events: auto;
    filter: drop-shadow(4px 6px 16px rgba(0, 0, 0, 0.24));
    transform: translate(0, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    animation: music-snippet-peek-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  @media (hover: hover) and (pointer: fine) {
    .music-snippet:hover .music-snippet__peek,
    .music-snippet:focus-within .music-snippet__peek {
      transform: translate(2px, 2px);
    }
  }

  .music-snippet__play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-width: 6.5rem;
    height: 2.65rem;
    margin: 0;
    padding: 0 0.65rem 0 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: none;
    border-left: none;
    border-radius: 0 0 999px 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(232, 248, 225, 0.5) 45%,
      rgba(255, 255, 255, 0.36) 100%
    );
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    color: rgba(18, 42, 28, 0.92);
    cursor: pointer;
    font-family: var(--font-display, "Fredoka", system-ui, sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      4px 8px 20px rgba(0, 0, 0, 0.12);
    transition:
      background 0.22s ease,
      transform 0.15s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  .music-snippet__glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(120, 200, 90, 0.35), transparent 62%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 0;
  }

  .music-snippet--playing .music-snippet__glow {
    opacity: 1;
  }

  .music-snippet__play-disc {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(45, 90, 30, 0.94), rgba(28, 58, 22, 0.98));
    color: rgba(255, 250, 240, 0.96);
    box-shadow:
      0 2px 6px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    flex-shrink: 0;
  }

  /* Un solo icono a la vez (play / pausa superpuestos en el disco) */
  .music-snippet__play-disc .music-snippet__icon {
    position: absolute;
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    margin: auto;
    inset: 0;
    flex-shrink: 0;
  }

  .music-snippet__play-disc .music-snippet__icon[hidden] {
    display: none !important;
  }

  .music-snippet__play-disc .music-snippet__icon--pause {
    width: 1rem;
    height: 1rem;
  }

  .music-snippet__label {
    position: relative;
    z-index: 1;
    padding-right: 0.15rem;
    white-space: nowrap;
  }

  .music-snippet--playing .music-snippet__play {
    animation: music-snippet-playing-pulse 2.4s ease-in-out infinite;
  }

  .music-snippet--needs-tap .music-snippet__play {
    border-color: rgba(255, 200, 120, 0.75);
  }

  .music-snippet--needs-tap .music-snippet__glow {
    opacity: 1;
    animation: music-snippet-need-tap-glow 1.6s ease-in-out infinite;
    background: radial-gradient(circle at 40% 40%, rgba(255, 180, 80, 0.45), transparent 65%);
  }

  .music-snippet__play:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(220, 245, 208, 0.55) 50%,
      rgba(255, 255, 255, 0.44) 100%
    );
    border-color: rgba(255, 255, 255, 0.7);
  }

  .music-snippet__play:focus-visible {
    outline: 2px solid rgba(45, 90, 30, 0.65);
    outline-offset: 3px;
  }

  .music-snippet__play:active {
    transform: scale(0.97);
  }

  @media (max-width: 767px) {
    .music-snippet__play {
      min-width: 6.75rem;
      height: 2.8rem;
      gap: 0.5rem;
      padding: 0 0.72rem 0 0.42rem;
      font-size: 0.74rem;
    }

    .music-snippet__play-disc {
      width: 2.1rem;
      height: 2.1rem;
    }
  }

  .hero__bridge-layer {
    position: absolute;
    inset: 0;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
  }

  .hero__bridge-clouds {
    position: absolute;
    inset: 0;
    z-index: 0;
    --bridge-shift: 0px;
    transform-origin: 50% 35%;
    transform: scale(1.1);
    will-change: transform;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 120'%3E%3Cg fill='%23f4f4f1'%3E%3Cpath d='M40 74h64c12 0 21-9 21-20s-9-20-21-20c-2 0-4 0-6 1-4-12-15-20-28-20-15 0-27 10-30 24-2-1-3-1-5-1-11 0-20 9-20 20s9 20 20 20z'/%3E%3Crect x='20' y='70' width='72' height='8' rx='4'/%3E%3C/g%3E%3C/svg%3E")
        repeat var(--bridge-shift) 0 / 190px 125px,
      linear-gradient(180deg, #56ace1 0%, #67bae9 52%, #79c8ef 100%);
  }

  .hero__bridge-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 70%);
  }

  .hero__bridge-layer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    height: 52px;
    display: none;
  }

  .hero__bridge-layer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    display: none;
  }

  .hero__bridge-badge-wrap {
    position: absolute;
    left: 50%;
    top: 40%;
    z-index: 2;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .hero__bridge-badge {
    display: block;
    width: clamp(220px, 44vw, 520px);
    height: auto;
    margin: 0 auto;
    transform: scale(0.88);
    transform-origin: center center;
    will-change: transform, opacity;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
  }

  .hero__bridge-subline {
    margin: clamp(-1.1rem, -4.5vw, -0.45rem) 0 0;
    padding: 0;
    text-align: center;
    font-family: "ShrekTitle", var(--font-display), cursive;
    font-weight: 400;
    font-size: clamp(2.65rem, 10vw, 4.75rem);
    letter-spacing: 0.02em;
    line-height: 0.92;
    color: #8cb04e;
    text-shadow:
      0 0 1px rgba(0, 0, 0, 0.6),
      0 2px 0 rgba(0, 0, 0, 0.5),
      0 3px 6px rgba(0, 0, 0, 0.55),
      0 6px 18px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(0, 0, 0, 0.35);
    transform: scale(0.92);
    transform-origin: center top;
    will-change: transform, opacity;
  }
  
  .hero__scenario--sky {
    flex-shrink: 0;
    position: relative;
    min-height: 55vh;
    --sky-progress: 0;
    --andy-shift: 0px;
    background: linear-gradient(180deg, #56ace1 0%, #67bae9 52%, #79c8ef 100%);
    transform: scale(calc(0.96 + (var(--sky-progress) * 0.05)));
    transform-origin: center center;
    transition:
      transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
      filter 1s ease;
    filter: saturate(calc(0.92 + (var(--sky-progress) * 0.16))) brightness(calc(0.92 + (var(--sky-progress) * 0.18)));
  }
  
  .hero__scenario--sky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 120'%3E%3Cg fill='%23f4f4f1'%3E%3Cpath d='M40 74h64c12 0 21-9 21-20s-9-20-21-20c-2 0-4 0-6 1-4-12-15-20-28-20-15 0-27 10-30 24-2-1-3-1-5-1-11 0-20 9-20 20s9 20 20 20z'/%3E%3Crect x='20' y='70' width='72' height='8' rx='4'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 190px 125px;
    background-position: var(--andy-shift) 0;
    animation: andy-cloud-drift 28s linear infinite;
    opacity: calc(0.7 + (var(--sky-progress) * 0.3));
  }
  
  .hero__scenario--sky::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    z-index: 4;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0 14px, rgba(214, 214, 214, 0.95) 14px 20px, rgba(247, 247, 247, 0.98) 20px 52px, transparent 52px),
      repeating-linear-gradient(82deg, #efc07a 0 28px, #e0a85e 28px 34px, #f2c983 34px 62px);
    background-size: 100% 52px, 100% calc(100% - 52px);
    background-position: 0 0, calc(var(--andy-shift) * -0.35) 52px;
    background-repeat: no-repeat, repeat;
  }
  
  @keyframes andy-cloud-drift {
    from { background-position: 0 0; }
    to { background-position: -190px 0; }
  }
  
  .hero__scenario--sky.is-cinematic {
    animation: sky-cinematic-glow 1.3s ease-out both;
  }
  
  @keyframes sky-cinematic-glow {
    0% {
      filter: saturate(0.78) brightness(0.82);
      transform: scale(0.94);
    }
    60% {
      filter: saturate(1.08) brightness(1.04);
      transform: scale(0.995);
    }
    100% {
      filter: saturate(calc(0.9 + (var(--sky-progress) * 0.2)))
        brightness(calc(0.9 + (var(--sky-progress) * 0.22)));
      transform: scale(calc(0.96 + (var(--sky-progress) * 0.05)));
    }
  }
  
  .hero__swamp-glow {
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 80%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(156, 204, 101, 0.45) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
  }
  
  .hero__toy-transition-bg {
    position: absolute;
    inset: 0;
    /* Por encima del brillo del pantano (z-index 2) para no mezclar verde con el wallpaper */
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    --room-shift: 0px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 120'%3E%3Cg fill='%23f4f4f1'%3E%3Cpath d='M40 74h64c12 0 21-9 21-20s-9-20-21-20c-2 0-4 0-6 1-4-12-15-20-28-20-15 0-27 10-30 24-2-1-3-1-5-1-11 0-20 9-20 20s9 20 20 20z'/%3E%3Crect x='20' y='70' width='72' height='8' rx='4'/%3E%3C/g%3E%3C/svg%3E")
        repeat var(--room-shift) 0 / 190px 125px,
      linear-gradient(180deg, #56ace1 0%, #67bae9 52%, #79c8ef 100%);
  }
  
  .hero__toy-transition-bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    height: 52px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0 14px,
      rgba(214, 214, 214, 0.95) 14px 20px,
      rgba(247, 247, 247, 0.98) 20px 52px
    );
  }
  
  .hero__toy-transition-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    background: repeating-linear-gradient(82deg, #efc07a 0 28px, #e0a85e 28px 34px, #f2c983 34px 62px);
  }
  
  .hero__sun {
    display: none;
  }
  
  .hero__sun-core {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffef5 0%, var(--toy-yellow) 45%, #f9a825 100%);
    box-shadow:
      0 0 40px rgba(255, 213, 79, 0.75),
      0 0 80px rgba(255, 193, 7, 0.35);
  }
  
  .hero__sun-rays {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.12) 0deg 8deg,
      transparent 8deg 16deg
    );
    animation: sun-spin 48s linear infinite;
    opacity: 0.6;
  }
  
  @keyframes sun-spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .hero__stars {
    display: none;
  }
  
  .hero__fireflies {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
  }
  
  .hero__edge {
    position: absolute;
    z-index: 3;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
    pointer-events: none;
  }
  
  .hero__edge--gato {
    top: -2px;
    left: clamp(24%, 31vw, 34%);
    width: clamp(110px, 16vw, 220px);
    z-index: 5;
  }
  
  .hero__edge--left {
    left: -2px;
    bottom: -2px;
    width: clamp(280px, 36vw, 500px);
  }
  
  .hero__edge--right {
    right: -2px;
    bottom: -2px;
    width: clamp(300px, 38vw, 540px);
  }
  
  .hero__edge--center,
  .hero__edge--center-toy {
    left: 50%;
    bottom: 23vh;
    transform: translateX(-50%);
    width: clamp(240px, 38vw, 500px);
    max-height: 98%;
    z-index: 20;
    filter:
      drop-shadow(0 14px 26px rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 22px rgba(255, 235, 120, 0.18));
  }
  
  .hero__edge--center-toy {
    opacity: 0;
  }
  
  .hero__toy-floor-cast {
    position: absolute;
    left: 43%;
    bottom: -0.5vh;
    transform: translateX(-50%);
    width: clamp(220px, 44vw, 520px);
    height: auto;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  }

  .hero__floor-frame {
    position: absolute;
    left: 10%;
    bottom: 8%;
    z-index: 17;
    width: clamp(108px, 24vw, 168px);
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: rotate(-6deg);
    transform-origin: bottom center;
    filter: drop-shadow(6px 10px 18px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .hero__floor-frame-label {
    display: block;
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 6px;
    padding: 0.28rem 0.55rem;
    font-family: var(--font-body);
    font-size: clamp(0.62rem, 1.65vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #8cb04e;
    text-align: center;
    background: linear-gradient(180deg, #fffef9 0%, #f5f0e4 100%);
    border-radius: 6px;
    border: 1px solid rgba(90, 62, 34, 0.35);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 3px 10px rgba(0, 0, 0, 0.22);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  .hero__floor-frame:hover {
    filter: drop-shadow(8px 14px 22px rgba(0, 0, 0, 0.48));
  }

  .hero__floor-frame:hover {
    transform: rotate(-6deg) scale(1.03);
  }

  @media (min-width: 768px) {
    .hero__floor-frame {
      left: auto;
      right: 6%;
      bottom: 10%;
      transform: rotate(5deg);
    }

    .hero__floor-frame:hover {
      transform: rotate(5deg) scale(1.03);
    }
  }

  .hero__floor-frame:focus-visible {
    outline: 3px solid #ffe94a;
    outline-offset: 4px;
  }

  .hero__floor-frame-inner {
    display: block;
    position: relative;
    z-index: 1;
    border: 5px solid #4a3018;
    border-radius: 3px;
    background:
      linear-gradient(145deg, #8b5a2b 0%, #5c3d1e 40%, #6f4a28 100%);
    padding: 5px;
    box-shadow:
      inset 0 0 0 2px #c9a66a,
      inset 0 -2px 0 rgba(0, 0, 0, 0.25),
      0 3px 0 #2a1a0c;
  }

  .hero__floor-frame-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e8e0d4;
  }

  .hero__floor-frame-shadow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 85%;
    height: 14px;
    transform: translateX(-50%) skewX(-8deg);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
    border-radius: 40%;
    z-index: 0;
    pointer-events: none;
  }
  
  .hero__confirm-ball {
    position: absolute;
    left: 20%;
    bottom: 7%;
    width: clamp(58px, 7vw, 96px);
    height: auto;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  }
  
  .hero__confirm-bubble {
    position: absolute;
    left: calc(10% + clamp(62px, 7vw, 100px));
    bottom: calc(7% + clamp(52px, 7vw, 92px));
    z-index: 7;
    opacity: 0;
    text-decoration: none;
    display: inline-block;
    padding: 0;
    animation: confirm-bubble-pop 2.2s ease-in-out infinite;
  }
  
  .hero__confirm-bubble img {
    display: block;
    width: clamp(150px, 18vw, 260px);
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
  }
  
  @keyframes confirm-bubble-pop {
    0%,
    100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-6px) scale(1.04);
    }
  }
  
  .hero__confirm-bubble:hover {
    transform: translateY(2px) scale(1.04);
  }
  
  .hero__toy-frame {
    position: absolute;
    top: 10%;
    left: 6%;
    width: min(46vw, 560px);
    z-index: 7;
    opacity: 0;
    padding: 1.1rem 1.2rem 1rem;
    border-radius: 14px;
    border: 10px solid #5d3f1f;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 226, 0.96));
    box-shadow:
      0 0 0 3px #d6ba86 inset,
      0 12px 24px rgba(0, 0, 0, 0.28);
    color: #271d12;
    pointer-events: auto;
  }
  
  .hero__toy-frame-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #463015;
  }
  
  .hero__toy-frame p {
    margin: 0 0 0.45rem;
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.25vw, 1.18rem);
    line-height: 1.48;
    font-weight: 700;
  }
  
  .hero__toy-frame p:last-child {
    margin-bottom: 0;
  }
  
  .hero__map-btn {
    position: absolute;
    left: calc(30% + min(46vw, 560px) + 64px);
    top: 18%;
    transform: translateY(-50%);
    display: inline-block;
    text-decoration: none;
    animation: map-cta-float 2.6s ease-in-out infinite;
    transform-origin: center;
    z-index: 19;
    opacity: 0;
    pointer-events: none;
  }
  
  .hero__map-btn img {
    display: block;
    width: clamp(132px, 18vw, 190px);
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
  }
  
  .hero__map-btn:hover {
    animation-play-state: paused;
    transform: translateY(-50%) scale(1.04);
  }
  
  @keyframes map-cta-float {
    0%,
    100% {
      transform: translateY(-50%) scale(1);
    }
    50% {
      transform: translateY(calc(-50% - 8px)) scale(1.035);
    }
  }
  
  @media (min-width: 768px) {
    .hero__toy-floor-cast {
      z-index: 7;
    }
  
    .hero__toy-frame {
      left: 7%;
      top: 11%;
    }
  }
  
  @media (min-width: 768px) {
    .hero__toy-floor-cast {
      z-index: 7;
    }
  }
  
  .hero__emilia-copy {
    position: absolute;
    left: calc(50% - clamp(360px, 26vw, 420px));
    bottom: 30vh;
    z-index: 8;
    color: #fff7dd;
    text-align: left;
    pointer-events: none;
  }
  
  .hero__emilia-copy p {
    margin: 0;
    line-height: 1.05;
    text-shadow:
      0 2px 0 rgba(0, 0, 0, 0.35),
      0 10px 22px rgba(0, 0, 0, 0.35);
  }
  
  .hero__copy-name {
    font-family: "ShrekTitle", var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #fff3b0;
  }
  
  .hero__copy-date {
    margin-top: 0.35rem !important;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ecffd3;
  }
  
  .hero__copy-age {
    margin-top: 0.35rem !important;
    font-family: "Comic Sans MS", "Trebuchet MS", var(--font-display), cursive;
    font-size: clamp(1.5rem, 3.4vw, 2.8rem);
    font-weight: 700;
    color: #ffe274;
    transform: rotate(-3deg);
  }
  
  .hero__sparkles {
    position: absolute;
    left: 50%;
    bottom: 21vh;
    width: clamp(260px, 44vw, 580px);
    height: clamp(260px, 48vh, 560px);
    transform: translateX(-50%);
    z-index: 7;
    pointer-events: none;
  }
  
  .hero__sparkles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f4ffbc;
    box-shadow:
      0 0 10px rgba(226, 255, 146, 0.95),
      0 0 18px rgba(226, 255, 146, 0.6);
    animation: sparkle-float 3.8s ease-in-out infinite;
    opacity: 0.3;
  }
  
  .hero__sparkles span:nth-child(1) { left: 8%; top: 66%; animation-delay: 0.2s; }
  .hero__sparkles span:nth-child(2) { left: 18%; top: 52%; animation-delay: 0.7s; }
  .hero__sparkles span:nth-child(3) { left: 24%; top: 30%; animation-delay: 1.1s; }
  .hero__sparkles span:nth-child(4) { left: 36%; top: 18%; animation-delay: 1.6s; }
  .hero__sparkles span:nth-child(5) { left: 48%; top: 8%; animation-delay: 2.1s; }
  .hero__sparkles span:nth-child(6) { left: 62%; top: 16%; animation-delay: 2.6s; }
  .hero__sparkles span:nth-child(7) { left: 76%; top: 32%; animation-delay: 3s; }
  .hero__sparkles span:nth-child(8) { left: 84%; top: 48%; animation-delay: 3.3s; }
  .hero__sparkles span:nth-child(9) { left: 72%; top: 66%; animation-delay: 0.5s; }
  .hero__sparkles span:nth-child(10) { left: 56%; top: 74%; animation-delay: 1.3s; }
  .hero__sparkles span:nth-child(11) { left: 40%; top: 80%; animation-delay: 2s; }
  .hero__sparkles span:nth-child(12) { left: 24%; top: 78%; animation-delay: 2.8s; }
  
  @keyframes sparkle-float {
    0%,
    100% {
      opacity: 0.25;
      transform: translateY(0) scale(0.7);
    }
    50% {
      opacity: 1;
      transform: translateY(-8px) scale(1.15);
    }
  }
  
  .hero__fireflies span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8f5a0;
    box-shadow: 0 0 12px 3px rgba(200, 255, 120, 0.9);
    animation: firefly 4s ease-in-out infinite;
    opacity: 0;
  }
  
  .hero__fireflies span:nth-child(1) {
    left: 8%;
    top: 42%;
    animation-delay: 0s;
  }
  .hero__fireflies span:nth-child(2) {
    left: 22%;
    top: 68%;
    animation-delay: 0.7s;
  }
  .hero__fireflies span:nth-child(3) {
    left: 35%;
    top: 35%;
    animation-delay: 1.4s;
  }
  .hero__fireflies span:nth-child(4) {
    left: 18%;
    top: 55%;
    animation-delay: 2.1s;
  }
  .hero__fireflies span:nth-child(5) {
    left: 42%;
    top: 72%;
    animation-delay: 2.8s;
  }
  .hero__fireflies span:nth-child(6) {
    left: 12%;
    top: 78%;
    animation-delay: 3.5s;
  }
  
  @keyframes firefly {
    0%,
    100% {
      opacity: 0;
      transform: translate(0, 0) scale(0.6);
    }
    35% {
      opacity: 1;
      transform: translate(8px, -12px) scale(1);
    }
    70% {
      opacity: 0.6;
      transform: translate(-4px, 4px) scale(0.85);
    }
  }
  
  .hero__clouds {
    display: none;
  }
  
  .cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 100px;
    filter: drop-shadow(0 6px 16px rgba(30, 100, 140, 0.15));
    animation: cloud-float 9s ease-in-out infinite;
  }
  
  .cloud::before,
  .cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
  }
  
  .cloud--a {
    width: 140px;
    height: 46px;
    top: 16%;
    right: 10%;
    animation-delay: -1s;
  }
  
  .cloud--a::before {
    width: 56px;
    height: 56px;
    top: -22px;
    left: 22px;
  }
  
  .cloud--a::after {
    width: 72px;
    height: 72px;
    top: -32px;
    right: 18px;
  }
  
  .cloud--b {
    width: 100px;
    height: 36px;
    top: 36%;
    right: 22%;
    opacity: 0.96;
    animation-delay: -3.5s;
  }
  
  .cloud--b::before {
    width: 44px;
    height: 44px;
    top: -18px;
    left: 16px;
  }
  
  .cloud--b::after {
    width: 56px;
    height: 56px;
    top: -24px;
    right: 12px;
  }
  
  .cloud--c {
    width: 76px;
    height: 28px;
    top: 52%;
    right: 6%;
    opacity: 0.9;
    animation-delay: -6s;
  }
  
  .cloud--c::before {
    width: 36px;
    height: 36px;
    top: -14px;
    left: 12px;
  }
  
  .cloud--c::after {
    width: 44px;
    height: 44px;
    top: -18px;
    right: 10px;
  }
  
  @keyframes cloud-float {
    0%,
    100% {
      transform: translateY(0) translateX(0);
    }
    50% {
      transform: translateY(-12px) translateX(6px);
    }
  }
  
  .hero__content-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem 2.25rem;
    background: linear-gradient(180deg, var(--sky-bottom) 0%, #e8f5e9 100%);
  }
  
  /* La experiencia termina en la escena Toy Story; cielo extra y bloques ocultos */
  .hero__scenario--sky,
  .hero__content-wrap,
  .main,
  .footer {
    display: none;
  }
  
  .hero__content {
    width: 100%;
    max-width: 26.5rem;
    text-align: center;
    padding: 2rem 1.65rem 2.1rem;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
      linear-gradient(var(--paper-warm), var(--paper));
    border-radius: calc(var(--radius) + 4px);
    box-shadow:
      0 4px 0 rgba(255, 255, 255, 0.65) inset,
      0 28px 60px var(--shadow-deep),
      0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    animation: card-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  
  .hero__content::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(
      135deg,
      var(--swamp-moss),
      var(--toy-yellow),
      var(--sky-mid),
      var(--toy-red)
    );
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  @keyframes card-in {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .hero__ribbon {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 1rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--swamp-deep);
    background: linear-gradient(90deg, #dcedc8, #fff9c4);
    border-radius: 999px;
    border: 1px solid rgba(45, 90, 30, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
  }
  
  .hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
  }
  
  .hero__title-line {
    display: block;
    font-size: clamp(1.2rem, 3.2vw, 1.45rem);
    font-weight: 600;
    color: var(--ink-soft);
  }
  
  .hero__name {
    display: block;
    margin-top: 0.2rem;
    font-size: clamp(2.65rem, 9vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(
      118deg,
      var(--swamp-mid) 0%,
      var(--swamp-light) 22%,
      var(--toy-blue) 52%,
      var(--toy-red) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.4));
  }
  
  .hero__tagline {
    margin: 1.1rem 0 1.35rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-soft);
  }
  
  .hero__tagline em {
    font-style: italic;
    color: var(--toy-blue);
    font-weight: 600;
  }
  
  .hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  
  .badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--swamp-moss);
    box-shadow: 0 0 0 2px rgba(74, 140, 50, 0.35);
    flex-shrink: 0;
  }
  
  .badge__dot--toy {
    background: var(--toy-yellow);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.25);
  }
  
  .badge--swamp {
    background: linear-gradient(135deg, #e8f5e9, #c5e1a5);
    color: var(--swamp-deep);
    border: 1px solid rgba(74, 140, 50, 0.35);
  }
  
  .badge--toy {
    background: linear-gradient(135deg, #fffde7, var(--toy-yellow));
    color: #5d4200;
    border: 1px solid rgba(198, 40, 40, 0.28);
  }
  
  /* Main */
  .main {
    position: relative;
    z-index: 3;
    max-width: 34rem;
    margin: 0 auto;
    padding: 1.35rem 1.35rem 3.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }
  
  .main__intro {
    margin: 0;
    text-align: center;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--swamp-deep);
    line-height: 1.45;
  }
  
  .card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.65rem 1.65rem;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.9) inset,
      0 14px 36px var(--shadow);
    overflow: hidden;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.35s ease;
  }
  
  .card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 100% 0%, rgba(156, 204, 101, 0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.9) inset,
      0 22px 48px var(--shadow);
  }
  
  .card__num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(45, 90, 30, 0.08);
    user-select: none;
  }
  
  .card--when {
    border-left: 5px solid var(--swamp-moss);
  }
  
  .card--where {
    border-left: 5px solid var(--toy-blue);
  }
  
  .card--where::after {
    background: radial-gradient(circle at 100% 0%, rgba(100, 181, 246, 0.15) 0%, transparent 70%);
  }
  
  .card--dress {
    border-left: 5px solid var(--toy-red);
  }
  
  .card--dress::after {
    background: radial-gradient(circle at 100% 0%, rgba(239, 83, 80, 0.12) 0%, transparent 70%);
  }
  
  .card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }
  
  .card__icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  
  .card__icon-wrap--swamp {
    background: linear-gradient(145deg, #dcedc8, #aed581);
    box-shadow: 0 4px 12px rgba(74, 140, 50, 0.25);
  }
  
  .card__icon-wrap--sky {
    background: linear-gradient(145deg, #bbdefb, #64b5f6);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.22);
  }
  
  .card__icon-wrap--party {
    background: linear-gradient(145deg, #fff8e1, var(--toy-yellow));
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
  }
  
  .card__icon {
    font-size: 1.45rem;
    line-height: 1;
  }
  
  .card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--swamp-deep);
  }
  
  .card__highlight {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  
  .card__detail {
    margin: 0.55rem 0 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
  }
  
  /* RSVP */
  .rsvp {
    position: relative;
    border-radius: var(--radius);
    padding: 3px;
    background: linear-gradient(135deg, var(--swamp-glow), var(--sky-mid), var(--toy-yellow));
    box-shadow: 0 18px 44px rgba(26, 61, 20, 0.35);
  }
  
  .rsvp__inner {
    text-align: center;
    padding: 2rem 1.6rem 2.1rem;
    border-radius: calc(var(--radius) - 3px);
    background:
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(255, 255, 255, 0.04) 12px,
        rgba(255, 255, 255, 0.04) 13px
      ),
      linear-gradient(155deg, var(--swamp-mid) 0%, var(--swamp-deep) 55%, #0f2410 100%);
    color: #f5f5f0;
  }
  
  .rsvp h2 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }
  
  .rsvp__text {
    margin: 0 0 1.35rem;
    font-size: 1.02rem;
    line-height: 1.6;
    opacity: 0.94;
  }
  
  .rsvp__text strong {
    color: var(--toy-yellow);
    font-weight: 700;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease;
  }
  
  .btn__icon {
    font-size: 1.15rem;
  }
  
  .btn--primary {
    background: linear-gradient(180deg, #2fe677, #25d366 40%, #128c7e);
    color: #fff;
    box-shadow:
      0 4px 0 #0d6e58,
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  
  .btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
      0 6px 0 #0d6e58,
      0 14px 32px rgba(0, 0, 0, 0.38);
  }
  
  .btn--primary:active {
    transform: translateY(0);
    box-shadow:
      0 2px 0 #0d6e58,
      0 6px 16px rgba(0, 0, 0, 0.3);
  }
  
  .btn--primary:focus-visible {
    outline: 3px solid var(--toy-yellow);
    outline-offset: 3px;
  }
  
  .footer {
    position: relative;
    text-align: center;
    padding: 0.5rem 1rem 2.75rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }
  
  .footer__line {
    width: min(200px, 50%);
    height: 3px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--swamp-moss), var(--toy-yellow), transparent);
    opacity: 0.65;
  }
  
  .footer p {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  
  /* Aparición al scroll */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (max-width: 520px) {
    .hero__scenario {
      min-height: 42vh;
    }
  
    .hero__scenario--swamp {
      min-height: 100vh;
    }
  
    .hero__edge--gato {
      left: 34%;
      width: clamp(90px, 30vw, 140px);
    }
  
    .hero__edge--left {
      width: clamp(220px, 64vw, 320px);
      left: -24px;
    }
  
    .hero__edge--right {
      width: clamp(210px, 62vw, 320px);
      right: -18px;
    }
  
    .hero__edge--center,
    .hero__edge--center-toy {
      bottom: 30vh;
      width: clamp(250px, 82vw, 420px);
      max-height: 94%;
      left: 65%;
    }
  
    .hero__toy-floor-cast {
      width: clamp(320px, 112vw, 620px);
      bottom: -1.5vh;
      left: 50%;
    }
  
    .hero__confirm-ball {
      left: auto;
      right: 3%;
      bottom: 20%;
      width: clamp(82px, 24vw, 128px);
    }
  
    .hero__confirm-bubble {
      left: 3%;
      right: auto;
      bottom: calc(27% + clamp(78px, 16vw, 130px));
    }
  
    .hero__confirm-bubble img {
      width: clamp(138px, 34vw, 228px);
    }
  
    .hero__toy-frame {
      width: min(84vw, 420px);
      left: 6%;
      top: 7%;
      padding: 0.95rem 0.9rem 0.85rem;
      border-width: 8px;
    }
  
    .hero__toy-frame-title {
      font-size: 0.86rem;
      margin-bottom: 0.4rem;
    }
  
    .hero__toy-frame p {
      font-size: clamp(0.88rem, 3.2vw, 1rem);
      margin-bottom: 0.35rem;
      line-height: 1.42;
    }
  
    .hero__map-btn {
      left: 10px;
      right: auto;
      top: 33%;
      transform: none;
      animation: map-cta-float-mobile 2.6s ease-in-out infinite;
    }
  
    .hero__map-btn img {
      width: clamp(120px, 42vw, 176px);
    }
  
    @keyframes map-cta-float-mobile {
      0%,
      100% {
        transform: translateY(0) scale(1);
      }
      50% {
        transform: translateY(-7px) scale(1.03);
      }
    }
  
    .hero__emilia-copy {
      left: 8%;
      top: 43vh;
      bottom: auto;
      transform: none;
      text-align: left;
    }
  
    .hero__copy-name {
      font-size: clamp(1.8rem, 11vw, 3rem);
    }
  
    .hero__copy-date {
      font-size: clamp(0.95rem, 4.8vw, 1.25rem);
    }
  
    .hero__copy-age {
      font-size: clamp(1.4rem, 8.2vw, 2rem);
      transform: rotate(-2deg);
    }
  
    .hero__sparkles {
      bottom: 31vh;
      width: clamp(220px, 78vw, 420px);
      height: clamp(220px, 46vh, 420px);
    }
  
    .hero__sun {
      top: 8%;
      right: 6%;
    }
  
    .cloud--a {
      right: 4%;
      transform: scale(0.92);
    }
  
    .cloud--b,
    .cloud--c {
      right: 8%;
    }
  
    .card:hover {
      transform: none;
    }
  }
  
  .emi-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .emi-gallery-modal.is-open {
    display: flex;
  }

  .emi-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(3px);
    cursor: pointer;
  }

  .emi-gallery-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92vh, 880px);
    overflow: auto;
    padding: 1rem 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #f4ecdc 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .emi-gallery-modal__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #3b2b15;
  }

  .emi-gallery-modal__stage {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .emi-gallery-modal__main-wrap {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #d7c29a;
    background: #111;
  }

  .emi-gallery-modal__main {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(58vh, 520px);
    object-fit: contain;
  }

  .emi-gallery-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #ead8b6;
    color: #3a2a14;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .emi-gallery-nav:hover {
    background: #f5e6cc;
    transform: scale(1.06);
  }

  .emi-gallery-modal__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .emi-gallery-thumb {
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
    width: 64px;
    height: 64px;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }

  .emi-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .emi-gallery-thumb:hover {
    transform: scale(1.05);
  }

  .emi-gallery-thumb.is-active {
    border-color: #c48a2a;
    box-shadow: 0 0 0 1px rgba(196, 138, 42, 0.5);
  }

  .emi-gallery-modal__x {
    position: absolute;
    top: 0.4rem;
    right: 0.45rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #ead8b6;
    color: #3a2a14;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  @media (max-width: 767px) {
    .emi-gallery-nav {
      width: 38px;
      height: 38px;
      font-size: 1.45rem;
    }

    .emi-gallery-modal__thumbs {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      padding-bottom: 4px;
      -webkit-overflow-scrolling: touch;
    }

    .hero__floor-frame {
      left: 6%;
      bottom: 17%;
      width: clamp(92px, 28vw, 140px);
    }

    .hero__floor-frame-label {
      font-size: clamp(0.58rem, 2.8vw, 0.72rem);
      padding: 0.24rem 0.5rem;
    }
  }

  .map-modal,
  .contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
  }
  
  .map-modal.is-open,
  .contact-modal.is-open {
    display: block;
  }
  
  .map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 36, 0.5);
    backdrop-filter: blur(2px);
  }
  
  .map-modal__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50vw;
    padding: 1.2rem 1.2rem 1rem;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f3e7 100%);
    box-shadow: 12px 0 38px rgba(0, 0, 0, 0.28);
    transform: translateX(-105%);
  }
  
  .map-modal.is-open .map-modal__panel,
  .contact-modal.is-open .map-modal__panel {
    animation: map-panel-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  .map-modal.is-closing .map-modal__panel,
  .contact-modal.is-closing .map-modal__panel {
    animation: map-panel-out 0.3s ease forwards;
  }
  
  @keyframes map-panel-in {
    to { transform: translateX(0); }
  }
  
  @keyframes map-panel-out {
    to { transform: translateX(-105%); }
  }
  
  .map-modal__x {
    position: absolute;
    top: 0.45rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #ead8b6;
    color: #3a2a14;
    font-size: 1.45rem;
    cursor: pointer;
  }
  
  .map-modal h2 {
    margin: 0.25rem 0 0.35rem;
    font-family: var(--font-display);
    color: #3b2b15;
  }
  
  .map-modal__lead {
    margin: 0 0 0.55rem;
    color: #3f3327;
    font-weight: 700;
  }
  
  .map-modal__place {
    margin: 0;
    font-weight: 800;
    color: #2c2217;
  }
  
  .map-modal__address,
  .map-modal__refs {
    margin: 0.3rem 0 0;
    color: #3f3327;
  }
  
  .map-modal__address a {
    color: #0b4aa2;
    font-weight: 700;
    text-decoration: none;
  }
  
  .map-modal__address a:hover {
    text-decoration: underline;
  }

  .contact-modal .contact-modal__wa-line {
    margin: 0.45rem 0 0;
  }

  .contact-modal__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 1rem 0.58rem 0.75rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(145deg, #2fe573 0%, #25d366 42%, #128c7e 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.28) inset,
      0 4px 14px rgba(18, 140, 126, 0.38);
    transition:
      transform 0.15s ease,
      filter 0.15s ease,
      box-shadow 0.15s ease;
  }

  .contact-modal__wa-btn:hover {
    filter: brightness(1.05);
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.32) inset,
      0 6px 18px rgba(18, 140, 126, 0.45);
  }

  .contact-modal__wa-btn:active {
    transform: scale(0.98);
  }

  .contact-modal__wa-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
  }

  .contact-modal__wa-txt {
    line-height: 1.15;
    white-space: nowrap;
  }
  
  .map-modal__map-wrap {
    margin-top: 0.8rem;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #d7c29a;
    background: #fff;
    height: min(72vh, 540px);
  }
  
  .map-modal__map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  @media (max-width: 767px) {
    .map-modal__panel {
      width: 100%;
      max-width: 100%;
      padding: 1rem 0.95rem 0.85rem;
    }

    .contact-modal__wa-btn {
      width: 100%;
      max-width: 100%;
      justify-content: center;
      box-sizing: border-box;
    }
  
    .map-modal__map-wrap {
      height: 62vh;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  
    .hero__sun-rays {
      animation: none;
    }
  
    .hero__scenario--sky,
    .hero__sun,
    .hero__stars,
    .hero__clouds {
      transition: none;
      transform: none;
      filter: none;
    }
  
    .hero__scenario--sky::before,
    .hero__scenario--sky::after {
      transition: none;
    }

    .hero__scroll-cta {
      animation: none;
    }

    .music-snippet__peek {
      animation: none;
      transform: translate(0, 0);
      opacity: 1;
    }

    @media (hover: hover) and (pointer: fine) {
      .music-snippet:hover .music-snippet__peek,
      .music-snippet:focus-within .music-snippet__peek {
        transition: none;
        transform: translate(2px, 2px);
      }
    }
  }
  
  @media (max-width: 767px) {
    .hero__bridge-badge-wrap {
      top: 38%;
    }

    .hero__bridge-badge {
      width: clamp(180px, 68vw, 360px);
    }

    .hero__bridge-subline {
      font-size: clamp(2.15rem, 12vw, 3.5rem);
      margin-top: clamp(-1.25rem, -5vw, -0.55rem);
    }
  }
  