/*
Theme Name: COBOCE R.L.
Theme URI: https://coboce.com/
Description: Tema institucional propio de COBOCE R.L. basado en Hello Elementor.
Author: COBOCE R.L.
Version: 0.1.0
Template: hello-elementor
Text Domain: coboce-rl
*/

/*
 * Los estilos corporativos se incorporaran despues de convertir
 * los componentes heredados y aprobar la nueva estructura visual.
 */

/* Estructura institucional propia: Fase 5A */

.cbrl-header,
.cbrl-footer {
    box-sizing: border-box;
}

.cbrl-header *,
.cbrl-footer * {
    box-sizing: border-box;
}

.cbrl-header {
    background: #fff;
    border-bottom: 1px solid #e7e9ef;
    position: relative;
    z-index: 100;
}

.cbrl-header-inner {
    max-width: 1280px;
    min-height: 90px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cbrl-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #082471;
    font-size: 22px;
    font-weight: 700;
}

.cbrl-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 65px;
    object-fit: contain;
}

.cbrl-menu,
.cbrl-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cbrl-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.cbrl-menu li {
    position: relative;
}

.cbrl-menu a {
    display: block;
    padding: 10px 0;
    color: #082471;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cbrl-menu a:hover,
.cbrl-menu a:focus-visible {
    color: #bf3838;
}

.cbrl-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 225px;
    padding: 10px 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.13);
    list-style: none;
    display: none;
    z-index: 110;
}

.cbrl-menu li:hover > .sub-menu,
.cbrl-menu li:focus-within > .sub-menu {
    display: block;
}

.cbrl-nav-mobile {
    display: none;
}

.cbrl-footer {
    background: #102348;
    color: #fff;
}

.cbrl-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 45px 28px 22px;
}

.cbrl-footer-identity strong {
    font-size: 21px;
}

.cbrl-footer-identity p {
    margin: 8px 0 24px;
    color: #e1e6f0;
}

.cbrl-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.cbrl-footer-menu a {
    color: #fff;
    text-decoration: none;
}

.cbrl-footer-menu a:hover {
    text-decoration: underline;
}

.cbrl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.22);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
}

.cbrl-skip {
    position: absolute;
    left: -9999px;
    z-index: 9999;
}

.cbrl-skip:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 12px;
}

@media (max-width: 960px) {
    .cbrl-header-inner {
        min-height: 72px;
        padding: 12px 18px;
    }

    .cbrl-logo {
        max-width: 180px;
        max-height: 55px;
    }

    .cbrl-nav-desktop {
        display: none;
    }

    .cbrl-nav-mobile {
        display: block;
        position: relative;
    }

    .cbrl-nav-mobile summary {
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        color: #082471;
        font-weight: 700;
        padding: 10px;
    }

    .cbrl-nav-mobile nav {
        position: absolute;
        right: 0;
        top: 100%;
        width: min(85vw, 340px);
        max-height: 75vh;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 12px 32px rgba(0,0,0,.16);
        padding: 15px;
    }

    .cbrl-menu-mobile,
    .cbrl-menu-mobile .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .cbrl-menu-mobile .sub-menu {
        padding-left: 18px;
    }

    .cbrl-menu-mobile a {
        display: block;
        padding: 11px 8px;
        text-decoration: none;
        color: #082471;
        border-bottom: 1px solid #edf0f4;
    }

    .cbrl-footer-menu {
        display: block;
    }

    .cbrl-footer-menu a {
        display: block;
        padding: 7px 0;
    }
}
