/* ================================================================
   VARIABLES INSTITUCIONALES
   ================================================================ */

:root {
    /* ==============================================
       PALETA INSTITUCIONAL BASADA EN PANTONE 326 C
       Color base: #33CC99 (rgb 51, 204, 153)
       Misma tonalidad (160° en HSL), diferentes niveles de luminosidad
    ============================================== */
    
    --fi-verde-base: #33CC99;
    --fi-verde-claro: #8AE0C2;
    --fi-verde-oscuro: #1A8C6E;
    --fi-verde-muy-oscuro: #0D4A3A;
    --fi-verde-extremo: #062A20;   /* 80% más oscuro - para fondos muy profundos */
    --fi-verde-texto: #07382C;
    --fi-gris: #6c757d;
    --fi-gris-claro: #e9ecef;
}

/* ================================================================
   RESET Y BASE
   ================================================================ */

html, body {
    margin: 0;
    padding: 0;
}

main {
    min-height: 60vh;
}

/* ================================================================
   TOPBAR
   ================================================================ */

.fi-topbar {
    background-color: var(--fi-verde-muy-oscuro);
    font-size: 0.85rem;
    position: relative;
    z-index: 1050;
}

.fi-topbar a,
.fi-hero-text a {
    color: #ffffff;
    text-decoration: none;
}

.fi-topbar a:hover,
.fi-hero-text a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.fi-contacto-info {
    position: absolute;
    top: 110%;
    left: 0;
    background: #ffffff;
    color: var(--fi-verde-oscuro);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    max-width: 260px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

.fi-contacto-info i {
    color: var(--fi-verde-base);
    font-size: 1.1rem;
    margin-top: 2px;
}

.fi-contacto-info.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 576px) {
    .fi-contacto-info {
        position: fixed;
        top: 48px;
        left: 50%;
        transform: translate(-50%, -6px);
        width: calc(100vw - 40px);
        max-width: 300px;
        z-index: 3000;
    }

    .fi-contacto-info.show {
        transform: translate(-50%, 0);
    }
}

/* ================================================================
   NAVBAR
   ================================================================ */

.fi-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(51, 204, 153, 0.15);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fi-navbar .container-fluid {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.fi-navbar .navbar-collapse {
    max-width: 100%;
}

.fi-navbar .navbar-nav {
    flex-wrap: nowrap;
    gap: 0;
}

.fi-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom-color: rgba(51, 204, 153, 0.25);
}

.fi-navbar .nav-link {
    font-weight: 500;
    color: #1a2a2a;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.fi-navbar .nav-link:hover {
    color: var(--fi-verde-base);
}

.fi-navbar .nav-link.active {
    color: var(--fi-verde-oscuro);
    font-weight: 600;
}

.fi-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: var(--fi-verde-base);
    border-radius: 2px;
}

.fi-logo {
    height: 65px;
    transition: height 0.3s ease;
    max-width: 180px;
}

.fi-navbar.scrolled .fi-logo {
    height: 52px;
}

.fi-navbar .navbar-brand {
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--fi-verde-muy-oscuro);
    font-weight: 600;
    flex-shrink: 0;
}

.fi-navbar .navbar-brand span {
    font-size: 0.75rem;
    color: var(--fi-verde-oscuro);
    font-weight: normal;
}

