/* vim: set foldmethod=expr: */

/**
 *
 * En este archivo: Normas gráficas MH
 *
 */

/**
 *
 * comunes
 *
 */

:root {
    --bs-body-bg: #fafafa;
    --bs-body-color: #293340;

    --bs-link-color: #0f69b4;
    --bs-link-color-rgb: rgb(15, 105, 180);
    --bs-link-opacity: 1;
}

body {
    font-family: Fira Sans, sans-serif;
}

div.overrideable-placeholder {
    aspect-ratio: 1.78;
    background-image: url("../../images/sectores/mh/placeholder-Rfeflj1.jpg") !important;
    background-position: center;
}

/**
 *
 * breadcrumb
 *
 */

.breadcrumb {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;

    .breadcrumb-item {
        a {
            color: #7a8790;
        }
        & + .breadcrumb-item {
            &:before {
                border-bottom: 1px solid #576873;
                border-right: 1px solid #576873;
                color: #6c757d;
            }
        }
    }
}
/**
 *
 * rel
 *
 */

aside.rel {
    background-color: transparent;

    h3 {
        border-bottom: 1px solid #e6e6e6;
        font-family: Assistant, sans-serif;
        font-size: 1.12rem;
        font-weight: 600;
        line-height: normal;
        &:after {
            font-size: 15px;
            color: #165fa9;
        }
    }

    a {
        color: #606b7b;
        line-height: normal;
        &:hover {
            color: #0f69b4;
        }
    }
}
/**
 *
 * nodo
 *
 */

article.nodo {
    form {
        background-color: #f7f7f7;
        border-radius: 3px;
        padding: 26px 32px;
        label {
            font-weight: 600;
        }
        .form-control, .form-select {
            border: 1px solid #cae4fd;
            background-color: #fff;
        }
        button[type="submit"] {
            font-size: 16px;
            text-transform: uppercase;
            font-weight: 600;
            color: #fff;
            margin-bottom: -10px;
            background-color: #0f69b4;
            margin-top: 32px;
            border: none;
            border-radius: 3px;
            padding: 15px 33px;
            display: block;
            letter-spacing: 1.2px;
            transition: .3s ease;
            width: 100%;
        }
    }
}
/**
 *
 * toc
 *
 */

aside.toc {
    font-family: Inter, sans-serif;
    background-color: #fff;
    border: 1px solid #dde4ec;
    border-top: 2px solid #2b6ea5;

    &:hover {
        transition: .3s;
        border: 1px solid #7eb0dc;
        border-top: 2px solid #3e7ba5;
    }

    a {
        color: #002147;
    }

    h3 {
        border-bottom: 1px solid #c8cfd8;
        font-family: Assistant, sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: normal;
        a:hover {
            color: #0f69b4;
        }
        .retornar {
            font-weight: 600;
            border-top: 1px solid #d4d4d4;
            border-left: 1px solid transparent;
            border-bottom: 1px solid #d4d4d4;
            line-height: normal;
            font-family: Inter, sans-serif;
            font-size: 15px;
            &:hover {
                border-left: 4px solid #0f69b4;
            }
        }
    }

    ul {
        list-style: none;
        padding: 0 0 0 15px;
        line-height: normal !important;

        li {
            font-size: 15px;
            font-weight: 400;
            line-height: 20px;

            a {
                &:hover {
                    color: #0f69b4;

                }

                &:before {
                    content: "";
                    position: absolute;
                    border-right: 1px solid #4e576b;
                    border-bottom: 1px solid #4e576b;
                    width: 7px;
                    height: 7px;
                    top: 10px;
                    left: -17px;
                    transform: translateY(-50%) rotate(-45deg);
                    transition: .3s ease;
                }
            }

            ul {
                list-style: disc;
                font-size: .7rem;
                color: #576873 !important;
                li {
                    font-size: .93rem;
                    a:before {
                        content: none;
                    }
                }
            }

            &.active {
                > a {
                    color: #0f69b4;
                    font-weight: 600;

                    &:before,
                    &:hover:before {
                        border-color: #136bd5;
                    }
                }

                ul {
                    li {
                        a {
                            color: #576873;
                            font-weight: 400;
                            &:hover {
                                color: #0f69b4;
                            }
                        }
                        &.active a {
                            color: #0f69b4;
                        }
                    }
                }
            }
        }
    }

}
/**
 *
 * nodo/contexto/cols-{1,2,3}/header
 *
 */

article.nodo.contexto-cols1 > header,
article.nodo.contexto-cols2 > header,
article.nodo.contexto-cols3 > header {
    background-color: #0a314d;
    background-image: url("../../images/sectores/mh/header-l3fGkP_.jpg");

    h2 {
        font-family: Assistant, sans-serif;
        font-size: 42px;
        font-weight: 500;
    }
}

/**
 * nodo/contexto/noticia/header
 */

