:root {
    --azul-claro: #dbe5f1;
    --azul-medio: #6380a9;
    --azul-oscuro: #365f91;
    --azul-profundo: rgb(23, 54, 93);
    --azul-gris: #63758b;

    --dorado-claro: #c7b67a;
    --dorado-medio: #a69451;
    --dorado-intenso: #d7ae47;
    --dorado-oscuro: #b6802e;
    --dorado-suave: #c79d54;

    --bs-primary: #17365d;
    --bs-primary-rgb: 23, 54, 93;
    /* Necesario para efectos de transparencia */
}

.dorado-intenso {
    color: var(--dorado-intenso) !important;
}

.min-vh-content {
    min-height: 60vh !important;
}


/* Para usar tu variable específica */
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-ameripol {
    background: #17365d;
}

/* Fondo del preloader */
.loader-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b1e36;
    /* azul institucional */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor */
.loader-content {
    text-align: center;
}

/* Logo */
.loader-logo {
    width: 120px;
    margin-bottom: 25px;
}

/* Spinner elegante */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #d4af37;
    /* dorado institucional */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Texto */
.loader-text {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.8;
}

body {
    background-color: var(--azul-claro);
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;

    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}


h1,
h2,
h3,
h4,
h5,
.title {
    font-family: 'Montserrat', sans-serif;
}


/* =========================================
   BRAND NAVBAR
========================================= */

.navbar {
    height: 100px;
    background: linear-gradient(to bottom,
            rgba(23, 54, 93, 1) 0%,
            /* Muy opaco arriba */
            rgba(23, 54, 93, 0.5) 50%,
            /* Semi-transparente al centro */
            rgba(23, 54, 93, 0) 100%
            /* Totalmente transparente abajo */
        );

}

.navbar-brand {
    text-decoration: none;
}

/* Logo */
.navbar-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;

    transition: transform .3s ease;
}

/* efecto hover */
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Contenedor texto */
.brand-text {
    justify-content: center;
}

/* Título */
.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #d7ae47;
    line-height: 1;
}

/* Subtítulo */
.brand-subtitle {
    font-size: .72rem;
    color: #d1d5db;
    letter-spacing: .4px;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {

    .navbar-logo {
        width: 44px;
        height: 44px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: .65rem;
    }
}




.navbar-brand,
.nav-link {
    color: #fff !important;
    font-weight: 500;
}

/*Efecto Nav*/
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: transform 0.35s ease-in-out;
}

.nav-hidden {
    transform: translateY(-100%);
}

.nav-item:hover {
    background-color: #d7ae47;
    /* dorado */
    transition: all 0.5s ease;
    color: #17365d;
    transform: translateY(2px);
    border-radius: 10px;

}

.navbar .nav-link.active {
    background-color: #d7ae47;
    /* dorado */
    color: #17365d;

    border-radius: 10px;
}

.navbar-toggler-icon {
    color: white;
}





/*FIN NAVBAR*/


/* HERO */
.hero {
    min-height: 99vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}



/* =========================================
   INDICADOR SCROLL
========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 5px;
    height: 10px;
    background: white;
    border-radius: 10px;
    transform: translateX(-50%);
    animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 14px);
    }
}



/* Imagen */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* clave */
    object-position: center;
    z-index: 0;
}

/* Overlay institucional */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 54, 93, 0.3);
    /* azul profundo */
    z-index: 1;
}

.hero-content {
    min-height: 75vh;
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
}

.hero-text-wrapper {
    max-width: 950px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    color: #f4d27a;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
}

.hero-title span {
    color: #d4af37;
    position: relative;
}

.hero-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, #d4af37, #f7e08b);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    max-width: 780px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {

    .hero-title {
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
}


/***************************
SECCION INFORMACION GENERAL
***************************/
.about-section {
    position: relative;
}



.section-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #6c757d;
}

/* Cards */
.info-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    border: 1px solid rgba(0, 0, 0, .05);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
}