@media (max-width: 991px) {
    .fi-navbar {
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .fi-navbar .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding-top: 0.5rem;
        gap: 0 !important;
    }
    
    .fi-navbar .nav-item {
        width: 100% !important;
    }
    
    .fi-navbar .nav-link {
        padding: 0.6rem 0 !important;
        white-space: normal !important;
        margin-left: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .fi-navbar .nav-link.active::after {
        display: none;
    }
    
    /* ======================================== */
    /* DROPDOWN EN MÓVIL (se abre hacia abajo) */
    /* ======================================== */
    .fi-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        border-radius: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        border: none !important;
        margin-top: 0 !important;
    }
    
    .fi-navbar .dropdown-menu.show {
        display: block !important;
    }
    
    .fi-navbar .dropdown-item {
        padding: 0.4rem 0 0.4rem 1rem !important;
        color: #1a2a2a !important;
        font-size: 0.9rem !important;
    }
    
    .fi-navbar .dropdown-item:hover {
        background: transparent !important;
        padding-left: 1.2rem !important;
        color: var(--fi-verde-base) !important;
    }
    
    .fi-navbar .dropdown-divider {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .fi-logo {
        height: 42px;
        max-width: 120px;
    }
    
    .fi-navbar.scrolled .fi-logo {
        height: 38px;
    }
}
/* ================================================================
   DROPDOWN INSTITUCIONAL
   ================================================================ */

.fi-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    border-radius: 6px;
    border: none;
    padding: 0.4rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    min-width: 260px;  
}

.fi-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.fi-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 0.55rem 1.2rem;
    color: #333;
    transition: background-color .2s ease, padding-left .2s ease;
}

.fi-dropdown .dropdown-item:hover {
    background-color: #f1f7f6;
    color: var(--fi-verde-oscuro);
    padding-left: 1.4rem;
}

.fi-dropdown .dropdown-divider {
    margin: 0.35rem 0;
    border-top: 1px solid #e2e8e6;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    right: auto;
    margin-top: 0;
    margin-left: 0.125rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    border: none;
    padding: 0.4rem 0;
    min-width: 220px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}



/* ================================================================
   HERO
   ================================================================ */

.fi-hero {
    position: relative;
    margin-top: -2px;
}

.fi-hero-slide {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fi-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 74, 58, 0.85) 0%,
        rgba(13, 74, 58, 0.55) 35%,
        rgba(26, 140, 110, 0.25) 55%,
        rgba(51, 204, 153, 0.08) 70%,
        rgba(51, 204, 153, 0) 100%
    );
    z-index: 1;
}

.fi-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 0 110px 10%;
    z-index: 2;
}

.fi-hero-text {
    max-width: 640px;
}

