/* 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;
    --fontFamlyText: "Corra-Montserra-Regular", 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;
    --brand-maroon: #691b31;
    --brand-light-gray: #f8f9fa;
    --brand-border-color: #dee2e6;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-border-radius: 0.75rem;
    --bs-primary: #246257;
    --bs-btn-bg: #246257;
    --bs-primary-rgb: 36, 98, 87;
    --bs-danger: #861e34;
    --bs-danger-rgb: 134, 30, 52;
    --mainColor: #246257;
    --font-size-4rem: clamp(2rem, 5vw, 4rem);
    /* Estilos para la navegación */
    --light-gray: #f4f4f4;
    --border-color: #eaeaea;
    --shadow-nav: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family: var(--fontFamily) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fontFamilyBold);
}

a {
    text-decoration: none;
    color: var(--color4);
}

a,
span,
p {
    font-family: var(--fontFamlyText);
}

/* Estilos del loader */

.loader-section {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: 9999;
    transition: all 1s 1s ease-out;
    opacity: 1;
}

.loaded {
    opacity: 0;
    z-index: -1;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--color5);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Final */

/* Estilo para la barra de navegación cuando es "sticky" */
.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Opcional: una pequeña animación */
    animation: slideDown 0.3s ease-out;
}

/* Animación para que aparezca suavemente */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Estilos de boton de volver a arriba */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;

    /* Oculto por defecto, con transición suave */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* Clase para mostrar el botón con animación */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilos del SVG */
