/*
|--------------------------------------------------------------------------
| Barra superior global
|--------------------------------------------------------------------------
*/

.cedim-barra-superior {
    width: 100%;
    color: rgba(255, 255, 255, 0.94);
    background: #053f49;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.cedim-barra-contenedor {
    width: min(1160px, calc(100% - 40px));
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.cedim-barra-horarios,
.cedim-barra-contacto {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cedim-barra-superior a {
    color: inherit;
    text-decoration: none;
}

.cedim-barra-superior a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Redes sociales en el pie
|--------------------------------------------------------------------------
*/

.cedim-redes-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cedim-redes-texto strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

.cedim-redes-texto span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.79rem;
}

.cedim-redes-enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cedim-red-social {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.81rem;
    font-weight: bold;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.cedim-red-social:hover,
.cedim-red-social:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.13);
}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .cedim-barra-contenedor {
        width: min(100% - 28px, 1160px);
        justify-content: center;
        text-align: center;
    }

    .cedim-barra-contacto {
        display: none;
    }

    .cedim-barra-horarios span:last-child {
        display: none;
    }

    .cedim-redes-pie {
        display: block;
    }

    .cedim-redes-enlaces {
        margin-top: 13px;
    }

    .cedim-red-social {
        flex: 1;
    }
}
@media (max-width: 950px) {

    .navegacion {
        position: relative;
    }

    .menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        z-index: 1000;

        width: min(
            320px,
            calc(100vw - 32px)
        );

        max-height: calc(100vh - 115px);
        overflow-y: auto;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;

        padding: 12px;
        border: 1px solid
            rgba(9, 74, 82, 0.14);
        border-radius: 18px;

        background: #ffffff;

        box-shadow:
            0 18px 45px
            rgba(7, 49, 55, 0.20);
    }

    .menu.abierto {
        display: flex;
    }

    .menu > a:not(.boton) {
        display: block;
        width: 100%;
        padding: 11px 13px;
        border-radius: 10px;

        color: var(
            --texto,
            #294c52
        );

        font-size: 0.91rem;
        line-height: 1.25;
        text-decoration: none;
    }

    .menu > a:not(.boton):hover,
    .menu > a:not(.boton):focus-visible {
        background: #f1f7f7;
    }

    .menu > a[aria-current="page"] {
        color: var(
            --principal,
            #006b75
        );

        background: #edf7f7;
        font-weight: 700;
    }

    .menu .boton {
        width: auto;
        min-width: 0;
        min-height: 42px;

        align-self: flex-start;

        margin: 8px 0 2px;
        padding: 9px 18px;

        border-radius: 999px;

        font-size: 0.87rem;
        line-height: 1.2;
        text-align: center;
    }

    .boton-menu {
        position: relative;
        z-index: 1001;
    }
}

.pie-inferior {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
}

.pie-legal {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}

@media (max-width: 620px) {

    .pie-inferior {
        display: block;
    }

    .pie-legal {
        display: block;
        margin-top: 7px;
    }
}

/*
|--------------------------------------------------------------------------
| Componentes globales definitivos
|--------------------------------------------------------------------------
*/

