/* HERO DINÁMICO - VERSIÓN SIMPLE */
.hz-dynamic-hero {
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0 40px;
    height: 300px; /* AUMENTADO: de 250px a 300px */
    min-height: 300px; /* AUMENTADO: de 250px a 300px */
    max-height: 350px; /* AUMENTADO: de 300px a 350px */
}

.hz-dynamic-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
}

/* IMÁGENES DIRECTAS EN CSS */
/* IMÁGENES DIRECTAS EN CSS - NUEVOS NOMBRES */
.hz-dynamic-bg-alianza {
    background-image: url('/componentes/img/fondo/hd-la_alianza.png'); 
}

.hz-dynamic-bg-socios {
    background-image: url('/componentes/img/fondo/hd-socios.png'); 
}

.hz-dynamic-bg-servicios {
    background-image: url('/componentes/img/fondo/hd-servicios.png');
}

.hz-dynamic-bg-publicaciones {
    background-image: url('/componentes/img/fondo/hd-publicaciones.png');
}

.hz-dynamic-bg-contacto {
    background-image: url('/componentes/img/fondo/hd-contacto.png'); 
}

/* OVERLAY MENOS TRANSPARENTE - MÁS OSCURO */
.hz-dynamic-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(10, 26, 47, 0.85) 0%,         /* 0.85 en lugar de 0.65 - menos transparente */
        rgba(21, 38, 66, 0.75) 45%,       /* 0.75 en lugar de 0.55 - menos transparente */
        rgba(30, 58, 95, 0.65) 100%       /* 0.65 en lugar de 0.45 - menos transparente */
    );
    backdrop-filter: brightness(0.7);     /* 0.7 en lugar de 0.8 - más oscuro */
    z-index: 2;
}

/* CONTENIDO CON MÁRGENES MEJORADOS */
.hz-dynamic-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    animation: dynamicFadeInUp 0.8s ease-out;
    padding-top: 20px; /* Margen superior adicional */
}

.hz-dynamic-hero-title {
    font-size: 2rem;
    margin-bottom: 15px; /* Aumentado de 10px */
    line-height: 1.1;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.hz-dynamic-hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px; /* Margen adicional */
}

.hz-dynamic-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    z-index: 3;
}

.hz-dynamic-hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.hz-dynamic-hero-wave path {
    fill: white;
}

@keyframes dynamicFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hz-dynamic-hero .hz-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hz-dynamic-hero .hz-container > div {
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE - CORREGIDO PARA MÓVIL
   ========================================================================== */
@media (max-width: 1200px) {
    .hz-dynamic-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .hz-dynamic-hero {
        padding: 50px 0 30px;
        height: 280px; /* Aumentado: de 220px */
        min-height: 280px; /* Aumentado: de 220px */
    }
    
    .hz-dynamic-hero-title {
        font-size: 1.6rem;
    }
    
    .hz-dynamic-hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hz-dynamic-hero {
        padding: 60px 0 30px; /* Aumentado padding-top para móvil */
        height: 220px; /* Aumentado: de 180px */
        min-height: 220px; /* Aumentado: de 180px */
        margin-top: 0; /* Asegurar que no haya margen superior */
    }
    
    .hz-dynamic-hero-title {
        font-size: 1.4rem;
        margin-bottom: 12px; /* Aumentado de 8px */
    }
    
    .hz-dynamic-hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .hz-dynamic-hero-bg {
        background-attachment: scroll;
    }
    
    /* Espacio extra para el menú móvil */
    .hz-dynamic-hero-content {
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .hz-dynamic-hero {
        padding: 50px 0 20px; /* Ajustado para móvil pequeño */
        height: 200px; /* Aumentado: de 150px */
        min-height: 200px; /* Aumentado: de 150px */
    }
    
    .hz-dynamic-hero-title {
        font-size: 1.3rem; /* Aumentado: de 1.2rem */
        margin-bottom: 10px;
    }
    
    .hz-dynamic-hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-top: 5px;
    }
    
    /* Asegurar que no se solape con el menú */
    .hz-dynamic-hero {
        position: relative;
        z-index: 1;
    }
}

/* ARREGLO ESPECÍFICO PARA CUANDO EL MENÚ MÓVIL ESTÁ ABIERTO */
@media (max-width: 768px) {
    .hz-nav.active ~ .hz-dynamic-hero {
        margin-top: 60px; /* Espacio cuando el menú está abierto */
    }
}