/* ============================================
   HERO — Parallax Section (FIXED v2)
   ============================================ */

   .parallax {
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  .parallax__header {
    position: relative;
    z-index: 1;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .parallax__visuals {
    position: absolute;
    inset: 0;
  }

  .parallax__layers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #080e28;
  }

  .parallax__black-line-overflow {
    display: none;
  }

  .parallax__layer-picture {
    position: absolute;
    inset: 0;
    display: block;
  }

  /* --- Layer Images (shared base) --- */
  .parallax__layer-img {
    pointer-events: none;
    object-fit: cover;
    width: 100%;
    max-width: none;
    height: 117.5%;
    position: absolute;
    top: 0%;
    left: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .parallax__layer-img--fondo {
    width: 116%;
    height: 135%;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center top;
  }
  .parallax__layer-img--galaxia {}

  .parallax__layer-img--personaje {
    object-fit: contain;
    object-position: center bottom;
    height: 100%;
    top: 24%;
  }

  .parallax__layer-img--nubes {
    object-fit: cover;
    object-position: center center;
    height: 80%;
    top: auto;
    bottom: -20%;
  }

  /* --- Title Layer (Layer 3) --- */
  .parallax__layer-title {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100svh;
    display: flex;
    position: absolute;
    top: -3%;
    left: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .parallax__title-img {
    pointer-events: none;
    width: 92%;
    max-width: 1600px;
    height: auto;
    object-fit: contain;
    position: relative;
  }

  .parallax__fade {
    display: none;
  }

  /* Nubes: absolute, cubre transición hero → music */
  .parallax__nubes {
    position: absolute;
    z-index: 2;
    top: 30vh;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    will-change: transform;
  }

  .parallax__nubes img {
    display: block;
    width: 100%;
    height: auto;
  }

/* --- Responsive --- */
@media (max-width: 768px) {
  .parallax__header {
    min-height: 100svh;
  }

  .parallax__layer-img--fondo {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center 42%;
    transform: none;
  }

  .parallax__layer-img--personaje {
    top: -4%;
    height: 92%;
    object-fit: contain;
    object-position: center bottom;
  }

  .parallax__layer-title {
    top: 0;
    align-items: flex-start;
    padding-top: 19vh;
  }

  .parallax__title-img {
    width: 91%;
  }

  .parallax__nubes {
    z-index: 4;
    top: auto;
    bottom: -3vh;
    width: 100vw;
    left: 0;
    will-change: transform;
  }

  .parallax__nubes img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .parallax__layer-img--fondo {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center 38%;
    transform: none;
  }

  .parallax__layer-img--personaje {
    top: -10%;
    height: 102%;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.84);
    transform-origin: center bottom;
  }

  .parallax__layer-title {
    top: 0;
    align-items: flex-start;
    padding-top: 25vh;
  }

  .parallax__title-img {
    width: 92%;
  }

  .parallax__nubes {
    z-index: 4;
    top: auto;
    bottom: -5vh;
    width: 100vw;
    left: 0;
    will-change: transform;
  }

  .parallax__nubes img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
