/* Contenedor principal del header */
.contenidoH {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    text-align: left;
    color: white;
    overflow: hidden;
}

/* Video de fondo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Oscurecer el video */
.contenidoH::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Contenedor flexible para los elementos */
.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo alineado a la izquierda */
.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-container img {
    height: 120px;
    width: auto;
}

/* Contenedor del texto */
.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 600px;
    text-align: justify;
}

/* Ajuste del párrafo */
p_header {
    font-size: 50px;
    max-width: 600px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Botón alineado debajo del texto */
.btn-home {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    .contenidoH {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 60px 15px;
      min-height: 100vh;
    }
  
    .header-content {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: 20px; /* espacio entre elementos */
    }
  
    .logo-container {
      display: flex;
      justify-content: center;
      width: 100%;
    }
  
    .logo-container img {
      max-width: 60%;
      height: auto;
    }
  
    .text-container {
      max-width: 90%;
      text-align: center;
    }
  
    .text-container p {
      font-size: 16px;
      line-height: 1.5;
      color: #ffffff;
      margin-bottom: 20px;
    }
  
    .btn-home {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-top: 10px;
    }
  
    .btn2 {
      padding: 10px 20px;
      font-size: 16px;
      width: auto;
      border-radius: 8px;
    }
  }  
@media (max-width: 480px) {
    .contenidoH {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 60px 15px;
      min-height: 100vh;
    }
  
    .header-content {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
  
    .logo-container {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
      width: 100%;
    }
  
    .logo-container img {
      max-width: 60%;
      height: auto;
    }
  
    .text-container {
      max-width: 90%;
      text-align: center;
      padding: 0 10px;
      margin-bottom: 20px;
    }
  
    p_header {
      display: block;
      font-size: 16px;
      line-height: 1.5;
      color: white;
      text-align: center;
    }
  
    .btn-home {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-top: 15px;
    }
  
    .btn-home .btn2 {
      padding: 10px 20px;
      font-size: 16px;
      width: auto;
      border-radius: 8px;
    }
}
@media (min-width: 1200px) {
  .logo-container img {
    width: auto;           /* Ancho libre */
    height: auto;          /* Alto automático */
    max-width: 650px;      /* Límite de tamaño */
    max-height: 100px;     /* Opcional, para que no crezca en exceso */
    object-fit: contain;   /* Evita deformaciones */
  }

  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
  }
}


/* Pantallas muy grandes */
@media (min-width: 1400px) {
    .logo-container img {
        height: 150px;
    }

    p_header {
        font-size: 22px;
    }
}