.cabecera,
.cabecera *,
.pie,
.pie * {
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Cabecera
|--------------------------------------------------------------------------
*/

.cabecera {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom:
        1px solid
        var(--linea, #dbe8e6);
    backdrop-filter: blur(14px);
}


.cabecera .navegacion {
    width:
        var(
            --contenedor,
            min(1180px, calc(100% - 40px))
        );
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}


.cabecera .marca {
    flex: 0 0 auto;
    min-width: 155px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--texto, #14363c);
    text-decoration: none;
}


.cabecera .marca img {
    flex: 0 0 52px;
    width: 52px;
    max-width: 52px;
    height: 52px;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}


.cabecera .marca-texto {
    display: grid;
    line-height: 1.05;
}


.cabecera .marca-texto strong {
    color: var(--texto, #14363c);
    font-size: 1.02rem;
    font-weight: 700;
    white-space: nowrap;
}


.cabecera .marca-texto span {
    margin-top: 5px;
    color: var(--texto-suave, #607579);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}


.cabecera .menu {
    position: static;
    flex: 1 1 auto;
    width: auto;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}


.cabecera .menu > a:not(.boton) {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    border-radius: 999px;
    color: #38575d;
    background: transparent;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.cabecera .menu > a:not(.boton):hover,
.cabecera .menu > a:not(.boton):focus-visible,
.cabecera .menu > a[aria-current="page"] {
    color: var(--principal, #075d69);
    background:
        var(
            --principal-claro,
            #e6f3f3
        );
}


.cabecera .menu > .boton {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 5px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #ffffff;
    background:
        var(
            --principal,
            #075d69
        );
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.cabecera .menu > .boton:hover,
.cabecera .menu > .boton:focus-visible {
    color: #ffffff;
    background:
        var(
            --principal-oscuro,
            #064852
        );
    transform: translateY(-2px);
}


.cabecera .boton-menu {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: none;
    padding: 0;
    border:
        1px solid
        var(--linea, #dbe8e6);
    border-radius: 14px;
    color: var(--texto, #14363c);
    background: #ffffff;
    cursor: pointer;
}


.cabecera .boton-menu span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}


/*
|--------------------------------------------------------------------------
| Pie de página
|--------------------------------------------------------------------------
*/

.pie {
    width: 100%;
    padding: 48px 0 25px;
    color: rgba(255, 255, 255, 0.75);
    background: #082f37;
}


.pie > .contenedor {
    width:
        var(
            --contenedor,
            min(1180px, calc(100% - 40px))
        );
    margin-left: auto;
    margin-right: auto;
}


.pie .pie-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(150px, 1fr)
        minmax(200px, 1fr);
    gap: 40px;
}


.pie h3 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.3;
}


.pie p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.65;
}


.pie .pie-enlaces {
    display: grid;
    align-items: start;
    gap: 8px;
}


.pie .pie-enlaces a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}


.pie .pie-enlaces a:hover,
.pie .pie-enlaces a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}


.pie .pie-inferior {
    margin-top: 18px;
    padding-top: 21px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 25px;
    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}


.pie .pie-creditos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}


.pie .pie-legal {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}


.pie .credito-creativa {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 5px 10px;
    border:
        1px solid
        rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    background:
        rgba(255, 255, 255, 0.05);
    font-size: 0.74rem;
    line-height: 1.25;
}


.pie .credito-creativa strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| WhatsApp flotante
|--------------------------------------------------------------------------
*/

.whatsapp-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1400;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border-radius: 999px;
    color: #063416;
    background: #25d366;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow:
        0 18px 40px
        rgba(37, 211, 102, 0.32);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.whatsapp-flotante:hover,
.whatsapp-flotante:focus-visible {
    color: #063416;
    transform: translateY(-3px);
    box-shadow:
        0 22px 45px
        rgba(37, 211, 102, 0.4);
}


/*
|--------------------------------------------------------------------------
| Ajuste para pantallas medianas
|--------------------------------------------------------------------------
*/

@media (max-width: 1120px) {

    .cabecera .navegacion {
        gap: 12px;
    }


    .cabecera .menu {
        gap: 1px;
    }


    .cabecera .menu > a:not(.boton) {
        padding: 9px 7px;
        font-size: 0.81rem;
    }


    .cabecera .menu > .boton {
        margin-left: 3px;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.83rem;
    }


    .cabecera .marca {
        min-width: 140px;
    }


    .cabecera .marca-texto span {
        display: none;
    }
}


/*
|--------------------------------------------------------------------------
| Menú desplegable
|--------------------------------------------------------------------------
*/

@media (max-width: 1040px) {

    .cabecera .navegacion {
        position: relative;
    }


    .cabecera .boton-menu {
        display: block;
    }


    .cabecera .menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        z-index: 1300;
        flex: none;
        width:
            min(
                310px,
                calc(100vw - 32px)
            );
        max-height:
            calc(100vh - 120px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        margin: 0;
        padding: 11px;
        overflow-y: auto;
        border:
            1px solid
            rgba(9, 74, 82, 0.14);
        border-radius: 18px;
        background: #ffffff;
        box-shadow:
            0 18px 45px
            rgba(7, 49, 55, 0.20);
    }


    .cabecera .menu.abierto {
        display: flex;
    }


    .cabecera .menu > a:not(.boton) {
        width: 100%;
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: var(--texto, #294c52);
        font-size: 0.88rem;
        line-height: 1.25;
        text-align: left;
    }


    .cabecera .menu > .boton {
        width: auto;
        min-width: 0;
        min-height: 42px;
        align-self: flex-start;
        margin: 8px 0 2px;
        padding: 10px 18px;
        font-size: 0.87rem;
    }


    .pie .pie-grid {
        grid-template-columns: 1fr 1fr;
    }


    .pie .pie-grid > div:first-child {
        grid-column: 1 / -1;
    }
}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .cabecera .navegacion {
        width:
            min(
                100% - 28px,
                1180px
            );
        min-height: 74px;
    }


    .cabecera .marca {
        min-width: 0;
        gap: 9px;
    }


    .cabecera .marca img {
        flex-basis: 46px;
        width: 46px;
        max-width: 46px;
        height: 46px;
    }


    .cabecera .marca-texto strong {
        font-size: 0.94rem;
    }


    .cabecera .marca-texto span {
        display: none;
    }


    .cabecera .menu {
        width: calc(100vw - 28px);
    }


    .pie {
        padding-top: 42px;
    }


    .pie > .contenedor {
        width:
            min(
                100% - 28px,
                1180px
            );
    }


    .pie .pie-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .pie .pie-grid > div:first-child {
        grid-column: auto;
    }


    .pie .pie-inferior {
        display: block;
    }


    .pie .pie-creditos {
        align-items: flex-start;
        margin-top: 10px;
        text-align: left;
    }


    .pie .credito-creativa {
        justify-content: flex-start;
    }


    .whatsapp-flotante {
        right: 14px;
        bottom: 14px;
        width: 55px;
        min-height: 55px;
        padding: 0;
        font-size: 0;
    }


    .whatsapp-flotante::before {
        content: "WA";
        font-size: 0.82rem;
    }
}

/*
|--------------------------------------------------------------------------
| Cabecera pública unificada V4
|--------------------------------------------------------------------------
*/

.cedim-barra-superior,
.cabecera {
    font-family:
        var(
            --identidad-fuente-principal,
            Arial,
            Helvetica,
            sans-serif
        );
}


.cabecera {
    position: sticky !important;
    top: 0;
    z-index: 1200;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #dbe8e6;
    backdrop-filter: blur(14px);
}


.cabecera > .contenedor.navegacion {
    position: relative;
    width:
        min(
            1180px,
            calc(100% - 40px)
        ) !important;
    max-width: none !important;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}


.cabecera .marca {
    flex: 0 0 auto;
    min-width: 155px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    color:
        var(
            --identidad-texto,
            #14363c
        );
    background: transparent;
    text-decoration: none;
}


.cabecera .marca img {
    flex: 0 0 52px;
    width: 52px !important;
    min-width: 52px;
    max-width: 52px !important;
    height: 52px !important;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    transform: none !important;
}


.cabecera .marca-texto {
    display: grid;
    margin: 0;
    padding: 0;
    line-height: 1.05;
}


.cabecera .marca-texto strong {
    margin: 0;
    color:
        var(
            --identidad-texto,
            #14363c
        );
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}


.cabecera .marca-texto span {
    display: block;
    margin-top: 5px;
    color: #607579;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}


.cabecera .menu {
    position: static !important;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}


.cabecera .menu > a:not(.boton) {
    width: auto;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 999px;
    color: #38575d;
    background: transparent;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}


.cabecera .menu > a:not(.boton):hover,
.cabecera .menu > a:not(.boton):focus-visible,
.cabecera .menu > a[aria-current="page"] {
    color:
        var(
            --identidad-principal,
            #075d69
        );
    background:
        var(
            --identidad-secundario,
            #e6f3f3
        );
}


.cabecera .menu > a.boton {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 5px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #ffffff;
    background:
        var(
            --identidad-principal,
            #075d69
        );
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transform: none;
}


.cabecera .menu > a.boton:hover,
.cabecera .menu > a.boton:focus-visible {
    color: #ffffff;
    background:
        var(
            --identidad-principal-oscuro,
            #064852
        );
    transform: translateY(-2px);
}


.cabecera .boton-menu {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: none !important;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe8e6;
    border-radius: 14px;
    color: #14363c;
    background: #ffffff;
    cursor: pointer;
}


.cabecera .boton-menu span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}


/*
|--------------------------------------------------------------------------
| Pantallas medianas
|--------------------------------------------------------------------------
*/

@media (max-width: 1120px) {

    .cabecera > .contenedor.navegacion {
        gap: 12px;
    }


    .cabecera .marca {
        min-width: 140px;
    }


    .cabecera .marca-texto span {
        display: none;
    }


    .cabecera .menu {
        gap: 1px;
    }


    .cabecera .menu > a:not(.boton) {
        padding: 9px 7px;
        font-size: 0.81rem;
    }


    .cabecera .menu > a.boton {
        margin-left: 3px;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.83rem;
    }
}


/*
|--------------------------------------------------------------------------
| Menú móvil unificado
|--------------------------------------------------------------------------
*/

@media (max-width: 1040px) {

    .cabecera .boton-menu {
        display: block !important;
    }


    .cabecera .menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1300;
        flex: none;
        width:
            min(
                310px,
                calc(100vw - 32px)
            ) !important;
        max-height:
            calc(100vh - 120px);
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        margin: 0;
        padding: 11px;
        overflow-y: auto;
        border:
            1px solid
            rgba(9, 74, 82, 0.14);
        border-radius: 18px;
        background: #ffffff;
        box-shadow:
            0 18px 45px
            rgba(7, 49, 55, 0.20);
    }


    .cabecera .menu.abierto {
        display: flex !important;
    }


    .cabecera .menu > a:not(.boton) {
        width: 100%;
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #294c52;
        font-size: 0.88rem;
        line-height: 1.25;
        text-align: left;
    }


    .cabecera .menu > a.boton {
        width: auto;
        min-height: 42px;
        align-self: flex-start;
        margin: 8px 0 2px;
        padding: 10px 18px;
        font-size: 0.87rem;
    }
}


@media (min-width: 1041px) {

    .cabecera .menu {
        display: flex !important;
    }
}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .cabecera > .contenedor.navegacion {
        width:
            min(
                100% - 28px,
                1180px
            ) !important;
        min-height: 74px;
    }


    .cabecera .marca {
        min-width: 0;
        gap: 9px;
    }


    .cabecera .marca img {
        flex-basis: 46px;
        width: 46px !important;
        min-width: 46px;
        max-width: 46px !important;
        height: 46px !important;
    }


    .cabecera .marca-texto strong {
        font-size: 0.94rem;
    }


    .cabecera .menu {
        width:
            calc(
                100vw - 28px
            ) !important;
    }
}