.progress-ring-wrapper {
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.progress-ring__bg {
    stroke: #e6e6e6;
    stroke-width: 3;
    fill: transparent;
}

.progress-ring__circle {
    stroke: var(--color4);
    stroke-width: 3.5;
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s;
}

/* Estilos de la flecha */
.arrow-up {
    fill: none;
    stroke: var(--color7);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    #scrollTopBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   2. HEADER: NIVEL SUPERIOR (LOGOS)
   ========================================================================== */
.site-header {
    position: relative;
    background-color: var(--colorBlanco);
    z-index: 1000;
}

.header-logos-container {
    background-color: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-logos-container .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.logos-group.left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logos-group.left img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.logos-group.right {
    flex-shrink: 0;
}

.logos-group.right img {
    height: 70px;
    width: auto;
    display: block;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ==========================================================================
   3. NAVEGACIÓN PRINCIPAL (STICKY & DESKTOP)
   ========================================================================== */
.main-nav {
    background-color: var(--colorBlanco);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.main-nav.is-sticky {
    box-shadow: var(--shadow-nav);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;

    a {
        text-decoration: none;
        color: inherit;
    }
}

.mini-brand {
    display: none;
}

.nav-links {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;

}

.nav-links>li>a {
    display: block;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--color2);
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
    width: 70%;
}

/* ==========================================================================
   4. MENÚS DESPLEGABLES (DROPDOWNS) - DESKTOP
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown-content li {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    box-shadow: var(--shadow-dropdown);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 12px 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: block;
    color: var(--text-color);
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--color2);
}

.dropdown-content-nested {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: var(--shadow-dropdown);
    border-radius: 0 8px 8px 8px;
    padding: 10px 0;
    z-index: 101;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown-nested:hover .dropdown-content-nested {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.arrow-right {
    float: right;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}


/* ==========================================================================
   5. RESPONSIVE / MÓVIL (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {

    .header-logos-container {
        padding: 8px 0;
    }

    .logos-wrapper {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        width: calc(100% - 40px);
    }

    .logos-group.left img {
        height: 32px;
    }

    .logos-group.right img {
        height: 32px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 80px;
        display: block;
    }

    .main-nav.active {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        display: block;
        padding-bottom: 40px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links>li>a {
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.05rem;
    }

    .nav-links>li>a::after {
        content: none;
    }

    .dropdown-content,
    .dropdown-content-nested {
        display: none;
        position: static;
        float: none;
        box-shadow: none;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    /* En móvil táctil, el "hover" funciona al hacer tap */
    /* .dropdown:hover .dropdown-content,
        .dropdown-nested:hover .dropdown-content-nested {
            display: block;
        } */

    .dropdown-content a {
        padding-left: 40px;
        color: #555;
        font-weight: 500;
    }

    .dropdown-content-nested {
        background-color: #f0f0f0;
        border-top: 1px solid #ddd;
    }

    .dropdown-content-nested li a {
        padding-left: 60px;
        font-size: 0.9em;
    }

    .arrow-right {
        transform: rotate(90deg);
    }

    .dropdown:hover>.dropdown-content,
    .dropdown-nested:hover>.dropdown-content-nested {
        display: none !important;
    }

    .dropdown.active>.dropdown-content {
        display: block !important;
    }

    .dropdown-nested.active>.dropdown-content-nested {
        display: block !important;
    }
}

/* ==========================================================================
   6. MÓVIL PEQUEÑO (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {

    .logos-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .logos-group.left img {
        height: auto;
        max-height: 40px;
        max-width: 220px;
    }

    .logos-group.right {
        margin-left: 0;
    }
}

/* 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;
}

.evaluation-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.5s ease-in-out;

    h5 {
        color: var(--color8);
    }

    p {
        color: var(--color8);
    }
}

.emoji-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.emoji-wrapper {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.emoji-wrapper:hover {
    transform: scale(1.15);
}

.emoji {
    font-size: 3rem;
    filter: grayscale(50%);
    transition: filter 0.2s ease;
}

.emoji-wrapper:hover .emoji {
    filter: grayscale(0%);
}

.emoji-label {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 5px;
}

.evaluation-container.thank-you {
    background-color: #28a745;
    border-color: #218838;
}

.evaluation-container.thank-you p {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
}

/* Estilos de Activo en Filtro de Regionalizaciones */
/* Cuando el radio oculto está ':checked', su hermano (+) con la clase '.filtro-categoria-texto' cambia de estilo */
input[type="radio"].visually-hidden:checked+.filtro-categoria-texto {
    color: var(--bs-primary);
    /* Usa tu color principal (#246257) */
    font-weight: 600;
    /* Lo pone en negritas */
}

.filtro-titulo-activo {
    color: var(--bs-primary) !important;
    /* Usa tu color principal */
    font-weight: 700;
    /* Un poco más de énfasis */
}

.filtro-activo-chip {
    background-color: #e7f0ef;
    /* Un verde muy claro */
    color: #246257;
    border-radius: 15px;
    padding: 5px 10px;
    margin: 10px 0 5px 15px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0d9d8;
}

.btn-quitar-filtro {
    margin-left: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #246257;
    opacity: 0.6;
}

.btn-quitar-filtro:hover {
    opacity: 1;
}

/* Utilidades */

.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.barra {
    background-image: url('../img/fondos/fondo-mapas.jpg');
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.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;
}

/* Final utilidades */

/* Botones personalizados */
.btn-custom-primary {
    background-color: var(--color5);
    border-color: var(--color5);
    color: white;
}

.btn-custom-primary:hover {
    opacity: 0.9;
    color: white;
}

.btn-custom-secondary {
    color: var(--color5);
    border-color: var(--color5);
}

.btn-custom-secondary:hover {
    background-color: var(--color5);
    color: white;
}

.cursiva {
    font-family: italic;
}

/* Inicio */
/*
 * Sección Hero Principal
 * Combina el fondo, el título y el carrusel en una sola unidad visual.
 */
.hero-maps {
    position: relative;
    background-image: url('../img/fondos/9.webp');
    background-size: cover;
    background-position: center center;
    padding: 2rem 0 4rem 0;
    overflow: hidden;
}

/*
 * Overlay oscuro
 * Crea una capa semitransparente sobre la imagen de fondo
 * para mejorar la legibilidad del texto y el contraste.
 */
.hero-maps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/*
 * Contenedor del contenido
 * Asegura que el título y el carrusel se muestren por encima del overlay.
 */
.hero-maps .container-fluid {
    position: relative;
    z-index: 2;
}

/*
 * Estilos para el Título
 * Un diseño más moderno, limpio y legible.
 */
.hero-title {
    margin-bottom: 2.5rem;
}

.hero-title h1 {
    color: #FFFFFF;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Contenedor principal de Swiper */
.coverflow-carousel {
    width: 100%;
    /* Max-width para que no se extienda demasiado en pantallas muy grandes */
    max-width: 1200px;
    margin: 0 auto;
    /* Centra el carrusel */
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Estilos para cada slide */
.swiper-slide {
    background-position: center;
    background-size: cover;
    /* Ajusta estos valores */
    width: 280px;
    /* Reducimos el ancho de cada slide */
    height: 380px;
    /* Reducimos el alto de cada slide */

    /* Considera usar un max-width y max-height para controlar el tamaño */
    max-width: 90vw;
    /* Máximo 90% del viewport width */
    max-height: 70vh;
    /* Máximo 70% del viewport height */

    display: flex;
    justify-content: center;
    align-items: center;
    /* Efecto de reflejo para el coverflow */
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0006);
}

.swiper-slide a {
    display: block;
    /* Asegura que el enlace ocupe todo el slide */
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;

    /* CAMBIO CLAVE AQUÍ: Usamos 'contain' para que la imagen se ajuste sin recortarse */
    object-fit: contain;
    /* Si quieres que rellene el espacio y se recorte un poco, usa 'cover'.
       Pero 'contain' es mejor para mapas donde no quieres perder información. */

    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);

    /* Asegúrate de que las transiciones sean suaves si hay cambios de tamaño */
    transition: all 0.3s ease;
}

/* Cuando el slide está activo (el del centro), puedes hacerlo un poco más grande */
.swiper-slide-active {
    transform: scale(1.05);
    /* Ligeramente más grande */
    z-index: 10;
    /* Asegura que esté por encima */
}


/* Personalización de la paginación y navegación */
.swiper-pagination-bullet-active {
    background-color: #007aff !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007aff !important;
    --swiper-navigation-size: 30px;
    /* Ajusta el tamaño de las flechas */
}

/* Estilos de carrusel terminan */
/* Estilos de nueva regionalizacion inician */
.nueva-regionalizacion {
    .titulos-seccion {
        text-align: center;
        margin-bottom: 50px;

        /* MEJORA: Estilos aplicados directamente a las etiquetas semánticas */
        h2 {
            font-family: 'Gilroy-Black', sans-serif;
            font-size: clamp(2rem, 5vw, 4rem);
        }

        h3 {
            font-family: 'Gilroy-Bold', sans-serif;
            font-size: clamp(1.5rem, 4vw, 3rem);
            margin-top: -10px;
        }
    }

    .portals-layout {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .mapa-destacado {
        flex-basis: 60%;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .texto-lateral {
        flex: 1;

        p {
            text-align: justify;
            font-size: 1.1rem;
            line-height: 1.6;
        }
    }

    /* MEJORA: Clase única y reutilizable para todos los mapas */
    .mapa-con-estilo {
        /* width: 80%; */
        height: auto;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
    }

    /* MEJORA: Clase para centrar los botones */
    .accion-boton {
        text-align: center;
    }

    /* --- Adaptación para Móviles --- */
    @media (max-width: 992px) {
        .portals-layout {
            flex-direction: column;
        }

        .texto-lateral {
            margin-top: 30px;
        }
    }
}

/* Terminan estilos de nueva regionalización */
/* Estilos de Mapas */
.mapas {
    position: relative;
    padding: 5rem 0;

    &::before {
        content: '';
        /* Requerido para que el seudo-elemento se muestre */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/fondos/fondo-mapas.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        opacity: 0.5;
        /* Ajusta este valor entre 0.0 (transparente) y 1.0 (opaco) */
        z-index: -1;
    }

    .titulos-seccion {
        text-align: center;
        margin-bottom: 50px;

        /* MEJORA: Estilos aplicados directamente a las etiquetas semánticas */
        h2 {
            font-family: 'Gilroy-Black', sans-serif;
            font-size: var(--font-size-4rem);
        }

        h3 {
            font-family: 'Gilroy-Bold', sans-serif;
            font-size: 3rem;
            margin-top: -10px;
        }
    }

    .subtitulos-seccion {
        text-align: center;

        h3 {
            font-family: 'Gilroy-Regular', sans-serif;
            font-size: 2.5rem;
        }
    }

    .contenedor-botones {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 1rem 1rem;
    }

    .boton-garabato {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 200px;
        height: 180px;
        padding: 20px;
        text-decoration: none;
        color: var(--text-color);
        background-image: url('../img/inicio/rayon-1.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        transition: transform 0.2s ease-in-out;
    }

    /* Efecto al pasar el mouse */
    .boton-garabato:hover {
        /* box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3); */
        filter: drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.3));
    }

    .boton-garabato img {
        max-width: 100px;
        max-height: 100px;
        filter: brightness(0) invert(1);
    }

    .texto-boton {
        font-family: 'Gilroy-Regular', sans-serif;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        color: var(--colorBlanco);
        margin-right: 1rem;
    }

    /* --- Media Queries para Responsive --- */
    @media (max-width: 768px) {
        .contenedor-botones {
            flex-direction: column;
            gap: 1.5rem;
        }

        .boton-garabato {
            width: 180px;
            height: 160px;
        }

        .texto-boton {
            font-size: 1.3rem;
        }
    }

    /* --- 1. La Rejilla Responsive --- */
    .tematica-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 2rem;
        align-items: stretch;
    }

    /* --- 2. La Tarjeta/Botón Individual --- */
    .tema-card {
        position: relative;
        border-style: solid;
        border-image-source: url('../img/inicio/rayon-2.png');
        border-image-slice: 100 fill;
        border-image-repeat: stretch;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        min-height: 120px;
        height: 100%;
        text-decoration: none;
        transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    }


    /* --- 3. Efecto Hover --- */
    .tema-card:hover {
        transform: scale(1.05) rotate(1deg);
        filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.1));
    }

    /* --- 4. El Ícono y el Texto --- */
    .tema-card__icon {
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .tema-card__texto {
        font-family: 'Gilroy-Regular', sans-serif;
        color: #000;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }
}

/* Finaliza seccion de mapas */
/* Inicia sección de Otros */
.otros {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.otros .titulos-seccion {
    text-align: center;
    margin-bottom: 4rem;
}

.otros .titulos-seccion h2 {
    font-family: 'Gilroy-Black', sans-serif;
    font-size: var(--font-size-4rem);
    color: #333;
}

/* --- Estilos para la tarjeta de producto --- */
.otros .producto-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 450px;
    /* NUEVO: Limita el ancho máximo de la tarjeta */
}

.otros .producto-card:hover {
    transform: translateY(-10px);
}

.otros .producto-card__imagen {
    margin-bottom: 1.5rem;
    /* --- LA MAGIA ESTÁ AQUÍ --- */
    height: 350px;
    /* 1. Damos una altura fija al contenedor */
    display: flex;
    /* 2. Usamos flexbox para centrar la imagen adentro */
    align-items: center;
    justify-content: center;
}

.otros .producto-card__imagen img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.otros .producto-card__titulo {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* --- Ajustes para móviles --- */
@media (max-width: 767px) {
    .otros .col-md-6:first-child {
        margin-bottom: 4rem;
        /* Espacio entre los elementos cuando se apilan */
    }

    .otros .titulos-seccion h2 {
        font-size: 2rem;
    }
}

/* Terminan estilos de otros */
/* Estilos de Mapas inician */
.mapas-inicial {
    .titulo-seccion {
        h1 {
            text-align: center;
            font-family: 'Gilroy-Bold', sans-serif;
            font-size: var(--font-size-4rem);
            margin-bottom: 20px;

            i {
                margin-right: 1rem;
            }
        }
    }
}

.contenido {
    .barra {
        background-image: url('../img/fondos/fondo-mapas.jpg');
        background-color: #f8f9fa;
        padding: 1rem 0;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .btn-filtro {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        font-family: 'Gilroy-Bold', sans-serif;
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        color: #444;

        @media (max-width: 768px) {
            border: 2px solid var(--bs-btn-bg);
            border-radius: 10px;
            cursor: pointer;
            padding: 0.5rem 1rem;
        }

        i {
            margin-right: 0.5rem;
            font-size: 1.2rem;
        }

        &:hover {
            color: #000;
        }
    }

    /* --- Grupo de Búsqueda (Derecha) --- */
    .grupo-busqueda {
        display: flex;
        align-items: center;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
        /* Clave para que el border-radius afecte a los hijos */
    }

    .input-busqueda {
        border: none;
        background: transparent;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        width: 250px;

        &:focus {
            outline: none;
        }

        &::placeholder {
            color: #999;
        }
    }

    .btn-busqueda {
        border: none;
        background-color: #e0e0e0;
        padding: 0.5rem 1rem;
        cursor: pointer;
        color: #555;
        font-size: 1.1rem;
        transition: background-color 0.2s;

        &:hover {
            background-color: #d0d0d0;
        }
    }

    .catalogo-mapas {

        .catalogo-layout {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;

            @media (min-width: 992px) {
                flex-direction: row;
                align-items: flex-start;
            }

            .catalogo-filtros-container {
                @media (min-width: 992px) {
                    flex: 0 0 320px;
                }
            }


            .catalogo-filtros {
                background-color: #f8f9fa;
                border: 1px solid #e9ecef;
                border-radius: 8px;

                .grupo-filtro {
                    border-bottom: 1px solid #e9ecef;
                }

                .grupo-filtro:last-child {
                    border-bottom: none;
                }

                .grupo-filtro__titulo {
                    background-color: #e9ecef;
                    padding: 0.75rem 1rem;
                    margin: 0;
                    font-size: 1.1rem;
                    font-family: 'Gilroy-Bold', sans-serif;
                }

                .grupo-filtro__lista {
                    list-style: none;
                    padding: 1rem;
                    margin: 0;
                    display: flex;
                    flex-direction: column;
                    gap: 0.75rem;
                }

                .grupo-filtro__lista label {
                    display: flex;
                    align-items: center;
                    cursor: pointer;
                    font-size: 1rem;

                    input {
                        margin-right: 1rem;
                    }
                }
            }

            .catalogo-resultados {
                flex: 1;

                .resultados-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 1rem;
                    border-bottom: 2px solid #333;
                    padding-bottom: 1rem;

                    @media (max-width: 768px) {
                        flex-direction: column;
                    }

                    h1 {
                        margin: 0;
                        font-family: 'Gilroy-Black', sans-serif;
                        font-size: clamp(1.25rem, 3.5vw, 2.5rem);
                    }
                }

                .subtitulo-resultados {
                    font-size: 1.2rem;
                    font-weight: bold;
                    color: #666;
                    margin-bottom: 2rem;
                }

                .lista-mapas {
                    display: flex;
                    flex-direction: column;
                    gap: 2rem;

                    .mapa-card {
                        display: flex;
                        flex-direction: column;
                        gap: 1.5rem;
                        padding: 1.5rem;
                        border: 1px solid #e0e0e0;
                        border-radius: 8px;
                        background-color: #fff;
                        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
                        transition: box-shadow 0.3s ease;

                        @media (min-width: 768px) {
                            flex-direction: row;
                        }
                    }

                    .mapa-card:hover {
                        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
                    }

                    .mapa-card__imagen {

                        width: 100%;
                        max-width: 250px;
                        margin: 0 auto;

                        @media (min-width: 768px) {
                            flex: 0 0 180px;
                            max-width: none;
                            margin: 0;
                        }
                    }

                    .mapa-card__imagen img {
                        width: 100%;
                        height: auto;
                        display: block;
                    }

                    .mapa-card__info {
                        flex: 1;
                    }

                    .mapa-card__titulo {
                        margin: 0 0 0.75rem 0;
                        font-family: 'Gilroy-Bold', sans-serif;
                        font-size: 1.4rem;
                        color: #222;
                    }

                    .mapa-card__meta {
                        margin: 0.25rem 0;
                        font-size: 0.9rem;
                        color: #555;
                        line-height: 1.5;
                    }

                    .mapa-card__acciones {
                        margin-top: 1rem;
                        display: flex;
                        gap: 1rem;
                    }

                    .mapa-card__acciones a {
                        color: #333;
                        font-size: 1.2rem;
                        text-decoration: none;
                    }
                }
            }
        }
    }

    .paginacion {
        @media (max-width: 768px) {
            flex-direction: column;
            margin-top: 1rem;
        }
    }

    .paginacion a,
    .paginacion span {
        margin-left: 0.5rem;
        text-decoration: none;
        color: #555;
        font-weight: bold;
    }

    .paginacion span {
        color: var(--colorBlanco);
        background-color: var(--color1);
    }
}

/* --- 5. Diseño Responsivo (Móviles) --- */
@media (max-width: 992px) {
    .catalogo-layout {
        flex-direction: column;
    }

    .catalogo-filtros {
        flex: 1;
        width: 100%;
        margin-bottom: 2rem;
    }

    .mapa-card {
        flex-direction: column;
    }

    .mapa-card__imagen {
        flex-basis: auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto 1rem auto;
    }
}

.filtro-desplegable .d-flex {
    width: 100%;
}

.btn-desplegar {
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    color: #333;
    font-weight: bold;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-desplegar[aria-expanded="true"] {
    transform: rotate(45deg);
    /* Gira el '+' para que parezca una 'x' */
    background: #d1d1d1;
}

.sub-lista-filtro {
    max-height: 300px;
    overflow-y: auto;
    border-left: 2px solid #e0e0e0;
    margin-top: 0.5rem;
}

.sub-lista-titulo {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.filtro-categoria-label {
    display: block;
    width: 100%;
    cursor: pointer;
}

.filtro-categoria-texto {
    transition: all 0.2s ease-in-out;
}

input[type="radio"].visually-hidden:checked+.filtro-categoria-texto {
    color: var(--bs-primary);
    font-weight: 600;
    transform: translateX(4px);
}

/* ============================================
   NUEVOS ESTILOS PARA FILTROS MEJORADOS
   ============================================ */

/* Mejoras generales para items de filtro */
.filtro-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.filtro-item:hover {
    background-color: rgba(36, 98, 87, 0.05);
    transform: translateX(2px);
}

.filtro-item input[type="radio"],
.filtro-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--bs-primary);
}

.filtro-item .filtro-text {
    flex: 1;
    color: #333;
}

.filtro-item input[type="radio"]:checked+.filtro-text,
.filtro-item input[type="checkbox"]:checked+.filtro-text {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Encabezados de filtros con iconos */
.grupo-filtro__titulo i {
    color: var(--bs-primary);
    font-size: 1rem;
}

/* Contenedor de filtro header (para Regional y Municipal) */
.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Chips de filtros activos - MEJORADO */
.filtro-activo-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1a4d44 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 6px rgba(36, 98, 87, 0.2);
}

.filtro-activo-chip i.bi-funnel-fill {
    font-size: 0.9rem;
}

.filtro-activo-chip span {
    flex: 1;
    font-weight: 500;
}

.btn-quitar-filtro {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.btn-quitar-filtro:hover {
    opacity: 1;
    transform: scale(1.15);
    color: #ffcccc;
}

/* Contenedor de regionalizaciones */
.regionalizacion-container {
    padding: 0.75rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.region-option-all {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Grupos de regionalización (Macro/Micro) */
.regionalizacion-grupo {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.regionalizacion-grupo:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary);
}

.regionalizacion-grupo.active {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 12px rgba(36, 98, 87, 0.15);
}

/* Header de regionalization - clickeable */
.regionalizacion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    user-select: none;
}

.regionalizacion-header:hover {
    background-color: #e9ecef;
}

.regionalizacion-grupo.active .regionalizacion-header {
    background: linear-gradient(135deg, rgba(36, 98, 87, 0.1) 0%, rgba(36, 98, 87, 0.05) 100%);
}

.regionalizacion-header i.bi-folder2,
.regionalizacion-header i.bi-folder2-open {
    font-size: 1.1rem;
    color: var(--bs-primary);
}

.regionalizacion-nombre {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.regionalizacion-grupo.active .regionalizacion-nombre {
    color: var(--bs-primary);
}

.region-count.badge {
    background-color: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.regionalizacion-grupo.active .region-count.badge {
    background-color: var(--bs-primary);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.regionalizacion-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
    color: var(--bs-primary);
}

/* Lista de regiones dentro de cada regionalización */
.regionalizacion-regiones {
    background-color: white;
}

.regiones-lista {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}

.regiones-lista li {
    margin-bottom: 0.25rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.region-item:hover {
    background-color: rgba(36, 98, 87, 0.05);
    border-color: rgba(36, 98, 87, 0.15);
}

.region-item.selected {
    background: linear-gradient(135deg, rgba(36, 98, 87, 0.08) 0%, rgba(36, 98, 87, 0.12) 100%);
    border-color: var(--bs-primary);
}

.region-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--bs-primary);
}

.region-text {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

.region-item.selected .region-text {
    color: var(--bs-primary);
    font-weight: 600;
}

.region-item i.bi-check-circle-fill {
    font-size: 1rem;
}

/* Búsqueda de municipios */
.municipios-search {
    padding: 0 0.5rem;
}

.municipios-search input.form-control {
    border-radius: 6px;
    border-color: #dee2e6;
    font-size: 0.9rem;
}

.municipios-search input.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(36, 98, 87, 0.15);
}

/* Tag badges */
.tag-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.filtro-item input[type="radio"]:checked~.filtro-text .tag-badge {
    background-color: var(--bs-primary);
    color: white;
}

/* Mejoras al botón desplegar */
.btn-desplegar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-desplegar i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

/* Animaciones suaves para collapses */
.collapse {
    transition: height 0.3s ease;
}

/* Scrollbar personalizado para listas largas */
.sub-lista-filtro::-webkit-scrollbar,
.municipios-lista::-webkit-scrollbar {
    width: 6px;
}

.sub-lista-filtro::-webkit-scrollbar-track,
.municipios-lista::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sub-lista-filtro::-webkit-scrollbar-thumb,
.municipios-lista::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.sub-lista-filtro::-webkit-scrollbar-thumb:hover,
.municipios-lista::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filtro-item {
        font-size: 0.9rem;
        padding: 0.5rem 0.4rem;
    }

    .regionalizacion-header {
        padding: 0.6rem 0.75rem;
    }

    .regionalizacion-nombre {
        font-size: 0.85rem;
    }

    .region-item {
        padding: 0.5rem 0.6rem;
    }
}


/* Estilos de ficha tecnica inician */
.mapa-inicial {
    background-image: url('../img/fondos/fondo-mapas.jpg');
    background-color: #f8f9fa;
    padding: 1rem 0;

    .titulo-seccion {
        h1 {
            text-align: center;
            font-family: 'Gilroy-Bold', sans-serif;
            font-size: var(--font-size-4rem);
            /* margin-bottom: 20px; */

            i {
                margin-right: 1rem;
            }
        }
    }
}

.mapa-detalle-wrapper {
    .detalle-mapa__header h1 {
        font-family: 'Gilroy-Black', sans-serif;
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        color: var(--brand-maroon);
    }

    .detalle-mapa__header .meta-info {
        font-size: 1rem;
        color: #555;
        margin-bottom: 1rem;
    }

    .detalle-mapa__header .meta-info b {
        color: #222;
    }

    .detalle-mapa__header .meta-info .separador {
        margin: 0 0.75rem;
        color: #ccc;
    }

    .detalle-mapa__header .btn-regresar {
        color: var(--bs-primary);
        text-decoration: none;
        font-weight: bold;
    }

    /* --- Barra de Acciones y Descarga --- */
    .acciones-descarga {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background-color: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 2rem;
        margin-top: 1rem;
    }

    .acciones-descarga .iconos-formato a {
        font-size: 1.5rem;
        color: #555;
        margin: 0 0.5rem;
    }

    /* --- Visor del Mapa --- */
    .mapa-visor {
        position: relative;
        background-color: #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        margin-bottom: 2rem;
    }

    .visor-contenido {
        width: 100%;
        height: 100%;
    }

    .visor-contenido img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* La imagen se ajusta sin deformarse */
        cursor: grab;
    }

    .visor-controles {
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: flex;
        gap: 8px;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 5px;
        border-radius: 5px;
    }

    .control-btn {
        border: 1px solid #ccc;
        background-color: #fff;
        width: 30px;
        height: 30px;
        font-weight: bold;
        cursor: pointer;
    }

    /* --- Ficha Técnica --- */
    .ficha-tecnica {
        margin-top: 2rem;
        border-top: 2px solid #e0e0e0;
        padding-top: 2rem;
    }

    .ficha-tecnica h2 {
        font-family: 'Gilroy-Bold', sans-serif;
        margin-bottom: 1.5rem;
    }

    .ficha-tecnica dt {
        font-weight: bold;
    }
}

.botones-compartir {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Espacio entre íconos */
}

.btn-share {
    /* Reseteamos estilos de botón y enlace */
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    display: inline-block;
    color: #333;
    font-size: 1.5rem;
    /* Tamaño del ícono */
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    position: relative;
    /* Necesario para el tooltip */
}

.btn-share:hover {
    transform: scale(1.2);
    /* Efecto de crecimiento */
    color: #000;
}

/* Colores específicos por red social (opcional) */
.btn-share.facebook:hover {
    color: #1877F2;
}

.btn-share.twitter:hover {
    color: #1DA1F2;
}

.btn-share.whatsapp:hover {
    color: #25D366;
}

/* Tooltip de "¡Copiado!" */
.btn-share[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    /* Arriba del ícono */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-share.copied[data-tooltip]::after {
    opacity: 1;
    /* Muestra el tooltip cuando se añade la clase .copied */
}


/* Estilos de Página 404 inician */

.envoltura-404 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.error-404 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
}

.number-404 {
    font-weight: 900;
    font-size: 15rem;
    line-height: 1;
}

.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;
}

@media (max-width: 576px) {
    .number-404 {
        font-size: 6rem;
    }

    .illustration-404 {
        width: 4rem;
    }

    .circle {
        height: 4.5rem;
        width: 4.5rem;
    }

    .clip,
    .paper {
        display: none;
    }

    .paper {
        width: 3rem;
        height: 4rem;
    }
}

.filtro-buscador-wrapper {
    /* ¡LA REGLA CLAVE! Permite que el menú desplegable se muestre por fuera del contenedor. */
    overflow: visible !important;

    /* Le damos un poco de espacio extra abajo para asegurar que el menú quepa sin problemas. */
    padding-bottom: 150px;
    margin-bottom: -150px;
    border-left: none !important;
}

/* Estilos para la jerarquía de regiones */
.region-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.region-parent-row .region-item {
    flex: 1;
    margin-bottom: 0 !important;
}

.btn-toggle-children {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-toggle-children[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--bs-primary);
}

.sub-regiones {
    padding-left: 1.5rem;
    margin-top: 5px;
    border-left: 2px solid rgba(var(--bs-primary-rgb), 0.1);
    margin-left: 0.75rem;
}