/* 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);
    --border-color: #eaeaea;
    --radio-borde: 0.375rem;
}

* {
    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 {
    color: var(--color4);
}

a,
span,
p {
    font-family: var(--fontFamlyText);
}

input,
select,
textarea,
button,
.form-select,
.form-control {
    /* Opción A: Que hereden la fuente del padre (lo más limpio) */
    font-family: inherit !important;

    /* Opción B: Forzar tu fuente específica (si la A no funciona) */
    /* font-family: 'Gilroy-Bold', sans-serif !important; */
}

/* 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);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(4.5px);
    backdrop-filter: blur(4.5px);
}

.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: 200px;
    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;
}

.nav-container {
    .nav-links {
        li:not(.dropdown) {
            max-width: 200px;
            text-align: center;
        }
    }
}

/* ==========================================================================
   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;
    }

    .nav-links>li>a {
        text-align: start;
    }
}

/* Estilos de Footer */

footer {
    .container-fluid {
        .row {
            .col-lg-3 {
                .navbar-brand {
                    h2 {
                        color: var(--color4);
                    }
                }
            }
        }
    }
}

.footer-1 .descripcion {
    color: var(--colorBlanco) !important;
}

.footer-1 span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-1 a {
    text-decoration: none !important;

}

footer a:hover {
    text-decoration: underline !important;
}

/* ============================================= */
/* ESTILOS FOOTER MAPA DE SITIO                 */
/* ============================================= */

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-link:hover,
.footer-link[aria-expanded="true"] {
    color: #fff;
}

.footer-sublink {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-sublink:hover {
    color: var(--color-secundario);
    /* Tu color Terracota */
    padding-left: 5px;
    /* Pequeño movimiento a la derecha */
}

/* Animación de la flechita */
.transition-icon {
    transition: transform 0.3s ease;
}

/* Terminan estilos de footer */

.btn-outline-primary {
    color: var(--mainColor) !important;
    border-color: var(--mainColor) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--mainColor) !important;
}

.btn-outline-white {
    color: var(--brand-light-gray) !important;
    border-color: var(--brand-border-color) !important;
}

.btn-outline-white:hover {
    color: #fff !important;
    background-color: var(--bs-primary) !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;
    padding: 0;
    color: #495057;
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.emoji-wrapper:hover,
.emoji-wrapper:focus-visible {
    transform: scale(1.15);
    outline: 2px solid var(--color6);
    outline-offset: 3px;
}

.emoji {
    font-size: 3rem;
    filter: grayscale(50%);
    transition: filter 0.2s ease;
}

.emoji-wrapper:hover .emoji {
    filter: grayscale(0%);
}

.emoji-wrapper[aria-pressed="true"] .emoji {
    filter: grayscale(0%);
}

.emoji-label {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 5px;
}


/* Utilidades */

.text-inherit {
    color: inherit;
}

.bg-claro {
    background-color: var(--bg-content);
}

.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) !important;
    border-color: var(--color5) !important;
    color: white !important;
}

.btn-custom-primary:hover {
    opacity: 0.9 !important;
    color: var(--colorBlanco) !important;
    border-color: var(--color5) !important;
}

.btn-custom-secondary {
    color: var(--color5);
    border-color: var(--color5);
}

.btn-custom-secondary:hover {
    background-color: var(--color5);
    color: white;
}

.btn-custom-tertiary {
    color: var(--color8) !important;
    border-color: var(--color4) !important;
}

.btn-custom-tertiary:hover {
    background-color: var(--color4) !important;
    color: white !important;
}

.cursiva {
    font-family: italic;
}

/* 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;
    }
}

/* ================================================ */
/* ESTILOS PARA LA NUEVA SECCIÓN HERO             */
/* ================================================ */