.fi-hero-text h2 {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.fi-hero-text h2 span {
    font-weight: 700;
    opacity: 0.95;
}

.fi-hero-text p {
    color: #f1f1f1;
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.fi-btn-hero {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 8px 26px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fi-btn-hero:hover {
    background: #ffffff;
    color: var(--fi-verde-muy-oscuro);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

@media (max-width: 991px) {
    .fi-hero-slide {
        min-height: 440px;
    }

    .fi-hero-content {
        padding: 0 40px 70px;
    }

    .fi-hero-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .fi-hero-slide {
        min-height: 360px;
    }

    .fi-hero-content {
        padding: 0 20px 40px;
    }

    .fi-hero-text h2 {
        font-size: 1.55rem;
    }

    .fi-hero-text p {
        font-size: 0.95rem;
    }
}

/* ================================================================
   SECCIÓN DE ACCESOS RÁPIDOS - TARJETAS HOME
   ================================================================ */

#cards-section {
    margin-top: -65px;
    position: relative;
    z-index: 10;
}

.custom-card {
    position: relative;
    background: white;
    padding: 30px 18px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    z-index: 1;
}

.custom-card h5 {
    position: relative;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 12px 0 18px;
    width: 100%;
    transition: color 0.25s ease;
}

.custom-card:hover h5 {
    color: rgba(255, 255, 255, 0.9);
}

.card-logo {
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.card-logo i {
    font-size: 42px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.custom-card:hover .card-logo {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.custom-card:hover .card-logo i {
    transform: scale(1.1);
}

.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link-wrapper:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.card-link-wrapper:hover .custom-card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-link-wrapper:hover h5 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.card-arrow {
    position: absolute;
    right: 8px;
    bottom: 0;
    font-size: 1.2em;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-link-wrapper:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.custom-grad-1,
.custom-grad-4 {
    background: linear-gradient(135deg, #2BBF8A, #1A8C6E);
}

.custom-grad-2,
.custom-grad-5 {
    background: linear-gradient(135deg, #33CC99, #1A8C6E);
}

.custom-grad-3,
.custom-grad-6 {
    background: linear-gradient(135deg, #1A8C6E, #0D4A3A);
}

.custom-grad-1 {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.custom-grad-6 {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

@media (max-width: 991px) {
    .custom-grad-1,
    .custom-grad-6 {
        border-radius: 0;
    }
}

.custom-grad-1::before,
.custom-grad-2::before,
.custom-grad-3::before,
.custom-grad-4::before,
.custom-grad-5::before,
.custom-grad-6::before {
    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: normal;
    position: absolute;
    font-size: 180px;
    color: rgba(255,255,255,0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.custom-grad-1::before { content: "\F307"; }
.custom-grad-2::before { content: "\F6FE"; }
.custom-grad-3::before { content: "\F1CC"; }
.custom-grad-4::before { content: "\F4D0"; }
.custom-grad-5::before { content: "\F3D8"; }
.custom-grad-6::before { content: "\F456"; }

.custom-grad-1::after,
.custom-grad-4::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border-radius: inherit;
}

/* ================================================================
   SECCIÓN ACTUALIDAD (HOME)
   ================================================================ */

.fi-actualidad {
    background-color: rgba(51, 204, 153, 0.05);
}

.fi-actualidad .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fi-actualidad .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.fi-actualidad .card-title a:hover {
    color: var(--fi-verde-base) !important;
}

.fi-link {
    color: var(--fi-verde-oscuro);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fi-link:hover {
    color: var(--fi-verde-base);
    text-decoration: underline;
}

/* ================================================================
   SECCIÓN INSTITUCIONAL
   ================================================================ */

#institucional { background: #f8f9fa; }

.institucional-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #003c44;
}

.institucional-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.btn-institucional {
    background: transparent;
    border: 2px solid var(--fi-verde-base);
    color: var(--fi-verde-base);
    transition: all 0.25s ease;
}

.btn-institucional:hover {
    background: var(--fi-verde-base);
    color: #ffffff;
}

.institucional-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.institucional-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .institucional-row {
        min-height: auto;
    }

    .institucional-img-wrapper {
        height: 260px;
        margin-top: 20px;
    }
}

/* ================================================================
   SECCIÓN DE MÉTRICAS INSTITUCIONAL
   ================================================================ */

.fi-metricas {
    background: linear-gradient(135deg, #0a2a25, #0d1f1c);
    color: #ffffff;
    padding: 3rem 0;
}

.metrica-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.metrica-icon {
    font-size: 2.2rem;
    color: var(--fi-verde-base);
    margin-bottom: 8px;
    transition: transform 0.25s ease;
}

.metrica-item:hover .metrica-icon {
    transform: translateY(-4px);
}

.metrica-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--fi-verde-base);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.metricas-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.0rem;
}

.btn-metrica {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-radius: 40px;
    background: var(--fi-verde-base);
    color: #0a2a25;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-metrica:hover {
    background: var(--fi-verde-oscuro);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-metrica i {
    transition: transform 0.2s ease;
}

.btn-metrica:hover i {
    transform: translateX(3px);
}

/* ================================================================
   FOOTER INSTITUCIONAL FI
   ================================================================ */

.fi-footer {
    background: linear-gradient(180deg, var(--fi-verde-muy-oscuro), var(--fi-verde-extremo));
    color: #ffffff;
    font-size: 0.9rem;
}

.fi-footer-logo {
    max-width: 180px;
    height: auto;
}

.fi-footer-text {
    opacity: 0.9;
    line-height: 1.4;
}

.fi-footer-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.fi-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fi-footer-list li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: start;
    gap: 8px;
}

.fi-footer-list i {
    color: var(--fi-verde-claro);
    font-size: 1rem;
    margin-top: 2px;
}

.fi-footer-redes a {
    color: #ffffff;
    font-size: 1.4rem;
    margin-right: 14px;
    transition: opacity 0.2s ease;
}

.fi-footer-redes a:hover {
    opacity: 0.7;
}

.fi-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.8rem;
    padding: 12px 0;
    margin-top: 0 rem;
}

/* ================================================================
   ELEMENTOS COMUNES
   ================================================================ */

.fi-divider-center {
    width: 60px;
    height: 3px;
    background: var(--fi-verde-base);
    margin: 1rem auto;
    border-radius: 3px;
}

.fi-page-title {
    color: var(--fi-verde-muy-oscuro);
    font-weight: 700;
    font-size: 2.5rem;
}

.fi-page-intro {
    color: var(--fi-verde-oscuro);
}

.badge-fi {
    background: var(--fi-verde-base);
    color: #0a2a25;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-fi-light {
    background: rgba(51, 204, 153, 0.15);
    color: var(--fi-verde-oscuro);
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ================================================================
   LISTADO UNIFICADO (CARRERAS + DEPARTAMENTOS)
   ================================================================ */

/* --- ITEM BASE --- */
.department-item-link,
.carrera-item-link {
    text-decoration: none;
    display: block;
}

.department-item,
.carrera-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.25s ease;
    cursor: pointer;
}

.department-item:hover,
.carrera-item:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 12px 30px rgba(51, 204, 153, 0.15);
    border-color: var(--fi-verde-base);
}

.department-item:active,
.carrera-item:active {
    transform: scale(0.98);
}

/* --- THUMBNAIL --- */
.department-thumbnail,
.carrera-thumbnail {
    flex-shrink: 0;
    margin-right: 1rem;
}

.department-thumbnail-img,
.carrera-thumbnail-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(51, 204, 153, 0.15);
}

.department-thumbnail-placeholder,
.carrera-thumbnail-placeholder {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(51, 204, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.department-thumbnail-placeholder i,
.carrera-thumbnail-placeholder i {
    font-size: 1.8rem;
    color: var(--fi-verde-base);
}

/* --- INFORMACIÓN --- */
.department-info,
.carrera-info {
    flex: 1;
    min-width: 0;
}

.department-info-header,
.carrera-info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.department-name,
.carrera-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fi-verde-muy-oscuro);
    margin-bottom: 0;
}

.department-link,
.carrera-link {
    text-decoration: none;
    color: var(--fi-verde-muy-oscuro);
    transition: color 0.2s ease;
}

.department-link:hover,
.carrera-link:hover {
    color: var(--fi-verde-base);
}

.department-meta,
.carrera-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--fi-gris);
}

.department-description {
    color: var(--fi-gris);
    font-size: 0.9rem;
}

.department-meta i,
.carrera-metadata i {
    color: var(--fi-verde-base);
    margin-right: 0.25rem;
}

/* --- FLECHA --- */
.department-arrow,
.carrera-arrow {
    flex-shrink: 0;
    margin-left: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(51, 204, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.department-arrow i,
.carrera-arrow i {
    color: var(--fi-verde-base);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.department-item-link:hover .department-arrow,
.carrera-item-link:hover .carrera-arrow {
    background: var(--fi-verde-base);
}

.department-item-link:hover .department-arrow i,
.carrera-item-link:hover .carrera-arrow i {
    color: #ffffff;
    transform: translateX(4px);
}

/* ================================================================
   PÁGINAS DE AUTORIDADES
   ================================================================ */

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.card-title {
    color: var(--fi-verde-oscuro);
    font-weight: 600;
}

.fi-intro {
    color: var(--fi-verde-texto);
    line-height: 1.6;
}

.fi-intro a {
    color: var(--fi-verde-oscuro);
    text-decoration: underline;
}

.fi-intro a:hover {
    color: var(--fi-verde-base);
}

.fi-placeholder-icon {
    background: linear-gradient(135deg, var(--fi-verde-claro), var(--fi-verde-base));
    color: white;
}

/* ================================================================
   BLOQUE DE AUTORIDADES - AuthoritySectionBlock
   ================================================================ */

.authority-section {
    margin-bottom: 3rem;
}

.authority-section .section-title {
    color: var(--fi-verde-muy-oscuro);
    border-left: 4px solid var(--fi-verde-base);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.authority-section .section-description {
    color: var(--fi-verde-texto);
    line-height: 1.6;
}

.authority-section .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    border-radius: 16px;
    background: white;
}

.authority-section .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.authority-section .card-title {
    color: var(--fi-verde-oscuro);
    font-weight: 600;
}

.authority-section .card-subtitle {
    color: var(--fi-verde-base);
    font-weight: 500;
}

.authority-section .card-text {
    color: var(--fi-verde-texto);
}

.authority-section .list-group-item {
    border-left: 3px solid var(--fi-verde-base);
    transition: background-color 0.2s ease;
}

.authority-section .list-group-item:hover {
    background-color: rgba(51, 204, 153, 0.05);
}

.authority-section .row.mb-4 {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.authority-section .row.mb-4:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.authority-section hr {
    border-color: rgba(51, 204, 153, 0.15);
}

/* ================================================================
   PÁGINAS DE NOTICIAS
   ================================================================ */

.news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 16px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.news-card .card-title a {
    transition: color 0.2s ease;
}

.news-card .card-title a:hover {
    color: var(--fi-verde-base) !important;
}

.news-content h2 {
    color: var(--fi-verde-oscuro);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.news-content p {
    color: var(--fi-verde-texto);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.news-content img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-quote {
    background: rgba(51, 204, 153, 0.05);
    border-left: 4px solid var(--fi-verde-base);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.news-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--fi-verde-oscuro);
    margin-bottom: 0.5rem;
}

.news-quote footer {
    color: var(--fi-verde-base);
}

/* ================================================================
   PÁGINAS DE CARRERAS Y ASIGNATURAS
   ================================================================ */

.career-sidebar-link {
    border-left: 3px solid var(--fi-verde-base);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.career-sidebar-link:hover {
    background-color: rgba(51, 204, 153, 0.05);
    transform: translateX(4px);
}

.subject-list-item {
    border-left: 3px solid var(--fi-verde-base);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.subject-list-item:hover {
    background-color: rgba(51, 204, 153, 0.05);
    transform: translateX(4px);
}

/* ================================================================
   BLOQUES DE DOCENTES
   ================================================================ */

.calendar-container {
    background: rgba(51, 204, 153, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
}

.calendar-container iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.link-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.link-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--fi-verde-claro), var(--fi-verde-base));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.link-icon-circle i {
    color: white;
    font-size: 2rem;
}

/* ================================================================
   BLOQUES DE INGRESANTES
   ================================================================ */

.step-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.step-number-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--fi-verde-base), var(--fi-verde-oscuro));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.fi-tabs .nav-link.active {
    color: var(--fi-verde-base);
    border-bottom: 2px solid var(--fi-verde-base);
}

/* ================================================================
   RESPONSIVE UNIFICADO
   ================================================================ */

@media (max-width: 576px) {
    .department-item,
    .carrera-item {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
    }

    .department-thumbnail-img,
    .carrera-thumbnail-img,
    .department-thumbnail-placeholder,
    .carrera-thumbnail-placeholder {
        width: 48px;
        height: 48px;
    }

    .department-thumbnail-placeholder i,
    .carrera-thumbnail-placeholder i {
        font-size: 1.3rem;
    }

    .department-name,
    .carrera-name {
        font-size: 0.95rem;
    }

    .department-meta,
    .carrera-metadata {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .department-arrow,
    .carrera-arrow {
        width: 32px;
        height: 32px;
    }

    .department-arrow i,
    .carrera-arrow i {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .department-item,
    .carrera-item {
        padding: 0.6rem 0.7rem;
    }

    .department-thumbnail-img,
    .carrera-thumbnail-img,
    .department-thumbnail-placeholder,
    .carrera-thumbnail-placeholder {
        width: 40px;
        height: 40px;
        margin-right: 0.6rem;
    }

    .department-name,
    .carrera-name {
        font-size: 0.85rem;
    }

    .department-meta,
    .carrera-metadata {
        font-size: 0.65rem;
        gap: 0.4rem;
    }

    .department-arrow,
    .carrera-arrow {
        width: 28px;
        height: 28px;
        margin-left: 0.4rem;
    }

    .department-arrow i,
    .carrera-arrow i {
        font-size: 0.75rem;
    }
}
/* ============================================ */
/* ÍNDICE DE SECRETARÍAS                        */
/* ============================================ */

.secretariat-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.secretariat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(51, 204, 153, 0.12);
    border-color: var(--fi-verde-base);
}

.secretariat-title-link {
    color: var(--fi-verde-muy-oscuro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.secretariat-title-link:hover {
    color: var(--fi-verde-base);
}

.secretariat-email-link {
    color: var(--fi-gris);
    text-decoration: none;
    transition: color 0.2s ease;
}

.secretariat-email-link:hover {
    color: var(--fi-verde-base);
    text-decoration: underline;
}

.secretariat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(51, 204, 153, 0.06);
    transition: all 0.25s ease;
    text-decoration: none;
}

.secretariat-arrow:hover {
    background: var(--fi-verde-base);
}

.secretariat-arrow:hover i {
    color: #ffffff !important;
}
/* ============================================ */
/* NOTICE BLOCK                                */
/* ============================================ */

.notice-block {
    background: rgba(51, 204, 153, 0.04);
    border-left: 4px solid var(--fi-verde-base);
}

.notice-icon-info {
    color: var(--fi-verde-base);
}

.notice-warning {
    background: rgba(245, 158, 11, 0.06);
    border-left-color: #f59e0b;
}

.notice-icon-warning {
    color: #f59e0b;
}

.notice-success {
    background: rgba(34, 197, 94, 0.06);
    border-left-color: #22c55e;
}

.notice-icon-success {
    color: #22c55e;
}

.notice-danger {
    background: rgba(239, 68, 68, 0.06);
    border-left-color: #ef4444;
}

.notice-icon-danger {
    color: #ef4444;
}

/* ============================================ */
/* SIMPLE TABLE BLOCK                                */
/* ============================================ */
/* table_block.css o en tu archivo principal */
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-responsive table thead {
    background: var(--fi-verde-muy-oscuro);
    color: #ffffff;
}

.table-responsive table th,
.table-responsive table td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.table-responsive table tbody tr:nth-child(even) {
    background: rgba(51, 204, 153, 0.04);
}

.table-responsive table tbody tr:hover {
    background: rgba(51, 204, 153, 0.08);
}

/* ============================================ */
/* SEPARADOR INSTITUCIONAL                     */
/* ============================================ */

/* ============================================ */
/* SEPARADOR INSTITUCIONAL                     */
/* ============================================ */

.fi-separator-line {
    border: 0;
    border-top: 2px solid var(--fi-verde-base);  /* ← Color sólido, más grueso */
    margin: 3.5rem auto;
    max-width: 180px;
    border-radius: 4px;
    opacity: 0.6;                                 /* ← Opacidad controlada */
    transition: all 0.3s ease;
}

.fi-separator-line:hover {
    opacity: 1;
    max-width: 220px;
}

@media (max-width: 768px) {
    .fi-separator-line {
        margin: 2.5rem auto;
        max-width: 120px;
        border-top-width: 2px;
    }
}

@media (max-width: 480px) {
    .fi-separator-line {
        margin: 2rem auto;
        max-width: 80px;
    }
}