/* Fuente Corra-Montserra */
@font-face {
    font-family: Corra-Montserra-Bold;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Bold.ttf);
    font-display: swap;
}

@font-face {
    font-family: Corra-Montserra-Regular;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Regular.ttf);
    font-display: swap;
}

@font-face {
    font-family: Corra-Montserra-SemiBold;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Semibold.ttf);
    font-display: swap;
}

@font-face {
    font-family: Corra-Montserra-SemiBold;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Semibold.ttf);
    font-display: swap;
}

@font-face {
    font-family: Corra-Montserra-Black;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Black.ttf);
    font-display: swap;
}

@font-face {
    font-family: Corra-Montserra-Light;
    src: url(./fuentes/corra-montserra/TTF/Corra-Montserra-Light.ttf);
    font-display: swap;
}

/* Fuente Gilroy */
@font-face {
    font-family: Gilroy-Black;
    src: url(./fuentes/Gilroy/Gilroy-Black.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-BlackItalic;
    src: url(./fuentes/Gilroy/Gilroy-BlackItalic.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-Bold;
    src: url(./fuentes/Gilroy/Gilroy-Bold.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-BoldItalic;
    src: url(./fuentes/Gilroy/Gilroy-BoldItalic.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-ExtraBold;
    src: url(./fuentes/Gilroy/Gilroy-ExtraBold.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-Light;
    src: url(./fuentes/Gilroy/Gilroy-Light.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-Medium;
    src: url(./fuentes/Gilroy/Gilroy-Medium.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-Regular;
    src: url(./fuentes/Gilroy/Gilroy-Regular.ttf);
    font-display: swap;
}

@font-face {
    font-family: Gilroy-Thin;
    src: url(./fuentes/Gilroy/Gilroy-Thin.ttf);
    font-display: swap;
}

:root {
    --fontFamily: "Gilroy-Regular", sans-serif;
    --fontFamilyBold: "Gilroy-Bold", sans-serif;
    --colorBlanco: #ffffff;
    --blackColor: #1f2428;
    --colorGris: #999999;
    --bg-header: rgba(231, 226, 218, 0.4);
    --font-size-p: 1rem;
    --transition: 0.5s;
    --boxShadow: rgba(80, 79, 79, 0.1) 0px 0px 16px;
    --bg-header: rgba(231, 226, 218, 0.4);
    --bg-content: #f2f2f2;
    --bg-hero: #f3f0f6;
    --text-color: #333;
    --max-width: 1200px;
    --veda-principal: grey;
    --arena: #f1f1f1;
    --color1: #5f1b2d;
    --color2: #861e34;
    --color3: #af1731;
    --color4: #c79b66;
    --color5: #0c312d;
    --color6: #246257;
    --color7: #609b84;
    --color8: #484747;
    --colortitulos: #660033;
    --colorPDF: red;
    --colorOds1: #E5243B;
    --colorOds2: #DDA63A;
    --colorOds3: #4C9F38;
    --colorOds4: #C5192D;
    --colorOds5: #FF3A21;
    --colorOds6: #26BDE2;
    --colorOds7: #FCC30B;
    --colorOds8: #A21942;
    --colorOds9: #FD6925;
    --colorOds10: #DD1367;
    --colorOds11: #FD9D24;
    --colorOds12: #BF8B2E;
    --colorOds13: #3F7E44;
    --colorOds14: #0A97D9;
    --colorOds15: #56C02B;
    --colorOds16: #00689D;
    --colorOds17: #19486A;
    --border-color: #e9ecef;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family: var(--fontFamily) !important;
}

p {
    font-family: 'Corra-Montserra-Regular', sans-serif;
}

h1 {
    font-family: 'Gilroy-Bold', sans-serif;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    background-color: var(--color6);
    color: white;
    border: 2px solid #ffffff;
    /* Borde de contraste */
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
}

#back-to-top:hover {
    background-color: var(--color4);
}

#back-to-top.show {
    display: block;
    animation: fadeIn 0.4s forwards;
}

#back-to-top.hide {
    animation: fadeOut 0.4s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* ================================================ */
/* ESTILOS BASE (VISTA MÓVIL)                       */
/* ================================================ */
.site-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 60px;
}

.header-logos {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-right: 20px;

}

.header-logos img {
    max-height: 35px;
    width: auto;
}

/* En móvil, solo mostramos el primer logo para no saturar */
.header-logos a:not(:first-child) {
    display: none;
}

.hamburger-menu {
    display: flex;
    /* Visible en móvil */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 10px;
}

/* Ocultamos la navegación principal en móvil por defecto */
.main-nav {
    display: none;
    background-color: white;
    padding-bottom: 10px;
}

/* Clase que JS añade para mostrar el menú */
.main-nav.is-active {
    display: block;
}

/* Ocultamos los elementos de escritorio en móvil */
.header-branding-bar,
.nav-brand-line {
    display: none;
}

/* Estilos del menú desplegado en móvil */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-vino);
    /* font-weight: 550; */
    font-family: 'Gilroy-Bold', sans-serif;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color1);
}

.nav-links a.active {
    color: var(--color5);
    border-bottom: solid 1px var(--color6);
}

.dropdown-content {
    list-style: none;
    padding-left: 20px;
    background-color: #fdfdfd;
}

.dropdown-content a {
    font-size: 0.9em;
    color: var(--color-texto);
}

.main-nav {
    transition: box-shadow 0.4s ease-in-out;
}

.main-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Nos aseguramos que esté por encima de todo */

    /* Una sombra para darle profundidad y separarlo del contenido */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/*
 * Clase "placeholder" para el body.
 * Evita que el contenido de la página "salte" bruscamente hacia arriba
 * cuando el menú se convierte en 'position: fixed'.
*/
.body-nav-sticky-placeholder {
    /* El padding-top se ajustará con JavaScript a la altura exacta del nav */
    padding-top: 100px;
    /* Un valor por defecto, JS lo corregirá */
}

/* ================================================ */
/* ESTILOS PARA ESCRITORIO (min-width: 992px)       */
/* ================================================ */
@media (min-width: 992px) {
    .site-header {
        box-shadow: none;
        /* La sombra puede no ser necesaria en el diseño de escritorio */
    }

    .header-top {
        justify-content: center;
        padding: 10px 200px;
        height: auto;
    }

    /* Mostramos todos los logos y los hacemos más grandes */
    .header-logos a:not(:first-child) {
        display: block;
    }

    .header-logos img {
        max-height: 100px;
    }

    /* Ocultamos la hamburguesa */
    .hamburger-menu {
        display: none;
    }

    /* Mostramos y estilizamos la navegación principal */
    .main-nav {
        display: block;
    }

    .header-branding-bar {
        display: block;
        height: 15px;
        background-color: var(--color6);
        border-top: 5px solid var(--color4);
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 5%;
        background-color: var(--colorBlanco);
    }

    .nav-brand-line {
        display: block;
        height: 3px;
        background-color: var(--colorGris);
        flex-grow: 1;
        /* Ocupa el espacio disponible */
        max-width: 600px;
        margin-right: 2rem;
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .nav-links a {
        border-bottom: none;
        transition: color 0.2s ease-in-out;
        color: var(--color1);
        font-family: 'Gilroy-Bold', sans-serif;
        max-width: 170px;
        white-space: normal;
        text-align: center;
        line-height: 1.3em;
        padding: 15px;
    }

    .nav-links a:hover {
        background-color: var(--color6);
        border-radius: 10px;
        color: var(--colorBlanco);
    }

    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        min-width: 220px;
        padding-left: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 4px 4px;
        z-index: 10;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-content li:last-child a {
        border-bottom: none;
    }
}

/* Inician estilos de utilidades */
.w-100px{
    width: 100px;
}
.text-inherit {
    color: inherit;

    &:hover {
        color: var(--color6);
    }
}

.justify-content-left {
    justify-content: left !important;
}

.contenedor-boton {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.contenedor-boton:not(.icon) {
    .btn-descargar {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        padding: 0.7rem 1.5rem;
        border-radius: 10px;
        color: var(--colorBlanco);
        font-size: clamp(1rem, 2vw, 1rem);
        font-weight: 700;
        text-decoration: none;
        overflow: hidden;
        transform: translateZ(0);
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
            color: var(--colorBlanco);
            text-decoration: none;
        }
    }

    .btn-descargar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        height: 120%;
        background-color: var(--color4);
        transform: skewX(-25deg) translateX(-40px);
        z-index: 2;
    }

    .btn-descargar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 80%),
            var(--color2);
        z-index: 1;
    }

    /* 4. Contenido (Texto e Ícono) */
    .btn-descargar__texto {
        position: relative;
        z-index: 3;
        line-height: 1.2;
    }

    /* 5. Efecto Hover (interacción) */
    .btn-descargar:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-descargar:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 600px) {

        .btn-descargar {
            padding: 0.8rem 1.5rem;
            font-size: 1rem;
            gap: 0.8rem;
        }

        .btn-descargar__texto {
            font-size: 0.9rem;
        }
    }
}