.info-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(13, 110, 253, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-icon i {
    font-size: 2rem;
    color: #0d6efd;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #17365d;
}

.section-description {
    color: #495057;
    line-height: 1.9;
}

.section-description p:last-child {
    margin-bottom: 0;
}

/****************************
FIN SECCION INFORMACION GENERAL
****************************/



.section-title {
    color: var(--azul-profundo);
    border-left: 5px solid var(--dorado-oscuro);
    padding-left: 10px;
    margin-bottom: 1.5rem;
}

.section-title-lateral {
    color: var(--azul-profundo);
}


/*Cofiguraciones generales de texto*/
.text-justify {
    text-align: justify;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Imagenes uniformes para cards */
.card-img-wrapper {
    height: 220px;
    /* altura fija institucional */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorte inteligente */
    object-position: center;
}

.img-wrapper {
    overflow: hidden;
    /* 🔑 evita que la imagen se salga */
}

.img-move {
    transition: transform 0.4s ease;
}

/* hover desde la card */
.card-hover:hover .img-move {
    transform: scale(1.1);
    /* puedes cambiar a translate si quieres */
}


.title-article {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 0.35rem;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}


/**Aside lateral**/
.aside-card {
    transition: all 0.25s ease;
    cursor: pointer;
}

.aside-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.object-fit-cover {
    object-fit: cover;
}

/*****TARJETAS DE INFORMACION A LA COMUNIDAD****/

.card-img-wrapper-comunity {
    height: 380px;
    /* altura fija institucional */
    overflow: hidden;
}

.card-img-wrapper-comunity img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorte inteligente */
    object-position: center;
}


.card-hover {
    position: relative;
    overflow: hidden;
}

/* Footer fuera del flujo (no ocupa espacio) */
.card-hover .hover-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    background-color: var(--azul-profundo);
    color: #fff;

    transform: translateY(100%);
    opacity: 0;

    pointer-events: none;
    /* evita interacción cuando está oculto */

    transition: all 0.5s ease;
}

/* Mostrar en hover */
.card-hover:hover .hover-footer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


.footer-premium {
    background-color: var(--azul-profundo);
    color: #fff;
}

/* Títulos */
.footer-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dorado-intenso);
    margin-bottom: 1rem;
}

/* Links */
.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Divider elegante */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            var(--dorado-medio),
            transparent);
    opacity: 0.4;
}

/* Redes sociales */
.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--dorado-intenso);
    transform: translateY(-2px);
}



/* Barra de redes sociales flotante */
.social-floating {
    position: fixed;
    top: 70%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-floating a {
    width: 48px;
    height: 48px;
    background-color: #17365d;
    /* azul profundo institucional */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.25);
}

/* Hover institucional */
.social-floating a:hover {
    background-color: #d7ae47;
    /* dorado */
    color: #17365d;
    transform: translateX(-8px);
}

/* Tooltip simple */
.social-floating a span {
    position: absolute;
    right: 60px;
    background-color: #17365d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-floating a:hover span {
    opacity: 1;
    transform: translateX(0);
}


/* Badge de tipo de publicación */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 0.35rem;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Tipos de publicación */
.badge-noticia {
    background-color: #365f91;
    /* azul institucional */
}

.badge-evento {
    background-color: #63758b;
    /* azul gris */
}

.badge-operacion {
    background-color: #17365d;
    /* azul profundo */
}

.badge-documento {
    background-color: #b6802e;
    /* dorado oscuro */
}

/* Hover elegante */
.card:hover .card-badge {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Asegura posicionamiento correcto */
.card {
    position: relative;
}

/** Configuración de galería de imágenes */
.gallery-img-wrapper {
    height: 260px;
    /* altura uniforme */
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorte inteligente */
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Boton buscar */

/* Efecto moderno de enfoque y transiciones */
.search-box .form-control {
    transition: all 0.3s ease;
    height: 48px;
    font-size: 0.95rem;
}

.search-box .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15) !important;
}

.search-box .btn-search {
    width: 36px;
    height: 36px;
    transition: background-color 0.2s ease;
}

.search-box .btn-search:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.search-box .btn-search:hover i {
    color: #0d6efd !important;
}


