/* ========================================
   HERO (CAROUSEL)
======================================== */
.hero.hero-carousel{
  background-color: var(--color-blanco);
  height: 60rem;
  background-image: url(../img/fondos.svg);
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 10rem;
  position: relative;
  overflow: hidden;
}

.hero-contenido{
  position: relative;
  height: 100%;
}

/* Contenedor de slides */
.hero-slides{
  position: relative;
  height: 100%;
}

/* Slide: ocupa toda el área, pero solo 1 visible */
.hero-slide{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;

  opacity: 0;
  visibility: hidden;
  transform: translateX(2rem);
  transition: opacity .45s ease, transform .55s ease, visibility .45s ease;
}

.hero-slide.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-col-1{ flex: 1; }
.hero-col-2{ flex: 0 0 auto; }

.hero-col-2 img{
  max-width: 45rem;
}

/* Tipografía (sin h1) */
.hero-titulo{
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-cuarto);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero-titulo span{
  display: inline;
  font-size: 1em;
  font-weight: 900;
  color: var(--color-primario);
}

.hero-col-1 p{
  margin-bottom: 1.2rem;
  font-size: var(--fs-texto-grande);
  line-height: 1.75;
  color: var(--color-terciario);
  max-width: 54rem;
}

.hero-col-1 p strong{
  color: var(--color-cuarto);
  font-weight: 800;
}

.hero-boton{ margin-top: 2rem; }

/* Flechas */
.hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;

  background: rgba(255,255,255,.9);
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.10);
  color: var(--color-primario);
  font-size: 3.2rem;
  line-height: 1;

  display: grid;
  place-items: center;
  transition: transform .2s ease, opacity .2s ease;
}

.hero-nav:hover{
  transform: translateY(-50%) scale(1.06);
  opacity: .95;
}

.hero-prev{ left: 1.2rem; }
.hero-next{ right: 1.2rem; }

/* ==========================
   TABLET / LAPTOP
========================== */
@media (max-width: 1024px){
  .hero.hero-carousel{
    height: auto;
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  .hero-slide{
    position: relative;
    inset: auto;
    flex-direction: column;
    text-align: center;
    height: auto;
    opacity: 0;
    visibility: hidden;
    display: none;
  }

  .hero-slide.is-active{
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .hero-col-2 img{ max-width: 35rem; }

  .hero-titulo{
    font-size: var(--fs-h1-tablet);
    text-align: center;
  }

  .hero-col-1 p{
    font-size: var(--fs-texto-grande-tablet);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-nav{ top: 52%; }
}

/* ==========================
   MOVIL (<= 768px)
   - ocultar columna 2
========================== */
@media (max-width: 768px){
  .hero.hero-carousel{
    padding-top: 8rem;
    padding-bottom: 5rem;
    height: auto;
  }

  .hero-slide{
    flex-direction: column;
    text-align: center;
    gap: 2.2rem;
  }

  .hero-col-2{ display: none; }

  .hero-col-1{
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
  }

  .hero-titulo{
    font-size: var(--fs-h1-movil);
    line-height: 1.1;
  }

  .hero-col-1 p{
    font-size: var(--fs-texto-grande-movil);
  }

  .hero-boton .boton{
    width: 100%;
    max-width: 30rem;
  }

  .hero-prev{ left: .8rem; }
  .hero-next{ right: .8rem; }
}

/* ==========================
   MOVIL PEQUEÑO (<= 480px)
========================== */
@media (max-width: 480px){
  .hero-titulo{ font-size: 2.9rem; }
  .hero-col-1 p{ font-size: 1.5rem; }
}


.astronauta-wrapper{
  position: relative;
  display: inline-block;
  width: max-content;
  margin: 0 auto;
}

.circulo-atras{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
  width: calc(100% + 4rem);
  max-width: none;
  height: auto;
}

.imagen-banner{
  position: relative;
  z-index: 2;
  display: block;
  pointer-events: none;
}


/* Flotación suave (solo para .floating-smooth) */
.floating-smooth{
  animation: floatingSmooth 4.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatingSmooth{
  0%, 100%{
    transform: translate3d(0, 0, 0);
  }
  50%{
    transform: translate3d(0, -12px, 0);
  }
}

/* Opcional: reduce movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .floating-smooth{
    animation: none;
  }
}
