/* Header General */
.custom-header {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinea los elementos desde arriba */
}

/* Contenedor con imagen de fondo */
.header-container {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 1920px;
    height: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.header-featured-image {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 492px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8.8px;
}

/* Acciones (Contacto y Área Privada) */
.header-actions {
    position: absolute;
    top: 20px;
    /* right: 20px; */
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 1920px;
    width: 100%;
}

.header-actions > div {
    display: flex;
    justify-content: right;
    margin: 0 auto;
    max-width: 1242px;
    width: 100%;
}

.header-actions > div > div {
    display: flex;
    place-content: center;
    place-items: center;
    gap: 20px;
}

.divisoria {
    width: 1px;
    height: 30px;
    background-color: #FFFFFF;
    display: inline-block;
}

.header-actions a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Iconos SVG en ::before */
.header-actions a:nth-child(1)::after,
.header-actions a:nth-child(3)::before {
    content: '';
    display: inline-block;
    background-size: cover;
    background-position: center;
}

.header-actions a:nth-child(1)::after {
    width: 18px;
    height: 11px;
    margin-left: 20px;
}

.header-actions a:nth-child(3):before {
    width: 12px;
    height: 15px;
    margin-right: 20px;

}

.header-actions .header-contact::after {
    background-image: url('https://crokis-sites.fra1.cdn.digitaloceanspaces.com/herasa/wp-content/uploads/2024/12/24105122/Grupo-10%402x.png');
    /* Icono para Contacto */
}

.header-actions .header-private::before {
    background-image: url('https://crokis-sites.fra1.cdn.digitaloceanspaces.com/herasa/wp-content/uploads/2024/12/24105121/Grupo-8%402x.png');
    /* Icono para Área Privada */


}

/* Contenido del Header (Logos y Menú) */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.imagenes-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

}

/* Logos en columna */
.header-logo {
    max-width: 48px;
    width: 100%;

}

.header-logo-secondary {
    max-width: 184px;
    width: 100%;

}

/* Menú (fila debajo de los logos) */
nav.header-menu ul.menu-items {
    display: flex;
    flex-direction: row;
    /* gap: 30px; */
    gap: 66px;
}

.header-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
}

/* Subtítulo del Banner */
.banner-subtitle {
    position: absolute;
    /* bottom: 20px; */
    bottom: 15px;
    /* Pegado a la parte inferior */
    width: 100%;
    height: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo separado */
.banner-subtitle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00A2F0;
    mix-blend-mode: multiply;
    z-index: 0;
    /* Asegura que esté detrás del texto */
}

/* Texto independiente */
.banner-subtitle-text {
    position: relative;
    color: white;
    font-size: 28px;
    font-weight: 300;
    padding: 12px;
    z-index: 1;
    /* Asegura que el texto esté encima del fondo */
    text-wrap: balance;
    line-height: 1.2;
}

/* Línea azul */
.banner-line {
    width: 100%;
    height: 25px;
    /* Ajustar si es necesario */
    background-color: #00A2F0;
    position: absolute;
    bottom: 0;
    /* Pegado al final del subtítulo */
    left: 0;
}

.swiper-container {
    position: relative;
    z-index: 0;
    /* Asegúrate de que Swiper no esté por encima */
}

.swiper-slide {
    z-index: auto;
    /* Resetear cualquier posible z-index */
    background-size: cover;
    background-position: center;
    width: 1920px;
    height: 800px !important;
}


/* Menú Hamburguesa */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    /* background-color: #2D5E82; */
    background-color: unset;
    z-index: 2100;
    /* Asegúrate de que sea mayor que el menú */
    padding: 10px 15px;
    cursor: pointer;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

.menu-logo {
    margin-bottom: 40px;
    margin-top: 20px;
}

/* Menú Responsive */
.responsive-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00A2F0;
    z-index: 2000;
    /* Asegúrate de que sea mayor que Swiper */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0.95;
}

.responsive-menu.active {
    display: none;
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

.mobile-links {
    display: none;
}

.responsive-menu-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.responsive-menu-items {
    list-style: none;
    padding: 0;
}

.responsive-menu-items li {
    margin: 25px auto;
    max-width: 95%;
}

.responsive-menu-items a {
    color: white;
    font-size: 18px;
    text-decoration: none;
}

body.menu-open {
    overflow: hidden;
}

.header-logo-resposive {
    display: none;
}

#wpadminbar {
    display: none !important;
}

@media (max-width: 1280px) {
    nav.header-menu ul.menu-items {
        gap: 30px;
    }

}

@media (max-width: 1077px) {

    .header-menu,
    .header-actions {
        display: none !important;
    }
    .responsive-menu.active{
            display: flex;
    }
    .hamburger-menu {
        display: block;
    }

    .header-logo-resposive,
    .mobile-links {
        display: block;
    }

    .header-logo,
    .header-logo-secondary {
        display: none;
    }

    .swiper-slide,
    .custom-header {
        height: 460px !important;
    }

    .banner-subtitle-text {
        font-size: 20px;
    }
}

@media (max-width: 650px) {
    .banner-subtitle-text {
        font-size: 17px;
    }
    .banner-line {
        height: 15px;
    }
}