/* Header absoluto */
.site-header.is-abs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 24px 16px;
    display: grid;
    place-items: center;
    max-width: 1920px;
    margin: auto;
}

.header-inner {
    width: min(1400px, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.brand {
    justify-self: center;
}

.brand-logo {
    max-height: 58px;
    height: auto;
}

/* Botón hamburguesa/X */
.menu-toggle {
    position: absolute;
    right: 24px;
    top: 3px;
    background: none;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transition: none !important;
}

.menu-toggle .icon {
    width: 26px;
    height: 26px;
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

body.menu-open .menu-toggle .icon-hamburger {
    display: none;
}

body.menu-open .menu-toggle .icon-close {
    display: block;
}

/* Overlay: oculto con display:none, visible con clase */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 3;
}

.menu-overlay.is-open {
    display: grid;
    place-items: center;
}

/* Panel y cabecera interna */
.menu-panel {
    width: min(1100px, 92vw);
    position: relative;
}

.menu-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0px;
}

img.icon {
    width: 26px !important;
    height: 26px;
    padding: 0px !important;
}

/* Navegación */
.overlay-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
    text-align: center;
}

.overlay-menu nav li a {
    font-size: 35px;
    font-weight: 300;
    text-decoration: none;
    color: #3d3939;
}

/* Bloquear scroll + invertir logo cuando está abierto */
body.menu-open {
    overflow: hidden;
}

body.menu-open .brand-logo {
    filter: invert(1);
}

/* "mismo logo en invert" */

/* Slick */
.galeria-cmb2 {
    max-width: 1920px;
    max-height: 600px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.galeria-cmb2 .galeria-item,
.galeria-cmb2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* DESPLAZAMIENTO DE ELEMENTOS EN LA CABECERA CUANDO SE ABRE EL MENU */

body.menu-open .menu-toggle {
    right: 40px;
}

body.menu-open a.brand {
    padding-right: 15px;
}

.title-container {
    display: grid;
    place-content: center;
    place-items: center;
    padding: 4em 15px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    height: 201px;
    margin: 0 auto;
    max-width: 1920px;
    filter: drop-shadow(0 0 0  var(--black));
    text-align: center;
    
}

.title-container.not-home {
    padding: 4em 15px 0;
    height: 109px;
}

.lower-header-bg {
    height: 72px;
    max-width: 1920px;
    margin: 0 auto;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--bg-color-1);
}

/* util */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

section.header-container {
    position: relative;
}

div.header-band {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.title-container h1 {
    font-weight: 300;
    font-size: 40px;
}

.title-container h1 {
    font-weight: 300;
    font-size: 40px;
    margin: 0;
}

.title-container p {
    font-size: 22px;
    font-weight: 300;
}

.title-container a {
    color: var(--white);
    border-radius: 3em;
    padding: 10px 60px;
    text-decoration: none;
    border: solid 1px var(--btn-border-color);
}


/* HEADER CON UNA SOLA IMAGEN */

/* Header para las páginas */

.image-container {
    margin: 0 auto;
    max-width: 1920px;
}

.image-container.page {
    height: 700px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-container.shorter {
    height: 155px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-container.huella {
    background-color: var(--bg-color-1);
    background-image: url('https://crokis-sites.fra1.cdn.digitaloceanspaces.com/jicara/wp-content/uploads/2025/10/23120249/Grupo-21%402x-3-scaled.jpg');
    background-position: center;
    background-size: cover;
    height: 460px;
}

.image-container.shorter.page {
    background-image: unset;
    background-color: var(--dark-section-color);
}

section.header-container:has(.image-container.huella) .title-container.not-home {
    background-position: top;
    padding-top: 4em;
}

section.header-container:has(.image-container.shorter.page) .lower-header-bg, section.header-container:has(.image-container.page) .lower-header-bg {
    background-color: var(--white);
}


@media (max-width: 790px) {
    .title-container.home {
        height: 250px;
    }
}

@media (max-width: 650px) {
    .galeria-cmb2 {
        height: auto;
    }

    .brand-logo {
        max-height: 36px;
    }
}

@media (max-width: 470px) {
    .title-container.home {
        height: 350px;
    }
    .brand{
        justify-self: start;
    }
}

@media (max-width: 340px) {
    .title-container.home h1 {
        font-size: 34px;
    }
}