article.nodo.contexto-noticia > header {
    background-color: #0a314d;
    background-image: url("../../images/sectores/mh/header-l3fGkP_.jpg");

    h2 {
        font-family: Assistant, sans-serif;
        font-size: 32px;
        font-weight: 400;
        line-height: 40px;
    }
    time {
        color: #42aefb;
        font-family: Lato, sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .07rem;
        text-transform: uppercase;
    }
    .resumen {
        color: #9ea6d1;
        ul {
            margin: 0 20px 20px;
            padding: 0;
            position: relative;
            li {
                list-style: none;
                &:before {
                    content: "\25C6";
                    font-family: Inter, sans-serif;
                    left: 22px;
                    position: absolute;
                    font-size: 13px;
                    color: #0f69b4;
                    margin-top: 1px;
                    content: "";
                    transform: translateY(-50%) rotate(-45deg);
                    border-right: 2px solid;
                    border-bottom: 2px solid;
                    width: 9px;
                    position: absolute;
                    height: 9px;
                    left: 0;
                    margin-top: 13px;
                }
            }
        }
        p, li {
            line-height: 28px;
            font-size: 19px;
            padding-left: 20px;
        }
    }
}

/**
 *
 * nodo/main (resumen+cuerpo)
 *
 */

article.nodo main {
    div.body-main-center, section.hijos {
        h1, h2, h3, h4, h5, h6 {
            color: #1d3d63;
            font-weight: 500;
        }

        p, ul:not(.nav) {
            color: #33415c;
            font-size: 1.05rem;
        }

        p {
            font-weight: 400;
            line-height: 1.7rem;
        }

        a {
            color: #0f69b4;
        }

        section:not(.hijos, .paginas) ul {
            li {
                list-style: none;
                position: relative;
                &:before {
                    content: "\25C6";
                    font-family: Inter, sans-serif;
                    left: -22px;
                    position: absolute;
                    font-size: 13px;
                    color: #0f69b4;
                    margin-top: 1px;
                }
            }
        }

        table {
            background-color: #fff;
            border: 1px solid #ccd4da;
            color: #26344a;
            font-family: Open Sans, sans-serif;
            font-size: 15px;
            line-height: normal;

            td, th {
                border-right: 1px solid #ccd4da;
                border-bottom: 1px solid #ccd4da;
            }
        }
    }
}

/**
 *
 * nodo/main/customs
 *
 */

article.nodo main .custom {
    a.boton& {
        background-color: transparent;
        border-radius: 2px;
        border: 1px solid #003764;
        color: #003764;
        font-family: Open Sans, sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        line-height: normal;
        margin: 10px;
        min-width: 330px;
        padding: 18px 20px;
        position: relative;
        text-transform: uppercase;

        &::after {
            content: "\F054";
            font-family: Font Awesome\ 5 Free;
            font-weight: 600;
            margin-left: 1rem;
        }

        &:hover {
            background-color: #003764;
            color: #fff;
            border-color: #003764;
        }
    }

    ul.nav& {
        font-family: Assistant, sans-serif;
        border-bottom: 1px solid #c6c9cc;
        margin: 0 auto 46px;
        justify-content: center;
        font-size: 18px;

        .nav-link {
            padding: 0 0 13px;
            border-radius: 0;
            display: flex;
            flex: inherit;
            justify-content: center;
            margin: 0 30px -2px;
            color: #617386;
            font-weight: 600;
            border: 0;
            border-bottom: 3px solid transparent;

            &.active {
                border-bottom: 3px solid #003764;
                color: #003764;
                background: transparent;
            }
        }
    }
}

/**
 *
 * nodo/clase/autoridad
 *
 */

article.nodo.clase-autoridad {
    > header {
        div.nombre {
            font-weight: 400;
            font-size: 38px;
            color: #fff;
        }

        div.cargo {
            color: #bdd7ff;
            font-size: 1.3rem;
            font-weight: 600;
        }
    }
}

/**
 *
 * nodo/clase/persona
 *
 */

article.nodo.clase-persona, .hijo.clase-persona {

    /* como nodo principal */
    div.body-main-center {
        div.cargo {
            font-size: 30px;
        }
    }

    /* como hijo */
    &.hijo.clase-persona {
        border: 1px solid #dde4ec;

        div.flex-shrink-0 {
            border-right: 1px solid #dde4ec;
        }

        div.cargo {
            font-family: Lato,sans-serif;
            text-transform: uppercase;
            font-size: 13px;
            font-weight: 600;
            color: #0f69b4;
            letter-spacing: 3px;
            border-bottom: 1px solid #dde4ec;
        }
    }

}

/**
 *
 * nodo/hijos/formato/listado, personalizado
 *
 */

