/* hero.css */

/* Contenedor principal de la sección Hero */
.hero {
  width: 100%;
  overflow: hidden;
}

/* Contenedor del título (se muestra primero) */
.hero__title-container {
  width: 100%;
  background: var(--color-green); /* Fondo para resaltar el título */
  padding: 20px;
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Contenedor del video (ubicado debajo del título) */
.hero__video-container {
  width: 100%;
  height: 60vh; /* Altura ajustable; aquí se usa el 60% de la altura de la ventana */
  overflow: hidden;
  position: relative;
  margin-top: 20px; /* Separación entre el título y el video */
}

/* El video se adapta para cubrir todo el contenedor sin distorsión */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }
  .hero__video-container {
    height: 40vh;
  }
}