/* 1. Contenedor Principal del Botón (la etiqueta <a>) */
.btn-descargar {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    color: var(--colorBlanco);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
        color: var(--colorBlanco);
        text-decoration: none;
    }
}

.btn-descargar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 120%;
    background-color: var(--color4);
    transform: skewX(-25deg) translateX(-40px);
    z-index: 2;
}

.btn-descargar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 80%),
        var(--color2);
    z-index: 1;
}

/* 4. Contenido (Texto e Ícono) */
.btn-descargar__texto,
.btn-descargar__icono {
    position: relative;
    z-index: 3;
    line-height: 1.2;
}

.btn-descargar__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--colorBlanco);
    border-radius: 8px;
}

.btn-descargar__icono svg {
    width: 28px;
    height: 28px;
}

/* 5. Efecto Hover (interacción) */
.btn-descargar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-descargar:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {

    .btn-descargar {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        gap: 0.8rem;
    }

    .btn-descargar__icono {
        display: none;
    }

    .btn-descargar__texto {
        font-size: 0.9rem;
    }
}

.subtitulo-tematica {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Corra-Montserra-Regular', sans-serif;
    font-size: 2.9vh;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.titulo-tematica {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Gilroy-Black', sans-serif;
    font-size: 3.9vh;
    color: var(--color1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.flex-container-centro {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.w-90p {
    width: 90%;
}

.w-200 {
    width: 200px;
}

.w-70p {
    width: 70%;
}

.w-60p {
    width: 60%;
}

.w-15p {
    width: 15%;
}

.w-40p {
    width: 40%;
}

.w-30p {
    width: 30%;
}

.w-20px {
    width: 20px;
}

.w-10p {
    width: 10%;
}

.w-20p {
    width: 20%;
}

.w-9p {
    width: 9%;
}

.w-10p {
    width: 10%;
}

.w-2p {
    width: 2%;
}

.w-5p {
    width: 5%;
}

.texto-color1 {
    color: var(--color1);
}

.texto-color2 {
    color: var(--color2);
}

.text-justify {
    text-align: justify;
}

.gilroy-bold {
    font-family: 'Gilroy-Bold', sans-serif;
}

.corra-bold {
    font-family: 'Corra-Montserra-Bold', sans-serif;
}

.corra-regular {
    font-family: 'Corra-Montserra-Regular', sans-serif;
}

.corra-light {
    font-family: 'Corra-Montserra-Light', sans-serif;
}

/* Estilos de pagina inicial */
.contenido-inicial {
    .flex-container-centro {
        .texto {
            p {
                font-family: 'Corra-Montserra-Regular', sans-serif;
                text-align: justify;
            }
        }

    }

    .contenedor-icono-ods {
        margin-bottom: 20px;
        text-align: center;
    }

    .icono-ods {
        max-width: 150px;
        /* max-width: 100%; */
        height: auto;
        gap: 10px;
        cursor: pointer;

        &:hover {
            transform: scale(1.1);
            box-shadow: var(--boxShadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
    }
}

.banners-sitio {
    #customCarousel .carousel-item {
        background: none;
        height: auto;
    }

    #customCarousel .custom-carousel-img {
        border-radius: 15px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
        object-fit: cover;
        height: 300px;
    }

    #customCarousel .carousel-control-prev-icon,
    #customCarousel .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }

    @media (max-width: 768px) {
        #customCarousel .custom-carousel-img {
            height: 200px;
        }
    }

    @media (max-width: 576px) {
        #customCarousel .custom-carousel-img {
            height: 150px;
        }
    }
}

.noticias {
    .news-card {
        background-color: #f9f9f9;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card-image-container {
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        transform: scale(1.1);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .card-image-container img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    }

    .card-image-wrapper {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .card-image-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        transform: scale(1.1);
        z-index: 1;
    }

    .card-image-foreground {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    }

    .card-content {
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .card-date {
        font-size: 0.8em;
        color: #666;
        margin-bottom: 8px;
        display: block;
    }

    .card-title {
        font-size: 1.1em;
        font-weight: bold;
        margin: 0 0 10px 0;
    }

    .card-title a {
        text-decoration: none;
        color: #333;
        transition: color 0.2s ease;
        font-family: 'Gilroy-Bold', sans-serif;
    }

    .card-title a:hover {
        color: var(--color6);
    }

    .card-excerpt {
        font-size: 0.9em;
        color: #555;
        line-height: 1.5;
        flex-grow: 1;
        text-align: justify;
        font-family: 'Corra-Montserra-Regular', sans-serif;
    }
}

/* Acabab estilos de la pagina inicial */
/* Inician estilos de sitios de interes */
.sitios-interes-section {
    .subtitulo_sitios {
        font-family: 'Gilroy-Black', sans-serif;
        color: var(--color1);
        font-size: 2vw;
    }

    .logo-img {
        max-width: 200px;
        max-height: auto;
        margin: 0.5rem;
        border: 2px solid var(--_a_titles);
        border-radius: 10px;
        background-color: #FFF;
        padding: 10px;
        /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    }

    .owl-prev,
    .owl-next {
        background-color: var(--_a_titles) !important;
        border-radius: 50%;
        padding: 10px !important;
    }

    .owl-prev i,
    .owl-next i {
        color: #FFF !important;
    }

    .owl-carousel .owl-item {
        display: flex;
        justify-content: center;
        align-items: center;
    }

}

/* Terminan estilos de carrusel del sitios */
/* Inician estilos de Institucionzalizacion */
.contenedor-imagen-institucionalizacion {
    background-image: url('../img/sitio/t_institucionalizacion.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

.contenedor-imagen-institucionalizacion h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.institucionalizacion {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos de Footer */

footer {
    .container-fluid {
        .row {
            .col-lg-3 {
                .navbar-brand {
                    h2 {
                        color: var(--color4);
                    }
                }
            }
        }
    }
}

.footer-1 a {
    text-decoration: none !important;
}

.footer-1 a:hover {
    text-decoration: underline !important;
}

.btn-outline-primary {
    color: var(--mainColor) !important;
    border-color: var(--mainColor) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--mainColor) !important;
}

.footer-2 a {
    color: var(--colorBlanco);
    text-decoration: none;
}

.footer-2 a:hover {
    color: var(--colorBlanco);
    text-decoration: underline;
}

/* Estilos de Seguimiento a Indicadores inician */
.contenedor-imagen-seguimiento {
    background-image: url('../img/sitio/seguimiento-indicadores.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

.contenedor-imagen-seguimiento h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.seguimiento-indicadores {
    .texto {

        p,
        li {
            font-family: 'Corra-Montserra-Regular', sans-serif;
            text-align: justify;
        }
    }
}

.indicadores {
    .ods-indicadores {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 5px;
        margin-bottom: 7px;
        margin-top: 7px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        background-color: #fff;
    }

    .ods-indicadores:nth-child(1) {
        background-color: var(--colorOds1);
    }

    .ods-indicadores:nth-child(2) {
        background-color: var(--colorOds2);
    }

    .ods-indicadores:nth-child(3) {
        background-color: var(--colorOds3);
    }

    .ods-indicadores:nth-child(4) {
        background-color: var(--colorOds4);
    }

    .ods-indicadores:nth-child(5) {
        background-color: var(--colorOds5);
    }

    .ods-indicadores:nth-child(6) {
        background-color: var(--colorOds6);
    }

    .ods-indicadores:nth-child(7) {
        background-color: var(--colorOds7);
    }

    .ods-indicadores:nth-child(8) {
        background-color: var(--colorOds8);
    }

    .ods-indicadores:nth-child(9) {
        background-color: var(--colorOds9);
    }

    .ods-indicadores:nth-child(10) {
        background-color: var(--colorOds10);
    }

    .ods-indicadores:nth-child(11) {
        background-color: var(--colorOds11);
    }

    .ods-indicadores:nth-child(12) {
        background-color: var(--colorOds12);
    }

    .ods-indicadores:nth-child(13) {
        background-color: var(--colorOds13);
    }

    .ods-indicadores:nth-child(14) {
        background-color: var(--colorOds15);
    }

    .ods-indicadores:nth-child(15) {
        background-color: var(--colorOds16);
    }

    .ods-indicadores:nth-child(16) {
        background-color: var(--colorOds17);
    }

    .ods-indicadores:nth-child(17) {
        background-color: var(--colorOds17);
    }

    .ods-indicadores img {
        height: auto;
        width: 100%;
        max-width: 200px;
        transition: transform 0.5s;
    }

    .ods-indicadores:hover {
        transform: scale(1.20);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .ods-indicadores img:hover {
        transform: scale(1.2);
    }

    .title-indicador {
        font-size: 1.5em;
        font-weight: bold;
        color: #333;
        background-color: #f8f9fa;
        padding: 10px 15px;
        border-radius: 10px;
        border-bottom: 3px solid #007bff;
        margin-bottom: 20px;
        text-align: center;
    }

    .indicador-fondo {
        position: relative;

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 20px;
            color: white;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        &:hover .overlay {
            opacity: 1;
        }

        img {
            width: 100%;
            height: auto;
            display: block;
        }
    }

    /*
================================================================
ESTILOS COMPLETOS PARA LA SECCIÓN DE DETALLE DE ODS
================================================================
*/

    /* --- Contenedor Principal y Botón de Cierre --- */
    .ventana-seguimiento {
        position: relative;
        padding: 2rem 1rem;
        background-color: #f8f9fa;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 2rem;
        /* Espacio opcional superior */
    }

    .btn-close-ods {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.2s;
    }

    .btn-close-ods:hover {
        background-color: #c0392b;
    }

    /* --- 1. Header del ODS --- */
    .ventana-seguimiento .ods-header {
        display: grid;
        grid-template-columns: 1fr;
        /* Móvil: una columna */
        gap: 1rem;
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 2rem;
    }

    .ventana-seguimiento .ods-header__image {
        background-color: var(--ods-color, #eee);
        /* Usa el color del ODS */
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ventana-seguimiento .ods-header__image img {
        max-width: 120px;
        height: auto;
    }

    .ventana-seguimiento .ods-header__objective {
        padding: 1.5rem;
        font-size: 1.1rem;
        color: #333;
        line-height: 1.5;
        display: flex;
        align-items: center;
    }

    /* --- 2. Grid de Información (Coordinadores) --- */
    .ventana-seguimiento .info-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Por defecto 1 columna, se ajustará en desktop */
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .ventana-seguimiento .info-card {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .ventana-seguimiento .info-card__title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 1rem;
        color: #333;
    }

    .ventana-seguimiento .logos-coordinadores {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .ventana-seguimiento .logo-coordinador {
        max-height: 50px;
        width: auto;
        object-fit: contain;
    }

    /* --- 3. Acordeón de Indicadores --- */
    .ventana-seguimiento .indicadores-container {
        margin-top: 2rem;
    }

    .ventana-seguimiento .indicadores-title {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: #444;
    }

    .ventana-seguimiento .accordion-item {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .ventana-seguimiento .accordion-item:first-of-type,
    .ventana-seguimiento .accordion-item:last-of-type {
        border-radius: 8px;
    }

    .ventana-seguimiento .accordion-button {
        background-color: var(--ods-color, #555) !important;
        color: white !important;
        font-weight: 600;
        font-size: 1rem;
    }

    .ventana-seguimiento .accordion-button:not(.collapsed) {
        box-shadow: none;
    }

    .ventana-seguimiento .accordion-button.collapsed {
        background-color: #f1f1f1 !important;
        color: #333 !important;
    }

    .ventana-seguimiento .accordion-button::after {
        filter: brightness(0) invert(1);
    }

    .ventana-seguimiento .accordion-button.collapsed::after {
        filter: none;
    }

    .ventana-seguimiento .accordion-body {
        padding: 1.5rem;
        background-color: #fff;
    }

    /* --- Ficha Técnica dentro del Acordeón --- */
    .ventana-seguimiento .ficha-tecnica {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .ventana-seguimiento .data-point {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: #fafafa;
        border-left: 4px solid var(--bs-gray-300);
    }

    .ventana-seguimiento .data-point__label {
        font-weight: 600;
        color: #555;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ventana-seguimiento .data-point__label i {
        color: #888;
        width: 20px;
        /* Alineación de iconos */
        text-align: center;
    }

    .ventana-seguimiento .data-point__value {
        color: #333;
        padding-left: 28px;
        /* Alineación con el texto del label */
    }

    .ventana-seguimiento .data-point__value a {
        color: var(--bs-primary, #0d6efd);
        text-decoration: none;
        font-weight: 500;
    }

    .ventana-seguimiento .data-point__value a:hover {
        text-decoration: underline;
    }

    /* --- Estilos para las etiquetas de 'Ubicado en' (ÚLTIMA MODIFICACIÓN) --- */
    .ventana-seguimiento .documentos-icons {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .ventana-seguimiento .documento-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background-color: #e9ecef;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        text-decoration: none;
        color: #343a40;
        font-weight: 500;
        font-size: 0.85rem;
        transition: all 0.2s ease-in-out;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .ventana-seguimiento .documento-tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        color: #000;
    }

    .ventana-seguimiento .documento-tag i {
        font-size: 1rem;
    }


    /* --- Tabla de Datos Históricos --- */
    .ventana-seguimiento .historical-data {
        margin-top: 1rem;
    }

    .ventana-seguimiento .historical-data h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ventana-seguimiento .historical-data table {
        width: 100%;
        border-collapse: collapse;
        text-align: center;
    }

    .ventana-seguimiento .historical-data th,
    .ventana-seguimiento .historical-data td {
        padding: 0.75rem;
        border: 1px solid #ddd;
    }

    .ventana-seguimiento .historical-data th {
        background-color: #f2f2f2;
        font-weight: 600;
    }

    /* --- Última Actualización --- */
    .ventana-seguimiento .last-update {
        text-align: center;
        margin-top: 2rem;
        font-size: 0.85rem;
        color: #6c757d;
    }

    /*
================================================================
MEDIA QUERIES PARA RESPONSIVIDAD
================================================================
*/
    @media (min-width: 768px) {
        .ventana-seguimiento .ods-header {
            grid-template-columns: 180px 1fr;
            /* Escritorio: dos columnas */
        }

        /* Aunque solo quede una tarjeta, la regla se puede quedar por si se añade otra */
        .ventana-seguimiento .info-grid {
            grid-template-columns: 1fr;
        }

        .ventana-seguimiento .ficha-tecnica {
            grid-template-columns: 1fr 1fr;
            /* Dos columnas para la ficha */
        }
    }
}

/* Inician estilos de Materiales y Plataformas */
.contenedor-imagen-materiales {
    background-image: url('../img/sitio/materials-y-plataformas.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

.contenedor-imagen-materiales h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.materiales-consulta {
    .texto {
        margin: 4rem 1rem;

        p {
            text-align: justify;
            font-family: 'Corra-Montserra-Regular', sans-serif;
        }
    }
}

/* Estilos de materiales de consulta */
.custom-card {
    margin-top: 25px;
    padding-top: 25px;
    transition: all 0.3s ease-in-out;
}

.custom-card img {
    max-width: 80%;
    height: auto;
    box-shadow: 0px 0px 5px #CCC;
}

.download-icon {
    vertical-align: bottom;
}

.custom-container {
    max-width: 1366px;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 10px;
}

.a-sin-decoracion {
    text-decoration: none !important;
}

.titulo-material {
    font-family: 'Gilroy-Black', sans-serif;
    color: var(--color1);
}

.short-description {
    font-family: 'Corra-Montserra-Regular', sans-serif;
}

.read-more {
    text-decoration: none;
    color: var(--color4);

    &:hover {
        color: var(--color6);
    }
}

/* Inician estilos de noticias */
.contenedor-imagen-noticias {
    background-image: url('../img/sitio/eventos-y-noticias.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

.contenedor-imagen-noticias h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.inicio-eventos {
    .calendar-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    /* --- Contenedor Principal del Calendario --- */
    .calendar-container {
        width: 100%;
        max-width: 1200px;
        margin: 2rem auto;
        font-family: sans-serif;
        background: #fff;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Flechas de navegación */
    .calendar-nav-arrow {
        color: #333;
        background-color: var(--color4);
        text-decoration: none;
        font-size: 2rem;
        transition: all 0.2s ease;
        padding: 1rem;
        border-radius: 50%;
    }

    .calendar-nav-arrow:hover {
        background-color: #f0f0f0;
        transform: scale(1.1);
    }

    /* Lógica de visibilidad */
    .desktop-arrow {
        display: none;
        /* Ocultas por defecto (móvil) */
    }

    .mobile-arrow {
        display: block;
        /* Visibles por defecto (móvil) */
    }

    /* Media Query para pantallas anchas */
    @media (min-width: 1024px) {
        .calendar-header {
            justify-content: center !important;
        }

        .desktop-arrow {
            display: block;
            /* Muestra las flechas de escritorio */
        }

        .mobile-arrow {
            display: none;
            /* Oculta las flechas de móvil */
        }
    }

    /* --- Navegación (Mes Anterior/Siguiente) --- */
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .current-month {
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--color1);
        font-family: 'Gilroy-Black', sans-serif;
        text-align: center;
    }

    .nav-arrow {
        font-size: 2rem;
        text-decoration: none;
        color: #555;
        padding: 0 1rem;
        border-radius: 5px;
        transition: background-color 0.2s;
    }

    .nav-arrow:hover {
        background-color: #f0f0f0;
    }

    /* --- La Cuadrícula del Calendario (¡LA CLAVE!) --- */
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
    }

    /* --- Estilo de los encabezados (Lun, Mar...) --- */
    .weekday-header {
        font-weight: 600;
        text-align: center;
        padding-bottom: 0.5rem;
        color: #666;
        font-size: 1.1rem;
        font-family: 'Gilroy-Black', sans-serif;
    }

    /* --- Estilo de cada celda de día --- */
    .day-cell {
        border: 1px solid #e0e0e0;
        min-height: 120px;
        padding: 0.5rem;
        position: relative;
        transition: all 0.2s ease-in-out;
    }

    .day-cell.empty {
        background-color: #f9f9f9;
    }

    .day-cell:not(.empty):hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    /* --- Número del día en la esquina --- */
    .day-number {
        font-size: 0.9em;
        font-weight: 600;
        color: #333;
    }

    /* --- Estilo para días que SÍ tienen evento --- */
    .day-cell.has-event {
        background-color: #e8f4f8;
        border-color: #a2c4d2;
    }

    /* --- Marcador del evento dentro de la celda --- */
    .event-marker {
        background-color: var(--color6);
        color: white;
        padding: 0.4rem;
        border-radius: 4px;
        font-size: 0.8em;
        margin-top: 0.5rem;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        overflow: hidden;
    }

    .event-marker-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .event-marker-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1;
        font-family: 'Corra-Montserra-Regular', sans-serif;
    }
}

.contenedor-imagen-noticia {
    /* background-image: url('../img/sitio/t_institucionalizacion.png');
    background-size: cover;
    background-position: center center; */
    background-color: var(--color6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    position: relative;
}

.contenedor-imagen-noticia h2 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    /* text-shadow: 2px 2px rgba(0, 0, 0, 1); */
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 1;
}

.detalle-noticia {

    /* --- Estilos para la Página de Artículo de Noticia --- */
    .news-article-page {
        background-color: #f9f9f9;
        padding-top: 2rem;
    }

    /* --- Layout Principal (Contenido + Sidebar) --- */
    .article-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* --- Columna Principal del Artículo --- */
    .article-main {
        background: #fff;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .article-header .article-title {
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 1rem 0;
        color: var(--color1);
        font-family: 'Gilroy-Bold', sans-serif
    }

    .article-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
        color: #666;
    }

    .article-share {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .article-share a {
        color: #666;
        transition: color 0.2s;
    }

    .article-share a:hover {
        color: var(--bs-primary, #0d6efd);
    }

    /* --- Imagen Principal --- */
    .article-featured-image {
        margin: 0 0 2rem 0;
        text-align: center;
        /* Centra la imagen si es más pequeña */
    }

    .article-featured-image img {
        max-width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
        /* Mantenemos tu requerimiento */
        border-radius: 8px;
    }

    .article-content {
        line-height: 1.7;
        font-size: 1rem;
        color: #333;
        font-family: 'Corra-Montserra-Regular', sans-serif;
    }

    .article-content h2,
    .article-content h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .article-content p {
        margin-bottom: 1rem;
    }

    /* --- Galería de Imágenes --- */
    .article-gallery {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
    }

    .gallery-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .gallery-grid img {
        width: 100%;
        height: 120px;
        object-fit: contain;
        border-radius: 8px;
        transition: transform 0.2s, box-shadow 0.2s;
        background-color: #f0f2f5;
    }

    .gallery-grid img:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* --- Sidebar de Noticias Recientes --- */
    .article-sidebar .widget-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .recent-news-list .news-card {
        margin-bottom: 1.5rem;
        /* Espacio entre las tarjetas de noticias */
    }

    /* --- Media Query para Escritorio --- */
    @media (min-width: 992px) {
        .article-layout {
            /* 2.5 partes para el artículo, 1 parte para el sidebar */
            grid-template-columns: 2.5fr 1fr;
        }
    }

    .news-card {
        background-color: #f9f9f9;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card-image-container {
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        transform: scale(1.1);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .card-image-container img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    }

    .card-image-wrapper {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .card-image-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        transform: scale(1.1);
        z-index: 1;
    }

    .card-image-foreground {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    }

    .card-content {
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .card-date {
        font-size: 0.8em;
        color: #666;
        margin-bottom: 8px;
        display: block;
    }

    .card-title {
        font-size: 1.1em;
        font-weight: bold;
        margin: 0 0 10px 0;
    }

    .card-title a {
        text-decoration: none;
        color: #333;
        transition: color 0.2s ease;
        font-family: 'Gilroy-Bold', sans-serif;
    }

    .card-title a:hover {
        color: var(--color6);
    }

    .card-excerpt {
        font-size: 0.9em;
        color: #555;
        line-height: 1.5;
        flex-grow: 1;
        text-align: justify;
        font-family: 'Corra-Montserra-Regular', sans-serif;
    }
}

/* Inician estilos de Convocatorias y Sociedades */
.contenedor-imagen-convocatorias {
    background-image: url('../img/sitio/convocatorias.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

.contenedor-imagen-convocatorias h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--arena);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.convocatorias {
    .texto {
        font-family: 'Corra-Montserra-Regular', sans-serif;
        text-align: justify;
    }

    /* --- Contenedor General del Carrusel de Convocatorias --- */
    .convocatorias-wrapper {
        max-width: 900px;
        margin: auto;
    }

    /* --- Estilos para el Carrusel Principal (Imagen Grande) --- */
    #main-carousel .splide__slide {
        /* Tamaño fijo y predeterminado */
        height: 450px;
        background-color: #f5f5f5;
        /* Fondo por si la imagen no ocupa todo */
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #main-carousel .splide__slide img {
        /* La imagen se contiene dentro, sin deformarse */
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* --- Estilos para el Carrusel de Miniaturas --- */
    #thumbnail-carousel {
        margin-top: 15px;
    }

    #thumbnail-carousel .splide__slide {
        opacity: 0.5;
        /* Las miniaturas no seleccionadas están semi-transparentes */
        cursor: pointer;
        border: 3px solid transparent;
        border-radius: 6px;
        transition: opacity 0.2s, border-color 0.2s;
        height: 80px;
        /* Altura de las miniaturas */
    }

    #thumbnail-carousel .splide__slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Aquí usamos 'cover' para que la miniatura siempre rellene su espacio */
    }

    /* Estilo para la miniatura activa */
    #thumbnail-carousel .splide__slide.is-active {
        opacity: 1;
        border-color: var(--bs-primary, #0d6efd);
        /* Un borde de color para la seleccionada */
    }

    #thumbnail-carousel .splide__slide:hover {
        opacity: 0.9;
    }

    /* Ocultar las flechas del carrusel de miniaturas */
    #thumbnail-carousel .splide__arrows {
        display: none;
    }

    .carousel-caption-container {
        padding: 1rem 0.5rem;
        text-align: center;
    }

    .caption-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color1);
        margin: 0;
        line-height: 1.4;
        font-family: 'Gilroy-Bold', sans-serif;
    }
}

.casos-exito {
    #carruselCasosExito {
        max-height: 100%;

        .carousel-inner {
            .carousel-item {
                padding: 10px 10px;
                height: auto;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                background-color: #fff;
                border: 1px solid #ddd;
                border-radius: 20px;
            }
        }

    }
}

.sociedades-civiles {
    .page-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        /* Para que se vea bien en móvil */
        gap: 1rem;
    }

    .page-controls .titulo-tematica {
        margin: 0;
        /* Quitamos el margen por defecto del h4 */
    }

    .search-form {
        position: relative;
    }

    .search-input {
        border: 2px solid #e0e0e0;
        border-radius: 20px;
        padding: 8px 15px 8px 40px;
        /* Espacio a la izquierda para el icono */
        width: 250px;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--color6, #246257);
        /* Usando tus colores */
        box-shadow: 0 0 0 3px rgba(36, 98, 87, 0.2);
    }

    .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
    }

    .texto {
        font-family: 'Corra-Montserra-Regular', sans-serif;
        text-align: justify;
    }

    /* Estilos de Convocatorias y Sociedades Civiles */
    .ods-sociedades {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        margin-bottom: 7px;
        margin-top: 7px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        background-color: #fff;

        img {
            height: auto;
            width: 100%;
            max-width: 200px;
            transition: transform 0.5s;
        }

        img:hover {
            transform: scale(1.2);
        }
    }

    .ods-sociedades:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    #container-results {
        scroll-margin-top: 2rem;
    }

    #container-results-sociedades .sociedad-civil {
        width: 100%;
        height: 100%;
        cursor: pointer;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        background-color: #fff;
        border: 1px solid #ddd;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #container-results-sociedades .sociedad-civil:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    #container-results-sociedades .card-img-top {
        width: 100%;
        height: 200px;
        object-fit: contain;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #container-results-sociedades .card-body {
        padding: 20px;
        text-align: center;
    }

    #container-results-sociedades .card-title {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 0;
    }

    #container-results-sociedades .card-body::after {
        content: '';
        display: block;
        width: 50px;
        height: 4px;
        background-color: var(--color6);
        margin: 10px auto;
    }

    .ods-info {
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
}

/* EStilos de contacto inicia */
.contenedor-imagen-contacto {
    background-image: url('../img/sitio/t_contacto.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    position: relative;
}

/* Estilos para el texto que creará el efecto */
.contenedor-imagen-contacto h1 {
    background-size: cover;
    background-position: center center;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--colorBlanco);
    font-family: 'Gilroy-Black', sans-serif;
    font-weight: 900;
    text-shadow: 2px 2px rgba(0, 0, 0, 1);
    line-height: 1.2;
    font-size: clamp(2rem, 7vw, 6rem);
    /* text-transform: uppercase; */
    text-align: center;
    opacity: 0.9;
}

.aviso-privacidad {
    .aviso-priv {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--color6);
        height: 100px;
        margin-bottom: 1vh;
        margin-left: 0;
        margin-right: 0;

        h4 {
            cursor: pointer;
            font-weight: 400;
            font-size: 3vh;
            font-family: 'Gilroy-Bold', sans-serif;
            color: var(--colorBlanco);
        }
    }
}

/* Estilos de Asociación civil detalle */
.hero-sociedad {
    background-color: var(--color6);
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;

    .titulo-tematica {
        display: flex;
        justify-content: left;
        align-items: center;
        font-family: 'Gilroy-Black', sans-serif;
        font-size: 3.9vh;
        color: var(--colorBlanco);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .breadcrumb-container-sociedad {
        display: flex;
        justify-content: start;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Estilos de la pagina individual de cada sociedad civil */
    .breadcrumb-sociedad {
        background-color: transparent;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .breadcrumb-item-sociedad+.breadcrumb-item-sociedad::before {
        content: ">";
        padding: 0 5px;
        color: var(--color4);
    }

    .breadcrumb-item-sociedad a {
        text-decoration: none;
        color: var(--colorBlanco);
    }

    .breadcrumb-item-sociedad a:hover {
        text-decoration: underline;
    }

    .breadcrumb-item-sociedad.active {
        color: var(--colorBlanco);
    }
}

.detalle-sociedad {
    .profile-tabs {
        border-bottom: 2px solid var(--border-color);
        display: flex;
        justify-content: center;
    }

    .profile-tabs .nav-item {
        margin-bottom: -2px;
    }

    .profile-tabs .nav-link {
        border: none;
        border-bottom: 4px solid transparent;
        font-weight: 600;
        color: #6c757d;
        padding: 0.8rem 1.2rem;
        transition: all 0.2s ease-in-out;
    }

    .profile-tabs .nav-link:hover {
        color: var(--color5);
        border-bottom-color: var(--color7);
    }

    .profile-tabs .nav-link.active {
        color: var(--color6);
        background-color: transparent;
        border-bottom-color: var(--color6);
    }

    /* --- Estilos del Contenido de las Pestañas --- */
    .profile-tab-content {
        margin-top: -1px;
    }

    .tab-pane {
        background-color: #fff;
        padding: 2.5rem;
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 8px 8px;
    }

    .pane-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--color1);
        margin-top: 0;
        margin-bottom: 1.5rem;
        font-family: 'Gilroy-SemiBold', sans-serif;
    }

    /* --- Estilos para el contenido dentro de las pestañas --- */
    .mission-vision-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;

        .mission-vision-item {
            text-align: center;
        }
    }

    @media (min-width: 768px) {
        .mission-vision-grid {
            grid-template-columns: 1fr 1fr;
            align-items: center;
            justify-items: center;
        }
    }

    .mv-icon {
        max-height: 60px;
        margin-bottom: 1rem;
    }

    .ods-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    }

    .ods-grid img {
        width: 100%;
    }

    .contact-pane-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 768px) {
        .contact-pane-grid {
            grid-template-columns: 1fr;
        }
    }

    .logo-container {
        text-align: center;
        margin-bottom: 1rem;
    }

    .logo-container img {
        max-width: 150px;
    }

    .socials-container {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        font-size: 1.5rem;
    }

    .socials-container a {
        color: #adb5bd;
    }

    .socials-container a:hover {
        color: var(--color6);
    }

    .contact-list {
        /* Hereda de la propuesta anterior, no necesita cambios */
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .contact-list li {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .contact-list li i {
        color: var(--color6);
        margin-top: 0.2rem;
    }

    .contact-list a {
        color: #212529;
        text-decoration: none;
    }

    .contact-list a:hover {
        text-decoration: underline;
    }

    .ods-info {
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .descripcion-sociedad {
        background-color: gray;
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .logo-ficha-sociedad {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .logo-ficha-sociedad img {
        border-radius: 50%;
        padding: 5px;
        width: 300px;
        height: 300px;
        object-fit: contain;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .redes-ficha-sociedad {
        margin-top: 50px;
        margin-bottom: 50PX;
    }

    .redes-ficha-sociedad .titulo-seccion-ficha-sociedad {
        background-color: #b8ccf6;
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        color: black;
    }

    .redes-ficha-sociedad .red-ficha-sociedad {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .redes-ficha-sociedad .red-ficha-sociedad a {
        display: inline-block;
        text-align: center;
        width: 50px;
        text-decoration: none;
        color: #fff;
        padding: 15px;
        border-radius: 50%;
        transition: background-color 0.3s;
    }

    .redes-ficha-sociedad .red-ficha-sociedad a.twitter {
        background-color: #000000;
    }

    .redes-ficha-sociedad .red-ficha-sociedad a.facebook {
        background-color: #3b5998;
    }

    .redes-ficha-sociedad .red-ficha-sociedad a.instagram {
        background-color: #e4405f;
    }

    .redes-ficha-sociedad .red-ficha-sociedad a:hover {
        opacity: 0.8;
        transform: scale(1.05);
        transition: transform 0.3s;
    }

    .contacto-ficha-sociedad {
        margin-bottom: 50px;
    }

    .contacto-ficha-sociedad .titulo-seccion-ficha-sociedad {
        margin-top: 10px;
        background-color: #b8ccf6;
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        color: black;
    }

    .contacto-ficha-sociedad .medios-contacto-ficha-sociedad {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contacto-ficha-sociedad .medios-contacto-ficha-sociedad p {
        text-align: center;
        margin-left: 1rem;
    }

    .nombre-ficha-sociedad {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 300px;
    }

    .nombre-ficha-sociedad h2 {
        text-align: justify;
        font-size: 3vw;
        color: #3c3c3b;
    }

    .nombre-ficha-sociedad::after {
        content: '';
        display: block;
        width: 50px;
        height: 4px;
        background-color: #630a31;
        margin: 10px auto;
    }

    .info-ficha-sociedad {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .info-ficha-sociedad .titulo-seccion-info-ficha-sociedad {
        margin-left: 20px;
        text-transform: uppercase;
        text-align: start;
        font-family: 'Gilroy-Bold', sans-serif;
        color: var(--color5);
        font-weight: 800;
        font-size: 1.1vw;
    }

    @media (max-width: 990px) {
        .info-ficha-sociedad .titulo-seccion-info-ficha-sociedad {
            font-size: 1rem;
        }
    }

    .info-ficha-sociedad .descripcion-ficha-sociedad {
        padding: 20px;
        border-radius: 20px;
    }

    .info-ficha-sociedad .descripcion-ficha-sociedad p {
        color: #3c3c3b
    }

    .linea-punteada {
        width: 100%;
        border-top: 2px dashed #887f64;
        margin: 20px 0;
    }

    .contenedor-icono-ods {
        margin-bottom: 20px;
        text-align: center;
    }

    .icono-ods {
        width: 100%;
        height: auto;
        gap: 10px;
    }

    .disclaimer-agenda {
        background-color: #f8f9fa;
        border: 1px solid #d6d8db;
        padding: 20px;
        border-radius: 5px;
        margin: 20px 0;
        color: #333;

        .disclaimer-title {
            color: #901941;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .disclaimer-text {
            text-align: justify;
            font-size: 1rem;
            line-height: 1.5;
        }
    }
}

/* Estilos de página 404 */

/* Estilos Página 404 */
.envoltura-404 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 500px) {
    .envoltura-404 {
        margin-top: 2rem;

        .texto-404 {
            margin-top: 0;
            margin-bottom: 1rem;
        }

        .error-404 {
            display: flex;
            flex-direction: column;

            .error {
                display: block;
                font-size: 3rem;
            }

            .number-404 {
                font-size: 5rem;
            }

            .number-0 {
                display: block;
                font-size: 5rem;
            }

            .illustration-404 {
                display: none;
            }
        }
    }
}

.error-404 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;

    .error {
        display: none;
    }
}

.number-404 {
    font-weight: 900;
    font-size: 15rem;
    line-height: 1;
}

.number-0 {
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    display: none;
}

.illustration-404 {
    position: relative;
    width: 12.2rem;
    margin: 0 2.1rem;
}

:where(.circle, .clip, .paper, .eyes, .eye, .cheeks, .mouth) {
    position: absolute;
}

.circle {
    bottom: 0;
    left: 0;
    width: 12.2rem;
    height: 11.4rem;
    border-radius: 50%;
    background-color: #293b49;
}

.clip {
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    width: 12.5rem;
    height: 13rem;
    border-radius: 0 0 50% 50%;
}

.paper {
    bottom: -0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 9.2rem;
    height: 12.4rem;
    border: 0.3rem solid #293b49;
    background-color: white;
    border-radius: 0.8rem;
}

.paper::before {
    content: "";
    position: absolute;
    top: -0.7rem;
    right: -0.7rem;
    width: 1.4rem;
    height: 1rem;
    background-color: white;
    border-bottom: 0.3rem solid #293b49;
    transform: rotate(45deg);
}

.face {
    position: relative;
    margin-top: 2.3rem;
}

.eyes {
    top: 0;
    left: 2.4rem;
    width: 4.6rem;
    height: 0.8rem;
}

.eye {
    bottom: 0;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: #293b49;
    animation-name: eye;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.eye__left {
    left: 0;
}

.eye__right {
    right: 0;
}

@keyframes eye {
    0% {
        height: 0.8rem;
    }

    50% {
        height: 0.8rem;
    }

    52% {
        height: 0.1rem;
    }

    54% {
        height: 0.8rem;
    }

    100% {
        height: 0.8rem;
    }
}

.cheeks {
    top: 1.6rem;
    width: 1rem;
    height: 0.2rem;
    border-radius: 50%;
    background-color: #fdabaf;
}

.cheeks__left {
    left: 1.4rem;
}

.cheeks__right {
    right: 1.4rem;
}

.mouth {
    top: 3.1rem;
    left: 50%;
    width: 1.6rem;
    height: 0.2rem;
    border-radius: 0.1rem;
    transform: translateX(-50%);
    background-color: #293b49;
}

.texto-404 {
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-weight: 400;
    color: #293b49;
}

/* Estilos extras de Institucionalizacion */
.seguimiento {
    .subtitulo-seccion {
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Gilroy-Black', sans-serif;
        font-size: 3.5vh;
        color: var(--color1);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .esquema-visual {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 900px;
        width: 100%;
        height: auto;
        margin-top: 2rem;
        padding: 10px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
}