section.hijos.formato-listado, section.hijos.formato-personalizado {
    > ul {

        > li {
            font-family: Inter, sans-serif;
            background-color: #e4e8ea;
            border: 1px solid #e4e8ea;
            border-radius: 3px;

            a {
                color: #26344a;
                font-weight: 500;
            }

            time {
                font-family: Lato, sans-serif;
                letter-spacing: .07rem;
                font-weight: 700;
                color: #7e8b94;
            }

            h3 {
                font-weight: 400;
                line-height: normal;
                font-size: .95rem;
            }

            &:hover {
                border: 1px solid #7eb0dc;
            }

            &:before {
                color: #768894;
            }

            ul {
                font-size: 15.5px;

                li {
                    border: none;
                }

            }

            p,
            ul li {
                font-size: 15px;
                line-height: 1.5rem;
            }
        }
    }

}

/**
 *
 * nodo/hijos/formato/galeriaAloAncho
 *
 */

section.hijos.formato-galeriaALoAncho {
    div.hijo {
        &:not(:first-child) {
            border-top: 1px solid #dde4ec;
        }
    }
}

/**
 *
 * nodo/hijos/formato/grilla, grillaResponsiva
 *
 */

section.hijos.formato-grilla, section.hijos.formato-grillaResponsiva {
    .col-lg-4 {

        .card {
            background: #f8f8f7;
            border-radius: 0;
            border: 0;

            .card-body {
                background-color: #fff;
                time {
                    font-family: Lato, sans-serif;
                    text-transform: uppercase;
                    letter-spacing: .05rem;
                    font-size: .65rem;
                    font-weight: 700;
                    color: #758b9c;
                }
                h3 {
                    font-size: .98rem;
                    font-weight: 400;
                    line-height: 1.3rem;
                    a {
                        color: #26344a;
                        &:hover {
                            color: #0f69b4;
                            transition: .2s;
                        }
                    }
                }
            }
        }
    }
}
/**
 *
 * nodo/hijos/formato/composicion
 *
 */

section.hijos.formato-composicion {
    div.hijo {
        &:not(:first-child) {
            border-top: 1px solid #dde4ec;
        }
    }
}

section.hijos.formato-panelesColapsables, section.hijos.formato-panelesColapsablesMultiples {
    .perma {
        display: none;
    }
}
/**
 *
 * personalizado/portada/customs
 *
 */

.custom-portada {
    h2& {
        font-family: Inter, sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        color: #26344a;
        margin: 0;
        padding: 2rem 0 1.2rem;
        a {
            color: #26344a;
            &:hover {
                color: #0056b3;
                .fas {
                    transform: translateX(0.4rem);
                    transition: .2s;
                }
            }
        }
        .fas {
            font-size: 0.8rem;
        }
    }
    &.carousel-indicators {
        bottom: 5%;
        list-style: none;
        margin: auto;
        max-width: 95%;
        width: 100%;
        [data-bs-target] {
            align-self: center;
            background-clip: border-box;
            border-bottom: 0;
            border-radius: 40px;
            border-top: 4px solid transparent;
            margin: 0 8px;
            opacity: .3;
            width: 7px;
            &.active {
                opacity: 1;
                background-color: #03a9f4;
                padding: 1px;
            }
        }
    }
}

/**
 *
 * personalizado/portada/noticia-principal
 *
 */

.noticia-principal {
    max-height: 760px;
    overflow: hidden;
    width: 100%;
    max-width: 1440px;

    .carousel-indicators {
        justify-content: flex-end;
        width: 90%;
    }

    img {
        object-fit: cover;
        object-position: center;
        height: 680px;
        position: relative;
        z-index: -1;
    }

    .carousel-item {
        &::after {
            content: "";
            position: absolute;
            background-color: transparent;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: -moz-linear-gradient(180deg, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .55) 100%);
            background: -webkit-linear-gradient(180deg, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .55));
            background: linear-gradient(180deg, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .55));
        }

        .carousel-caption {
            bottom: 6.8%;
            color: #fff;
            left: 70px;
            max-width: 800px;
            padding-bottom: 20px;
            padding-top: 20px;
            position: absolute;
            right: 15%;
            text-align: left;
            transition: .6s ease;
            z-index: 1;

            &:hover {
                margin-left: 10px;
            }

            h3 {
                font-size: 30px;
                font-weight: 500;
                line-height: 37px;
                max-height: 150px;
                margin-top: 8px;
                overflow: hidden;

                a {
                    color: #fff;
                }
            }

            @media only screen and (max-width: 1100px) {
                h3 {
                    font-size: 24px;
                    line-height: 30px;
                    max-width: 580px;
                }
            }

            > * {
                margin-top: 18px;
            }

            time {
                text-transform: uppercase;
                letter-spacing: .07rem;
                font-size: .8rem;
                font-family: Lato, sans-serif;
                font-weight: 700;
                color: #999;
            }

        }
    }
}

