body {
    background-color: #f5f7fa;
}

.logo-nav {
    max-height: 60px !important;
}

/* Select2 igual a altura de Bootstrap */
.select2-container--default .select2-selection--single {
    height: 2.25rem !important;
    padding: 0 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

.select2-selection__rendered {
    line-height: 2.25rem !important;
    padding-left: 0 !important;
}

.select2-selection__arrow {
    height: 2.25rem !important;
    right: 0.75rem !important;
}

.select2-container {
    width: 100% !important;
}

/* BANNER DEL DASHBOARD */
.dashboard-banner {
    background: #0d6efd;
    /* azul institucional */
    padding: 40px 0;
    /* alto del banner */
    text-align: center;
    /* centrar contenido */
    border-radius: 6px;
    /* opcional, más suave */
    margin-bottom: 25px;
}

.dashboard-banner img {
    max-width: 220px;
    /* tamaño ideal */
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.25));
}


.dashboard-banner,
.header-profesor {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #0d6efd !important;
    /* azul institucional */
    height: 220px !important;
    padding: 20px 0 !important;
}


/* ================== TESTING UI ================== */
.testing-banner {
    background: #dc3545;
    color: #ffffff;
    text-align: center;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.testing-ribbon {
    position: fixed;
    top: 28px;
    right: -50px;
    background: #dc3545;
    color: #ffffff;
    padding: 10px 80px;
    font-size: 16px;
    font-weight: 900;
    transform: rotate(45deg);
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==============================================*/

/* Permitir que los dropdown salgan de la tabla */
.table-responsive {
    overflow: visible !important;
}

/* Asegurar que el dropdown quede arriba */
.dropdown-menu {
    z-index: 1055;
    /* mayor que la tabla */
}


/* ======================================================
   HOME - HERO / CARRUSEL INSTITUCIONAL
   ====================================================== */

.hero-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-img {
    height: 65vh;
    /* antes 85vh */
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-text {
    top: 30%;
    bottom: auto;
}

.hero-text .btn {
    padding: 8px 22px;
    font-size: 0.95rem;
    border-radius: 22px;
}

.hero-text h1 {
    font-size: 2.2rem;
    /* antes 2.8 */
}

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


/* ================== SOCIAL MEDIA ================== */
footer .social-icons a:hover {
    color: #0d6efd;
    text-decoration: none;
}

main {
    margin-bottom: 0 !important;
}

main> :last-child {
    margin-bottom: 0 !important;
}

footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
    line-height: 1.6;
}

footer a {
    text-decoration: none !important;
}

footer .social-icons a {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

footer .social-icons a i {
    text-decoration: none !important;
}

footer a:hover i {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* AVATAR */

/* =========================
   AVATAR PROFESIONAL
   ========================= */

.avatar-img {
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.avatar-circle {
    border-radius: 50%;
    background-color: #6c757d;
    /* gris elegante */
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}

/* === FORZAR ESTILO SIDEBAR DIRECTIVO === */
#directivo-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e0e0e0 !important;
}

#directivo-sidebar .nav-link {
    color: #2c2c2c !important;
}

#directivo-sidebar .nav-link:hover {
    background-color: #e9ddff !important;
    color: #6f42c1 !important;
}

#directivo-sidebar .nav-link.active {
    background-color: #6f42c1 !important;
    color: #fff !important;
}

#directivo-content {
    background: #f5f6fa !important;
}

.nav-link.disabled {
    color: #aaa !important;
    /* gris */
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.nav-link.disabled i {
    opacity: 0.6;
}