:root {
    --color-blue: #0087ff;
    --color-blue-dark: #003670;
    /* 003876 */
    --color-blue-light: #80b3ff;
    --color-red: #dc052d;
    --color-pink: #ff6568;
    --color-green: #2ecc71;
    --color-gray: rgb(109, 109, 109);
    --color-gray-light: #f3f3f3;
    --color-orange: #ffba00;
    --color-purple: #9370f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.75;
}

p {
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 2rem 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500 !important;
    line-height: 1.3;
    color: var(--color-blue-dark) !important;
}

h1 {
    margin-top: 0;
    font-size: 3.052rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}

small,
.text_small {
    font-size: 0.8rem;
}

ul {
    list-style: none;
    border: 0;
    font-size: 100%;
    font: inherit;
    margin: 0 !important;
    padding: 0;
    vertical-align: baseline;
}

.main-menu {
    border-top: 1px solid rgba(204, 204, 204, 0.4);
}

main section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #BCD1EC;
}

.a {
    text-decoration: none !important;
}

.ul {
    list-style: disc;
    list-style-position: inside;
}

.c-gray {
    color: #595959;
}

/* MENU INTERES */
.head-line {
    margin-left: 1rem;
    margin-right: 0.2rem;
    border-radius: 40px;
    width: 1px;
    height: 50px;
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235/var(--tw-bg-opacity));
}

.container-menu-interes {
    padding: 0.35rem 0.75rem;
    /* max-width: 550px; */
    /* max-height: 550px; */
}

.title-interes {
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.title-interes span {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue-dark);
}

.content-menu-interes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-menu-interes li a {
    text-decoration: none;
    color: #595959;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    align-items: center;
    border-radius: 0.375rem;
}

.content-menu-interes li a:hover {
    color: rgb(30 149 255/1);
    background-color: rgb(239 247 255/1);
}

.content-menu-interes li a:hover div {
    background-color: rgb(30 149 255/0.4);
    border: 2px solid rgb(30 149 255/1);
}

.content-menu-interes li a div {
    position: relative;
    border: 2px solid rgb(229 231 235/1);
    border-radius: 60px;
    width: 60px;
    height: 60px;
}

.content-menu-interes li div img {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    padding: 0.5rem;
    object-fit: contain;
}

/* BANNER */

.banner {
    display: flex;
    flex-direction: row;
}

.banner-column {
    display: flex;
    flex-direction: column;
}

.banner-title {
    margin: 0;
    text-wrap: balance;
}

.banner-paragraph {
    margin: 0;
    text-wrap: pretty;
}

.banner-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.banner-separatorHX {
    width: 100%;
    height: 0.125rem;
    margin: 1.25rem 0;
}

.banner-separatorVY {
    width: 0.125rem;
    height: 80%;
    margin: 0 1.25rem;
}

@media screen and (max-width: 1200px) {
    .banner {
        flex-direction: column;
    }

    .banner-column {
        padding: 1rem !important;
        width: 100% !important;
    }
}

/* BOTON */
.btn-primary-rounded {
    display: flex;
    padding: 0.5rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 1.5625rem;
    background: rgb(15, 83, 156) !important;
    color: #FFFFFF;
    outline: none;
    border: 0;
    font-weight: 500;
}

.btn-primary-rounded:hover {
    background-color: rgb(11, 62, 117) !important;
    color: #FFFFFF !important;
    text-decoration: none;
}

.btn-outlined-rounded {
    border: none;
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    background-color: transparent;
    transition: background-color 0.5s;
}

.btn-outlined-rounded.text-danger:hover {
    background-color: rgba(220, 5, 45, 0.09);
}

/* CARDS */

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    text-wrap: balance;
}

.card-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-link {
    text-decoration: underline;
    color: #0087ff;
    font-size: 12px;
}

.card-container {
    max-width: 512px;
}

.card-doc,
.card-folder {
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid #E4E4E4;
}

/* BREADCRUMB */

.breadcrumb-custom {
    padding: 3rem 0;
    background-color: #EEF5FF;
}

.breadcrumb-routes {
    color: var(--color-blue-dark);
    margin: 0;
    text-transform: uppercase;
}

.breadcrumb-title {
    color: var(--color-blue-dark);
    margin: 0;
    margin-top: 0.5rem;
    text-transform: capitalize;
}

/* CAROUSEL */

.glider-next {
    right: 16px !important;
    left: auto;
    padding-left: 0.1rem;
}

.glider-prev {
    left: 16px !important;
    right: auto;
    padding-right: 0.1rem !important;
}