/* Asegura que el 'hero' ocupe buen espacio y centra el contenido */
.hero-item {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Opcional: Añade una capa oscura/color sobre la imagen de fondo */
/* Esto hace que el texto blanco sea MUCHO más legible */
.hero-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

/* Asegura que el contenido esté sobre la capa oscura */
.hero-item .container {
    position: relative;
    z-index: 2;
}

/* Estilos del Título */
.hero-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-maroon);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Estilo para el acrónimo (SED) */
.hero-title span {
    font-size: 3.2rem;
    color: var(--color5);
    display: block;
    margin-top: 5px;
}

/* Estilos del Subtítulo */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--blackColor);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Contenedor de botones */
.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Estilos base para los botones */
.hero-buttons .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Botón Primario (Color de acento) */
.hero-buttons .btn-primary {
    background-color: var(--color5);
    border-color: var(--color5);
    color: #ffffff;
}

.hero-buttons .btn-primary:hover {
    background-color: transparent;
    border-color: var(--mainColor);
    color: var(--blackColor);
    transform: translateY(-3px);
}

/* Botón Secundario (Transparente/Borde) */
.hero-buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--color2);
    color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color1);
    transform: translateY(-3px);
}

/* Estilos para la imagen de la derecha (si usas las animaciones) */
.images-container {
    position: relative;
    /* Aquí irían los estilos de las imágenes flotantes si los tienes */
}

.images-container .main {
    max-width: 100%;
}