.btn-clear {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    color: #6c757d;
}

.btn-clear:hover {
    background: #e9ecef;
    color: #000;
    transform: scale(1.05);
}


/* Timeline de historia */


.timeline-section {
    position: relative;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    overflow: hidden;
}

/* Header */
.timeline-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(23, 54, 93, 0.08);
    color: var(--azul-profundo);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

.timeline-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--azul-profundo);
}

.timeline-subtitle {
    color: #6b7280;
    max-width: 650px;
    margin: auto;
}

/* Timeline */
.timeline-clean {
    position: relative;
    max-width: 950px;
    margin: auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 40px 1fr;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2rem;
}

/* Año */
.timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-profundo);
    text-align: right;
    padding-top: .4rem;
}

/* Línea */
.timeline-line {
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: rgba(54, 95, 145, 0.15);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--azul-oscuro);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(54, 95, 145, 0.15);
    z-index: 2;
    margin-top: .45rem;
}

/* Card */
.timeline-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: all .25s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

/* Imagen */
.timeline-thumb {
    width: 30%;
    min-width: 30%;
    overflow: hidden;
}

.timeline-thumb img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    transition: transform .4s ease;
}

.timeline-card:hover .timeline-thumb img {
    transform: scale(1.05);
}

/* Body */
.timeline-body {
    padding: 1.2rem 1.2rem 1.2rem 0;
    flex: 1;
}

.timeline-date-small {
    font-size: .82rem;
    color: #6b7280;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: .7rem;
}

.timeline-team {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(54, 95, 145, 0.08);
    color: var(--azul-oscuro);
    padding: .35rem .7rem;
    border-radius: 50px;
    font-size: .82rem;
    margin-bottom: .9rem;
}

.timeline-description {
    color: #4b5563;
    line-height: 1.7;
    font-size: .95rem;
}

/* Responsive */
@media (max-width: 768px) {

    .timeline-item {
        grid-template-columns: 55px 25px 1fr;
        gap: 1rem;
    }

    .timeline-year {
        font-size: .95rem;
    }

    .timeline-card {
        flex-direction: column;
    }

    .timeline-thumb {
        width: 100%;
        height: 200px;
    }

    .timeline-body {
        padding: 1rem;
    }

    .timeline-heading {
        font-size: 2rem;
    }
}

/* =========================
   SECTION
========================= */

.institutions-section {
    position: relative;
    background:
        linear-gradient(180deg,
            #f8fafc 0%,
            #ffffff 100%);
    overflow: hidden;
}

/* =========================
   HEADER
========================= */

.section-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(23, 54, 93, 0.08);
    color: var(--azul-profundo);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
}

.justify-text {
    text-align: justify;
}



.section-description {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================
   CARD INSTITUCIIONES MIEMBROS
========================= */
/* =========================================
   SECTION
========================================= */

.institutions-section {
    position: relative;
    background:
        linear-gradient(180deg,
            #f8fafc 0%,
            #ffffff 100%);

    overflow: hidden;
}

/* =========================================
   HEADER
========================================= */

.section-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 16px;

    border-radius: 50px;

    background: rgba(23, 54, 93, .08);

    color: var(--azul-profundo);

    font-size: .78rem;
    font-weight: 700;

    letter-spacing: .6px;
    text-transform: uppercase;
}



.section-description {
    color: #6b7280;
    font-size: .98rem;
    line-height: 1.7;
}

/* =========================================
   CARD
========================================= */

.institution-card {
    position: relative;

    background: #fff;

    border-radius: 18px;

    padding: 1.15rem;

    height: 100%;

    border: 1px solid rgba(0, 0, 0, .05);

    transition: all .28s ease;

    overflow: hidden;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .04);
}

.institution-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 28px rgba(23, 54, 93, .10);
}

/* Línea superior elegante */

.institution-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(90deg,
            var(--azul-profundo),
            var(--dorado-claro));
}

/* =========================================
   TOP
========================================= */

.institution-top {
    display: flex;
    align-items: center;
    gap: 1rem;

    margin-bottom: 1rem;
}