.glider-prev,
.glider-next {
    top: 50% !important;
    background: rgb(15, 83, 156) !important;
    color: #FFFFFF !important;
    border-radius: 1.5rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glider-dot {
    margin-top: 1rem !important;
}

.glider-dot.active {
    background: #BCD1EC !important;
}

.glider-prev:hover,
.glider-next:hover {
    background-color: rgb(11, 62, 117) !important;
    border-radius: 1.5rem !important;
}

/* RECORRIDO */
.outline-container {
    border-radius: 0.5rem;
    border: 2px solid #EEF5FF;
    padding: 1.5rem;
}

.outline-content {
    display: flex;
    width: inherit;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    flex-shrink: 0;
}

.outline-cont {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    align-self: stretch;
}

.cont-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.outline-item {
    display: flex;
    width: 16.75rem;
    align-items: center;
    gap: 1rem;
}

.outline-icon {
    display: flex;
    padding: 0.5rem 1rem;
    align-items: center;
    border-radius: 2rem;
    background-color: #EEF5FF;
}

.outline-icon i {
    font-size: 1.5rem;
    color: var(--color-blue-dark);
}

.outline-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 12.25rem;
}

.outline-info small:first-child {
    font-weight: 700 !important;
    color: #707070;
}

.outline-info small:first-child {
    font-weight: 700 !important;
    color: #707070;
}

.outline-info small:last-child {
    color: #707070;
}