/* Media Query para móviles */
@media (max-width: 991px) {
    .hero-item {
        padding: 80px 0;
        text-align: center;
        /* Centra todo en móvil */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
}

.section-oscura {
    background-position: center top;
    background-image: linear-gradient(rgba(49, 12, 27, 0.046), rgba(156, 80, 30, 0.543)), url('../img/fondos/fondo_2.webp');
    min-height: 350px;

    .container {
        p {
            color: var(--colorBlanco);
        }
    }
}

/* Estilos para la sección de Evaluaciones */
.evaluaciones-area {
    padding: 80px 0;
    background-color: var(--arena);
    text-align: center;
}

.evaluaciones-area .section-title {
    font-size: 2.5rem;
    color: var(--color1);
    margin-bottom: 20px;
}

.evaluaciones-area .section-description {
    font-size: 1.2rem;
    color: var(--color8);
    margin-bottom: 30px;
}

.evaluaciones-area .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.evaluaciones-area .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.evaluaciones-area .card-img {
    padding-bottom: 1rem;
    padding-top: 1rem;
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.card-body {
    color: var(--color8);
}

.evaluaciones-area .card-body {
    padding: 20px;

}

.evaluaciones-area .card-body h4 {
    font-size: 1.4rem;
    color: var(--color1);
    margin-bottom: 10px;
}

.evaluaciones-area .card-body p {
    font-size: 1rem;
    color: var(--color8);
    margin-bottom: 20px;
}

.evaluaciones-area .btn {
    padding: 12px 20px;
    background-color: var(--color2);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: var(--color4);
}

.evaluaciones-area .btn:hover {
    background-color: var(--color3);
}

/* Estilos para la sección de Mecanismos */
.mecanismos-area {
    padding: 80px 0;
    background-color: var(--color7);
    text-align: center;
}

.mecanismos-area .section-title {
    font-size: 2.5rem;
    color: var(--color5);
    margin-bottom: 20px;
}

.mecanismos-area .section-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.mecanismos-area .card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mecanismos-area .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.mecanismos-area .card-img {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.mecanismos-area .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.mecanismos-area .card-body h4 {
    font-size: 1.4rem;
    color: var(--color5);
    margin-bottom: 10px;
    padding: 10px;
}

.mecanismos-area .card-body p {
    font-size: 1rem;
    color: var(--color8);
    margin-bottom: 20px;
}

.mecanismos-area .btn {
    padding: 12px 20px;
    background-color: var(--color6);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mecanismos-area .btn:hover {
    background-color: var(--color3);
}

/* Descripción del SED */
.descripcion-sed {
    padding: 80px 0;
    background-color: var(--arena);
}

.descripcion-sed .section-title {
    font-size: 2.4rem;
    color: var(--color1);
    margin-bottom: 20px;
}

.descripcion-sed p {
    font-size: 1.1rem;
    color: var(--color8);
    line-height: 1.8;
}

/* Acciones SED */
.acciones-sed {
    padding: 80px 0;
}

.acciones-sed .section-title {
    font-size: 2.4rem;
    color: var(--color1);
    margin-bottom: 30px;
}

.acciones-sed .action-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.acciones-sed .action-card:hover {
    transform: translateY(-10px);
}

.acciones-sed .action-card h3 {
    font-size: 1.5rem;
    color: var(--color1);
    margin-bottom: 10px;
}

.acciones-sed .action-card p {
    font-size: 1rem;
    color: var(--color8);
    margin-bottom: 20px;
}

.acciones-sed .btn {
    background-color: var(--color2);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
}

.acciones-sed .btn:hover {
    background-color: var(--color3);
}

/* ============================================= */
/* ESTILOS ESPECÍFICOS PARA PAE (LISTADO)      */
/* ============================================= */

/* Colores de tu Brief */
.text-vino {
    color: var(--color4);
}

.text-terracota {
    color: var(--color2);
}

.text-verde {
    color: var(--color6);
}

/* Botón Outline Terracota (Para descargar) */
.btn-outline-terracota {
    color: var(--color2) !important;
    border-color: var(--color2) !important;
    background: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-terracota:hover {
    background-color: var(--color2) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(199, 126, 74, 0.3) !important;
}

/* Tarjeta de Documento */
.card-documento {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent !important;
    /* Borde izquierdo invisible por defecto */
}

.card-documento:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-left: 4px solid var(--color2) !important;
    /* Borde naranja al pasar el mouse */
}

/* Icono de PDF */
.icon-box {
    transition: background-color 0.3s ease;
}

.card-documento:hover .icon-box {
    background-color: rgba(199, 126, 74, 0.1) !important;
    /* Fondo naranja muy suave */
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .card-body {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .btn-outline-terracota {
        width: 100%;
        /* Botón ancho completo en móvil */
        margin-top: 15px;
    }
}

/* Opción: Scroll Interno */
.scrollable-list-container {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Personalizar la barra de scroll (Opcional - Webkit) */
.scrollable-list-container::-webkit-scrollbar {
    width: 8px;
}

.scrollable-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-list-container::-webkit-scrollbar-thumb {
    background: var(--color-secundario);
    /* Barra color Terracota */
    border-radius: 4px;
}

/* ============================================= */
/* PERSONALIZACIÓN DE PAGINACIÓN (Bootstrap)     */
/* ============================================= */

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--color1);
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Estado Hover (Al pasar el mouse) */
.page-link:hover {
    color: #fff;
    background-color: var(--color4);
    /* Fondo Terracota */
    border-color: var(--color5);
}

/* Estado Activo (Página actual) */
.page-item.active .page-link {
    background-color: var(--color1);
    /* Fondo Vino */
    border-color: var(--color6);
    color: #fff;
    box-shadow: 0 4px 10px rgba(139, 43, 93, 0.3);
}

/* Deshabilitado (Anterior/Siguiente cuando no hay más) */
.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.6;
}

/* ============================================= */
/* ESTILOS PARA TABS (Navegación)               */
/* ============================================= */
/* Brief: Transparente default, Píldora Gris Oscura active */

.custom-tabs .nav-link {
    color: #6c757d;
    /* Gris medio */
    font-weight: 600;
    background-color: transparent;
    border-radius: 50px;
    /* Píldora */
    padding: 8px 20px;
    margin-right: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se rompa */
}

.custom-tabs .nav-link:hover {
    color: var(--color1);
    /* Vino al hover */
    background-color: rgba(139, 43, 93, 0.05);
    /* Vino muy clarito */
}

.custom-tabs .nav-link.active {
    background-color: #343a40 !important;
    /* Gris Oscuro (Tu brief) */
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ============================================= */
/* UTILIDADES DE COLOR (Unity)                  */
/* ============================================= */

/* Fondo Vino (para badges) */
.bg-vino {
    background-color: var(--color1) !important;
}

.bg-verde {
    background-color: var(--color6) !important;
}

/* Fondo/Texto Terracota (para badges/iconos) */
.bg-terracota {
    background-color: var(--color4) !important;
}

.text-terracota {
    color: var(--color4) !important;
}

/* Ajuste de Modal para que combine */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================= */
/* ESTILOS ESPECÍFICOS MONITOREO                */
/* ============================================= */

.card-sistema {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-sistema:hover {
    transform: translateY(-10px);
    /* Efecto de elevación */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

/* Círculo del Icono */
.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color1), #5e1b3e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(139, 43, 93, 0.3);
}

/* Línea divisoria en responsive */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6;
    }
}

.card-recurso,
.card-enlace {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-recurso:hover,
.card-enlace:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.card-enlace:hover .icon-square {
    background-color: rgba(199, 126, 74, 0.1) !important;
    /* Terracota suave */
}

/* Estilos para Lista de Normatividad */
.list-group-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.list-group-item:hover {
    background-color: #fcfcfc;
    transform: translateX(5px);
    z-index: 1;
}

.list-group-item h6 {
    line-height: 1.4;
}

/* Estilos de acerca */
.card-esquema {
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: none;
}

.card-esquema:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    margin: 0 auto 15px;
}

.badge-sistemas {
    background-color: #6c757d;
    color: white;
    margin: 2px;
    padding: 5px 10px;
    font-weight: normal;
}

/* ==========================================================================
   BOTÓN FLOTANTE: CENTRO DE RECURSOS (FAB)
   ========================================================================== */
.fab-resource-center {
    position: fixed;
    bottom: 90px;
    right: 26px;
    z-index: 99;
}

.fab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color1);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 0 20px;
    white-space: nowrap;
}

.fab-button i {
    font-size: 24px;
    min-width: 24px;
}

.fab-label {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    font-weight: 600;
    font-family: var(--fontFamilyBold);
    transition: all 0.4s ease;
    color: var(--colorBlanco);
}

.fab-button:hover {
    width: auto;
    background-color: var(--color2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.fab-button:hover .fab-label {
    max-width: 300px;
    opacity: 1;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .fab-resource-center {
        bottom: 25px;
        right: 25px;
    }

    .fab-button {
        width: 55px;
        height: 55px;
        padding: 0;
    }

    .fab-button:hover {
        width: 55px;
    }

    .fab-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .fab-resource-center {
        position: fixed;
        z-index: 99;
        bottom: 75px;
        right: 15px;
    }
}

.evaluation-comment {
    margin-top: 1rem;
    text-align: left;
}

.evaluation-comment label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color8);
    font-weight: 600;
}

.evaluation-comment textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    resize: vertical;
}

.evaluation-submit {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: #fff;
    background-color: var(--color6);
    border: 0;
    border-radius: 6px;
}

.evaluation-submit:disabled,
.emoji-wrapper:disabled {
    cursor: wait;
    opacity: 0.65;
}

.evaluation-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    overflow: hidden;
}

.evaluation-privacy {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.evaluation-status {
    margin: 0.75rem 0 0;
    font-weight: 600;
}

[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .card-documento-layout {
        flex-wrap: nowrap !important;
    }

    .card-documento-content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .card-documento-content h5 {
        overflow-wrap: break-word;
    }
}

[data-async-results] {
    position: relative;
    min-height: 80px;
    transition: opacity 0.2s ease;
}

[data-async-results].is-loading {
    opacity: 0.55;
    pointer-events: none;
}

[data-async-results].is-loading::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(139, 43, 93, 0.2);
    border-top-color: var(--color1);
    border-radius: 50%;
    animation: async-list-spin 0.7s linear infinite;
}

@keyframes async-list-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-async-results] {
        transition: none;
    }

    [data-async-results].is-loading::after {
        animation-duration: 1.5s;
    }
}