/* =========================================
   MAIN FLAG
========================================= */

.institution-flag-main {
    position: relative;

    flex-shrink: 0;

    width: 85px;
    height: 85px;

    border-radius: 8px;

    overflow: visible;
}

.institution-flag-main img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 8px;

    background: #f3f5f900;

    border: 1px solid rgba(255, 255, 255, .9);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .08);
}

.flag-placeholder {
    width: 100%;
    height: 100%;

    border-radius: 18px;

    background: #eef2f7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--azul-medio);

    font-size: 1.4rem;
}

/* =========================================
   COUNTRY FLAG BADGE
========================================= */

.country-flag-badge {
    position: absolute;

    bottom: 0 px;
    right: -40px;


    height: 24px;
    width: 30px;

    border-radius: 5%;

    overflow: hidden;



    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .15);
}

.country-flag-badge img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 0%;
}

.country-flag-badge i {
    font-size: .7rem;
    color: var(--azul-medio);
}

/* =========================================
   TITLE
========================================= */

.institution-title {
    flex: 1;
}

.institution-name {
    font-size: .93rem;
    font-weight: 700;

    line-height: 1.45;

    color: #1f2937;

    margin-bottom: .45rem;
}

.institution-country {
    display: inline-flex;
    align-items: center;

    font-size: .7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .5px;

    color: var(--azul-medio);

    background: rgba(99, 128, 169, .08);

    padding: 5px 10px;

    border-radius: 30px;
}

/* =========================================
   BODY
========================================= */

.institution-body {
    padding-left: .1rem;
}

.institution-role {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    background: rgba(199, 182, 122, .12);

    color: #8b6b1f;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: .72rem;
    font-weight: 600;

    margin-bottom: .75rem;
}

.institution-role i {
    font-size: .75rem;
}

.institution-name {
    font-size: .94rem;
    font-weight: 700;

    line-height: 1.45;

    color: #1f2937;

    margin-bottom: .9rem;

    min-height: 42px;
}

/* =========================================
   FOOTER
========================================= */

.institution-footer {
    border-top: 1px solid rgba(0, 0, 0, .05);

    padding-top: .8rem;
}

.institution-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    text-decoration: none;

    color: var(--azul-profundo);

    font-size: .84rem;
    font-weight: 600;

    transition: all .25s ease;
}

.institution-link:hover {
    color: var(--azul-oscuro);

    transform: translateX(3px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .institution-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .institution-name {
        font-size: .9rem;
        min-height: auto;
    }

    .institution-flag {
        width: 48px;
        height: 48px;
    }

}


/**** Directores */
/* Director principal */
.director-highlight {
    padding: 4rem;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e8ecf1;
}

.director-main-image {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    object-fit: cover;
}

.director-role {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a6d2f;
    font-size: .9rem;
    font-weight: 600;
}

.director-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #17365d;
    margin-top: .5rem;
}

.director-line {
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: #d4af37;
    margin: 1rem 0 2rem;
}

.director-description {
    font-size: 1.05rem;
    color: #5c6773;
    line-height: 1.8;
}

.director-meta {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Cards */
.director-card {
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid #e8ecf1;
    background: white;
    transition: .3s ease;
}

.director-card:hover {
    transform: translateY(-5px);
}

.director-card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.director-card-role {
    display: block;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 2px;
    color: #8a6d2f;
}

.director-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #17365d;
    margin-top: .5rem;
}

.director-card-country {
    color: #6c757d;
}

.director-mini-divider {
    width: 60px;
    height: 3px;
    background: #d4af37;
    margin: 1rem auto;
    border-radius: 50px;
}


/* Card cursos movimiento*/
.card-hover {
    transition: all .25s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

.card-hover img {
    transition: transform .5s ease;
}

.card-hover:hover img {
    transform: scale(1.05);
}



/* TRABAJA CON NOSOTROS */
.content-rich p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-rich ul,
.content-rich ol {
    padding-left: 1.5rem;
}

.content-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.aside-card {
    transition: .2s ease;
}

.aside-card:hover {
    transform: translateY(-2px);
}