.outline-card {
    border-radius: 0.5rem;
    border: 2px solid #EEF5FF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.outline-card div:first-child {}

.separatorVY {
    height: 35vh;
    width: 0.2vw;
    border-width: 0;
    background-color: var(--color-blue-light);
}

.content-col {
    display: flex;
    padding-top: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/*  */
.share-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.875rem;
    border-radius: 0.25rem;
    background: #FFFFFF;
    box-shadow: 0px 1.5px 4px 0px rgba(0, 0, 0, 0.25);
}

.share-content {
    width: -webkit-fill-available;
}

.share {}

.share p {
    font-weight: 600;
}

.share hr {
    margin: 0;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    border-top: 1.5px solid #D3D3D3;
}

.share-media {
    display: flex;
    gap: 0.75rem;
}

.share-media>* {
    color: var(--color-blue);
    font-size: 1.5rem;
}

.paragraph {
    color: #595959;
}

/* FAQ */

details>summary {
    list-style-type: none;
    color: var(--color-blue-dark);
    font-weight: 500;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

details>summary::-webkit-details-marker {
    display: none;
}

details>summary::before {
    content: '➕';
}

details[open]>summary::before {
    content: '➖';
}

details {
    border: 1px solid #BEBEBE;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
}

details[open]>summary {
    margin-bottom: 0.5rem;
}

/* MENU LATERAL */
.container-menu-lateral {
    min-height: 100dvh;
    border-right: 1px solid #EBEBEB;
    padding: 3rem 0;
    padding-right: 0;
    margin-bottom: 3rem;
}

.container-menu-lateral li { 
    padding: 0;
    align-items: flex-start;
    gap: 0.625rem;
}

.container-menu-lateral li:hover {
    background-color: #EEF5FF;
}

.container-menu-lateral li.active {
    background-color: #EEF5FF;
    border-right: 3px solid #003876;
}

.container-menu-lateral li a {
    text-decoration: none;
    color: #595959;
}

.btn-menu-lateral {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    border: none;
}

/* SWIPER */
.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.gallery-top {
    height: 80%;
    height: 70vh;
    width: 100%;
}

.gallery-thumbs {
    height: 20vh;
    box-sizing: border-box;
    padding: 10px 0;
    margin-top: 0.75rem;
}

.gallery-thumbs .swiper-slide {
    height: 100%;
    opacity: 0.4;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

/* NOT FOUND */
.container .not-found {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.container .not-found h1 {
    font-size: 8rem;
    margin: 0;
}

.container .not-found div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* TRANSPARENCIA */
.columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* FOOTER */

.footer-light {
    border-top: 1px solid #d3d3d3;
}

.footer-title {
    font-size: 14px;
    font-weight: 500;
}

.footer-light .footer-top {
    background-color: white;
    padding: 43px 0 83px;
    border-bottom: 1px solid #d3d3d3;
}

.footer-light .footer-top .logo-cont {
    height: 100%;
    position: relative;
}

.footer-light .footer-top .logo-cont::after {
    position: initial;
    display: none;
    content: "";
    width: 1px;   


}

.footer-light .footer-top .logo-cont {
  
    border-right: 1px solid #EBEBEB;
    padding: 3rem 0;
    padding-right: 0;
    margin-bottom: 3rem;
}

.footer-light .footer-top .footer-title {
    text-transform: uppercase;
    color: #003876;
    margin-bottom: 32px;
}

.footer-light .footer-top .footer-menu-list li a {
    color: #003876;
    line-height: 20px;
    font-size: 14px;
}

.footer-light .footer-top .footer-menu-list li a:hover {
    opacity: 0.8;
}

.footer-light .footer-top .footer-menu-list li:not(:last-child) {
    margin-bottom: 12px;
}

.footer-light .footer-top .footer-menu-list li span {
    color: #003876;
    line-height: 20px;
    font-size: 14px;
}

.footer-light .footer-bottom {
    background-color: #003670;
}

.footer-light .footer-bottom-cont {
    padding: 30px 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.footer-light .footer-bottom-cont .date,
.footer-light .footer-bottom-cont .logo {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.footer-light .footer-bottom-cont .logo {
    display: inline-flex;
    align-items: center;
}

.footer-light .footer-bottom-cont .logo img {
    margin-left: 8px;
}

.footer-light .footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-light .footer-bottom-right .follow-text {
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
}

.footer-light .footer-bottom-right .follow-icons {
    display: grid;
    grid-auto-flow: column;
    grid-column-gap: 16px;
}

.footer-light .footer-bottom-right .follow-icons a {
    color: white;
}

.footer-nortic .certifications { height: 100px;}

@media screen and (max-width: 768px) {
    .footer-light .footer-top .row>div {
        margin-top: 30px;
    }

    .footer-light .footer-bottom-cont {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 1200px) {
    .footer-light .footer-top .logo-cont img {
        max-width: 180px;
    }

    .footer-light .footer-top .logo-cont::after {
        right: 0 !important;
    }
}

@media (min-width: 481px) {}

@media (min-width: 769px) {
    .footer-nortic a {
        /* display: none; */
    }
}

.footer-light .footer-top .footer-title {
    text-transform: uppercase;
    color: #003876;
    margin-bottom: 5px;
    border-bottom: solid 0.5px #d3d3d3;
}

.footer-light .footer-top .footer-menu-list li:not(:last-child) {
    margin-bottom: 0px;
}


.side-nav .sub-menu {
    display: none;
}

.side-nav .menu-item.open>.sub-menu {
    display: block;
}

/* Ocultar submenús por defecto */
.side-nav .sub-menu {
    display: none;
    margin-left: 15px;
    /* sangría para diferenciar */
    padding-left: 0;
}

/* Mostrar cuando el padre tenga la clase .open */
.side-nav .menu-item.open>.sub-menu {
    display: block;
}

/* Opcional: estilo para el ítem activo */
.side-nav .menu-item-has-children>a {
    display: block;
    padding: 8px 10px; color: #212529;
    text-decoration: none;
}

.side-nav .menu-item-has-children.open>a {
    background: #163f92;
    /* más oscuro cuando está abierto */
}


.dropdown-item {
    display: block;
    width: 100%;
    padding: 0 5px;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: normal;
    background-color: transparent;
    border: 0;
}

/* Ocultar submenús por defecto */
.side-nav .sub-menu {
    display: none;
    margin-left: 15px;
    padding-left: 0;
}

/* Mostrar cuando está abierto */
.side-nav .menu-item.open > .sub-menu {
    display: block;
}

/* Estilo general de enlaces */
.side-nav .menu-item-has-children > a {
    display: block;
    padding: 8px 10px; 
    color: white;
    text-decoration: none;
    position: relative; /* necesario para la flecha */
}

/* Flecha por defecto (abajo) */
.side-nav .menu-item-has-children > a::after {
    content: "▼";
    position: absolute;
    right: 10px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

/* Flecha arriba cuando está abierto */
.side-nav .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.dropdown-menu { 
    border: none;
    border-radius: inherit;
}

.side-nav .menu-item-has-children.open>a {
    background: transparent;
    color: #000;
}

.side-nav .menu-item-has-children>a {
    display: block;
    padding: 0px;
    color: inherit; 
    position: relative;
}


.footer-nortic {
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 30px 0;
    min-height: 200px!important;
}

.sidebar-wrap .widget_nav_menu {

    .sidebar .menu,
    .widget_nav_menu div {
        float: left;
        width: 100%;
        height: auto;
    }

    .menu {
        overflow: hidden;
        box-sizing: border-box;
    }

    .menu {
        li {
            float: left;
            width: 100%;
            height: auto;
            box-sizing: border-box;
            border-bottom: 1px solid #f0f0f0;
            line-height: 33px;
        }

        li:nth-last-child(1) {
            border-bottom: none !important;
        }

        li a {
            display: -webkit-box;
            font-family: $third-font;
            font-size: 10px;
            color: #585858;
            text-transform: uppercase;
            text-decoration: none;
            -webkit-transition: padding 0.3s;
            -moz-transition: padding 0.3s;
            -o-transition: padding 0.3s;
            transition: padding 0.3s;
            line-height: 14px;
            padding: 10px 0px;

            &:hover {
                background: #f2f2f2;
                padding-left: 8px !important;
            }

            &:visited {
                color: $color__link-visited;
            }
        }

        .current-menu-item a,
        .current-menu-parent a {
            color: #414141 !important;
            background: none !important;
            border-bottom: 2px solid #ec181f;
        }

        .current-menu-item a:hover {
            padding-left: 0px;
        }
    }
}


.footer-nortic {
    padding: 20px 0;
    background: #f9f9f9;
    /* opcional */
}

.footer-nortic .footer-title {
    font-size: 14px;
    margin-bottom: 15px; 
    font-weight: 600;
    color: #003876;
}

.footer-nortic .certificaciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    /* alineado a la izquierda */
}

.footer-nortic .cert-item {
    position: relative;
    flex: 1 1 80px;
    /* ancho mínimo más pequeño */
    max-width: 90px;
    /* tamaño máximo reducido */
    aspect-ratio: 1 / 1;
    /* mantiene proporción cuadrada */
}

.footer-nortic .cert-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.footer-nortic .cert-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}