/* Estilos para la sección del héroe (imagen superior) */
.hero-container {
    position: relative;
    height: 25rem; /* altura fija mínima, 400px */
    height: max(25rem, 40vh);   
    overflow: visible; /* Para que la imagen pueda sobresalir hacia abajo */
    
}

/* Video principal responsiva */
.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
   
  .hero-image {
    position: absolute;
    bottom: clamp(-6rem, -10vh, -7.5rem);  /* Ajusta según la altura que quieras sobresalga */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(20%); /* Centra la imagen */
    max-width: clamp(30rem, 40vw, 37.5rem); /* Ajusta el tamaño máximo */
    width: auto; /* Evita que la imagen se estire */
    height: auto; /* Mantiene la proporción */
    z-index: 2;
    pointer-events: none;
  }

  .stansser-image {
    position: absolute;
    bottom: clamp(-12rem, -15vh, -15rem); /* Ajusta según cuánto quieres que sobresalga */
    left: 40%; /* Centra horizontalmente */
    transform: translateX(20%);
    max-width: 100%; /* Asegura que la imagen no se desborde */
    width: clamp(20rem, 30vw, 37.5rem); /* Aumenta el tamaño de esta imagen específica (ajusta al valor que desees) */
    height: auto; /* Mantiene la proporción */
    z-index: 2;
    pointer-events: none;
}

.durma-image {
    position: absolute;
    bottom: clamp(-9rem, -12vh, -10rem); /* Ajusta según cuánto quieres que sobresalga */
    left: 52%; /* Centra horizontalmente */
    transform: translateX(20%);
    max-width: 100%; /* Asegura que la imagen no se desborde */
    width: clamp(15rem, 25vw, 30rem); /* Aumenta el tamaño de esta imagen específica (ajusta al valor que desees) */
    height: auto; /* Mantiene la proporción */
    z-index: 2;
    pointer-events: none;
}
 .jh-image{
    position: absolute;
    bottom: clamp(-7rem, -10vh, -7.5rem);
    left: 60%;
    transform: translateX(-10%); /* Esto corrige el empuje hacia la derecha */
    max-width: 100%;
    width: clamp(15rem, 25vw, 30rem);
    height: auto;
    z-index: 2;
    pointer-events: none;
 }

/* Capa azul con opacidad */
.blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 6, 68, 0.4);
    z-index: 1; /* La capa de opacidad está por encima de la imagen pero debajo de la barra de búsqueda */
}

/* Título */
.hero-title {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: bold;
    margin-bottom: 0.9375rem;
    letter-spacing: 0.09375rem;
  }

/* Contenedor de título y botón */
.hero-content {
    position: absolute;
    top: 50%;
    left: 5%; /* Pegado a la izquierda, ajustable según el margen que quieras */
    transform: translateY(-50%); /* Solo vertical, ya no horizontal */
    z-index: 2;
    text-align: left; /* Alinea el texto a la izquierda */
    width: auto; /* Se adapta al tamaño del texto */
    max-width: clamp(20rem, 50vw, 43.75rem); /* Opcional: limita el ancho para textos largos */
  }

/* Sección información LS7 */

/* Título */
.titulo h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1875rem;
  color: #0d163e; /* Color corporativo */
  position: relative;
  display: inline-block;
  padding-bottom: 0.625rem;
  padding: clamp(3rem, 10vw, 5.625rem) clamp(5rem, 15vw, 18.75rem) 0;
  text-align: center;
}

/* Línea inferior decorativa */
.titulo::after {
  content: "";
  width: 5.625rem;
  height: 0.3125rem;
  background: #c81851;
  display: block;
  margin: 0.625rem auto 0;
  border-radius: 0.3125rem;
  text-align: center;
}

/* Contenedor general de las características */
.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3.125rem) clamp(2rem, 6vw, 5rem);
  gap: 1.25rem;
}

