/* =========================================================
   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);
  box-sizing: border-box;
  max-width: 100%;
}

.hero_stats{
  background: var(--header-maroon, #711c2e);
  color: #fff;
}
.hero_stats__inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6em 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2em;
  text-align: center;
}
.hero_stats__item strong{
  display: block;
  font-family: "Playfair Display", "Poppins", serif;
  font-size: 1.9em;
  line-height: 1.1;
}
.hero_stats__item span{
  display: block;
  font-size: .8em;
  opacity: .85;
  margin-top: .3em;
}
@media (max-width: 768px){
  .hero_stats__inner{ grid-template-columns: repeat(2, 1fr); }
}

/* Franja decorativa de rombos (líneas cruzadas), 100% CSS sin imágenes */
.hero_stats__pattern{
  height: 46px;
  background-color: var(--bg-2, #f6f6f2);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 20px, var(--header-maroon, #711c2e) 20px 21.5px, transparent 21.5px 42px),
    repeating-linear-gradient(-45deg, transparent 0 20px, var(--header-maroon, #711c2e) 20px 21.5px, transparent 21.5px 42px);
  background-position: center;
}
@media (max-width: 600px){
  .hero_stats__pattern{ height: 30px; }
}

.hero_info .hero_title{
  font-family: "Playfair Display", "Poppins", serif;
  text-transform: none;
  font-weight: 800;
  font-size: 3em;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

.hero_info .hero_title .accent{
  color: var(--brand-light, #f2c9d1);
}

.hero_info .lead{
  margin-bottom: 1.5em;
  font-size: 1.05em !important;
  color: rgba(255,255,255,.85);
}

.hero_info .actions a{
  margin-right: 1em;
}

.hero_info .actions .btn__primary{
  background: var(--header-maroon, #711c2e) !important;
  border-color: var(--header-maroon, #711c2e) !important;
  border-radius: .5em !important;
  color: #fff !important;
}
.hero_info .actions .btn__primary:hover{
  background: var(--header-maroon-dark, #3a0f18) !important;
  border-color: var(--header-maroon-dark, #3a0f18) !important;
}
.hero_info .actions .btn__ghost{
  border-radius: .5em !important;
}

@media (min-width: 960px){
  .hero_info .hero_title{ font-size: 3.4em; }
}
.hero{
  position: relative;
}

.hero__sound{
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;

  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 18px;
}
.hero__sound:hover{
  background: rgba(0,0,0,.75);
}

/* =========================================================
   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 5%;
    width: 46%;
    margin-left: 20%;
  }

  #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;
  }
}

.hero_info .hero_title{white-space:normal !important; overflow-wrap:anywhere !important; width:100% !important; display:block !important;}
