/* HeroSection.css */
.hero-section {
  position: relative;
  width: 100%;
  height: auto; /* Dejamos que la altura se ajuste al contenido en escritorio */
  min-height: 820px; 
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 50% 100%, 0 calc(100% - 80px));
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden; /* Asegura el recorte */
}

.hero-video .video-wrapper {
  width: 100%;
  height: 100%;
}

.hero-video .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 2;
}

.hero-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 0, 0, 0.514) 2px, rgb(0, 0, 0, 0.514) 1px), repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0, 0, 0, 0.514) 2px, rgb(0, 0, 0, 0.514) 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 3;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 4;
  width: 80%;
}

.overlay h1 {
  font-family: GeneralSans, sans-serif;
  font-weight: 700;
  font-size: 3.5em;
  line-height: 1.1; /* Agregado para reducir espaciado vertical */
  margin-bottom: 0.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.overlay p {
  font-family: GeneralSans, sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh; /* Altura mínima para cubrir la pantalla en móvil */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
  }

  .overlay {
    width: 90%;
    margin-top: -40px; /* Offset to move overlay up */
  }

  .overlay h1 {
    font-family: GeneralSans, sans-serif;
    font-weight: 700;
    font-size: 2.2em;
    margin-bottom: 0.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
  }
  
  .overlay p {
    font-family: GeneralSans, sans-serif;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.4;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.4);
  }
}