/* Cada característica individual */
.caracteristica {
  flex: 1 1 calc(33.333% - 20px);  /* Tres columnas con espacio entre ellas */
  background-color: #0d163e;
  border-radius: 0.625rem;
  padding: 1.25rem;
  box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.caracteristica:hover {
  transform: translateY(-0.3125rem);
  background: #c81851; /* Cambia a rosa al hacer hover */
}

/* Ícono arriba del título */
.caracteristica i {
  width: 5.625rem;
  height: 5.625rem;
  background: #0d163e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0.3125rem 0.9375rem rgba(189, 15, 76, 0.4);
}

.caracteristica:hover i {
  transform: scale(1.2);
}

.caracteristica h3 {
  margin-bottom: 0.625rem;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  color: white;
  font-weight: bold;
  letter-spacing: 0.03125rem;
}

.caracteristica p {
  color: white;
}

 /* Lo que producimos - galería */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contenedor {
  width: 85%;
  max-width: 68.75rem;
  overflow: hidden;
  margin: auto;
  padding: clamp(2rem, 5vw, 3.75rem) 0;
}

.gallery {
  background: white;
}

.contenedor-galeria {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.img-container {
  position: relative; /* Esto es necesario para posicionar el texto sobre la imagen */
  width: 30%;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  overflow: hidden; /* Para evitar que la imagen se desborde al hacer zoom */
  
  
}

.img-galeria {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.4375rem;
}

.texto-imagen {
  position: absolute;
  bottom: 0; /* Siempre en la parte inferior de la imagen */
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: bold;
  background-color: rgba(6, 6, 68, 0.7);
  padding: clamp(0.25rem, 1vw, 0.625rem);
  z-index: 2;
  letter-spacing: 0.03125rem;
  pointer-events: none;
  transition: transform 0.3s ease-in-out;

  
}

/* Zoom sincronizado */
.img-galeria:hover,
.img-galeria:hover + .texto-imagen {
  transform: scale(1.1);
  transform-origin: bottom center;
}

.imagen-light {
  position: fixed;
  background: rgba(6, 6, 68, 0.4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(100%);
  transition: transform .2s ease-in-out;
  z-index: 9999; /* Asegura que esté siempre encima */
}

.show {
  transform: translate(0);
}

.agregar-imagen {
  object-fit: cover;
  width: 60%;
  border-radius: 0.9375rem;
  transform: scale(0);
  transition: transform .3s .2s;
}

.showImage {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 0.9375rem;
  right: 0.9375rem;
  width: 2.5rem;
  cursor: pointer;
  color: #fff;
  
  
  
  font-size: 1.5625rem;
}

@media (max-width: 1024px) {
  
  .hero-image,
  .stansser-image,
  .durma-image,
  .jh-image {
    position: static;
    display: block;
    margin: 0 auto clamp(1rem, 5vw, 2rem);
    transform: none;
    max-width: 80%;
}

  .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  /* Animación general para entrada (si ya la tienes) */
  .caracteristica {
    animation: cajaAnimada 1s ease-out forwards;
  }

  /* Primera y tercera tarjeta (animan entre rosa y azul oscuro) */
  .caracteristica:nth-child(1),
  .caracteristica:nth-child(3) {
    animation: cajaAnimada 1s ease-out forwards,
              cambioColorCaracteristicaRosaAzul 10s ease-in-out infinite alternate;
  }

  /* Segunda tarjeta (solo azul, sin cambios) */
  .caracteristica:nth-child(2) {
    animation: cajaAnimada 1s ease-out forwards,
              cambioColorCaracteristicaAzul 10s ease-in-out infinite alternate;
  }

  @keyframes cambioColorCaracteristicaRosaAzul {
  from { background: #c81851; }
  to   { background: #0d163e; }
  }

  @keyframes cambioColorCaracteristicaAzul {
    from { background: #0d163e; }
    to   { background: #c81851; }
  }


  @media (max-width: 800px) {
    .caracteristica {
      flex: 1 1 100%;
      max-width: 70%; /* O ajusta a 85%, 80%, etc. según gusto */
      margin: 0 auto;  /* Centra la tarjeta horizontalmente */
    }
  }

  .contenedor-galeria {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }

  .img-container {
    flex: 0 0 80%;
    height: 40vw;
    scroll-snap-align: center;
  }

  .img-galeria {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .agregar-imagen{
     width: clamp(90vw, 95vw, 100%);
  }


}




 