/* =========================================================
   HERO – CAPAS, PARALLAX Y CONTENIDO
   ========================================================= */

/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

#hero{
  position: relative;
  overflow: hidden;
  background-image: url("../img/bg/cielo-full.png");
  background-position: center;
  background-size: cover;
}


/* =========================================================
   CAPAS BASE
   ========================================================= */

/* Todas las capas */
#hero .hero__layer{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0,0,0);
}


/* =========================================================
   CIELO
   ========================================================= */

#hero .hero__sky{
  position: fixed;
  inset: 0;

  background-size: cover;
  background-position: center top;
  transform: none !important;
  z-index: 0;

  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}

#hero.is-active .hero__sky{
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   MONTAÑAS
   ========================================================= */

#hero .hero__mountains{
  background-image: url("../img/bg/montanas.png");
  background-position: center 50%;
  z-index: 1;
}


/* =========================================================
   CÉSPED
   ========================================================= */

#hero .hero__grass{
  background-image: url("../img/bg/cesped.png");
  background-position: center 90%;
  z-index: 2;
  transform: scale(1.03);
}


/* =========================================================
   OVERLAY OSCURO
   ========================================================= */

.bg-opacity{
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 3;
}


/* =========================================================
   DEGRADADO INFERIOR
   ========================================================= */

.degrade{
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 20vh;

  background: linear-gradient(
    to bottom,
    rgba(11, 29, 38, 0) 0%,
    rgba(11, 29, 38, 0.4) 35%,
    rgba(11, 29, 38, 0.75) 65%,
    #0B1D26 100%
  );

  z-index: 3;
}


/* =========================================================
   CONTENIDO SUPERIOR
   ========================================================= */

.site_nav,
.hero_info > *:not(.bg-opacity){
  position: relative;
  z-index: 4;
}

#hero nav,
#hero .seccion_container,
#hero .degrade{
  position: relative;
  z-index: 4;
}


/* =========================================================
   TEXTO HERO
   ========================================================= */

.hero_info{
  color: var(--paper);
}

.hero_info h1{
  text-transform: uppercase;
  font-weight: bolder;
  margin-bottom: 0.5em;
}

.hero_info .lead{
  margin-bottom: 1.5em;
}

.hero_info .actions a{
  margin-right: 1em;
}


/* =========================================================
   RESPONSIVE — MÓVIL / TABLET
   ========================================================= */

@media (max-width: 959px){

  #hero .seccion_container{
    padding: 0 6%;
  }

  .hero_info .con-linea{
    font-size: 75%;
  }

  #hero .hero__mountains,
  #hero .hero__grass{
    background-size: cover;
  }
}


/* =========================================================
   RESPONSIVE — ESCRITORIO
   ========================================================= */

@media (min-width: 960px){

  .hero_info{
    padding: 3em 7%;
    width: 50%;
    margin: 0 auto;
  }

  #hero .hero__mountains,
  #hero .hero__grass{
    background-size: 100% 100%;
  }
}


/* =========================================================
   MOBILE FALLBACK (fixed rinde mal en algunos móviles)
   ========================================================= */

@media (max-width: 768px){
  #hero .hero__sky{
    position: absolute;
  }
}
