h1 {
    color: #0b3c5d;
}

textarea {
    resize: none;
}

/* tablas */
.table {
    background-color: #ffffff;
}

.table thead {
    background-color: #0b3c5d;
    color: #ffffff;
}

/* Encabezados tabla */
.table thead th {
    background-color: #0b3c5d;
    color: #ffffff;
}

/* hover tabla */
.table tbody tr:hover {
    background-color: #eef4fb !important;
}

/* Inputs */
.form-control:focus {
    border-color: #1d4e89;
    box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15);
}

label {
    color: #1f2d3d;
}

/* Avatar */
.avatar-circle {
    background-color: #1d4e89;
}

/* Notas header */
.nota-header {
    background-color: #102a43 !important;
}

/* Gradientes */
.bg-gradient {
    background: linear-gradient(135deg, #0b3c5d 0%, #1d4e89 100%);
}

/* Botones */
.btn-primary,
.btn-success {
    background-color: #1d4e89;
}

.btn-primary:hover,
.btn-success:hover {
    background-color: #163d6b;
}

.btn-warning:hover {
    background-color: #d9a300;
}

.btn-outline-success {
    border-color: #1d4e89;
    color: #1d4e89;
}

.btn-outline-success:hover {
    background-color: #0b3c5d;
    color: #fff;
}

/* Alertas */
.alert-info {
    border-left-color: #1d4e89;
}

.alert-success {
    border-left-color: #0b3c5d;
}

/* Cards */
.card-header.bg-success {
    background: linear-gradient(135deg, #0b3c5d 0%, #1d4e89 100%);
}

/* Badges */
.badge.bg-success.bg-opacity-10 {
    background-color: rgba(29, 78, 137, 0.12) !important;
}

/* Tablas hover */
.table.table-hover tbody tr:hover {
    background-color: #eef4fb;
}

/* Footer */

.footer {
    background: #0b3c5d;
}

/* Hearder */
.footer {
    background: #0b3c5d;
}

.border-footer {
    border-color: #1d4e89 !important;
}

.footer-badge {
    background: #1d4e89;
}

.footer-text {
    color: #cbd5e1;
}

.footer-link,
.footer-links a {
    color: #9fb3c8;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    border-color: #1d4e89;
}

.footer-small {
    color: #9fb3c8;
}

/* Navbar */
.navbar {
    background: #0b3c5d;
}

.nav-link:hover,
.nav-link.active {
    color: #5dade2;
}

.nav-link.nav-icon:hover {
    background: rgba(29, 78, 137, 0.2);
}

.navbar {
    background: #0b3c5d !important;
    border-bottom: 3px solid #1d4e89 !important;
}

.navbar-brand small {
    color: #9fb3c8;
}

.navbar .bi-mortarboard-fill {
    color: #5dade2;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #5dade2;
}

.nav-link.nav-icon:hover {
    background: rgba(93, 173, 226, 0.15);
    border-radius: 0.75rem;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Notas tabla */
.table thead.table-success th {
    background: #1d4e89;
}

/* Inputs focus */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 137, 0.15);
}

/* Backgrounds dashboard */
/* ===== DASHBOARD ===== */

/* Tarjetas */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover tarjeta */
.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Evitar borde azul raro (focus del link) */
.dashboard-card:focus,
.dashboard-card:active {
    outline: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Iconos */
.dashboard-card i {
    color: #1d4e89 !important;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Animación icono */
.dashboard-card:hover i {
    transform: scale(1.1);
    color: #0b3c5d !important;
}

/* Login */
/* link recuperar contraseña */
.forgot-link {
    color: #1d4e89;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #0b3c5d;
    text-decoration: underline;
}

/* texto institucional */
.login-info {
    color: #9fb3c8;
}

/* Menú Login*/
/* Contenedor principal para centrar el login en toda la pantalla */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b3c5d 0%, #1d4e89 100%);
    /* Usando tu gradiente */
}

/* Card de Login Profesional */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    /* animación */
}

/* Ajuste de los inputs para que se vean más limpios */
.login-card .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

/* Botón de ingreso con estilo moderno */
.btn-login {
    background: #1d4e89;
    color: white;
    border-radius: 10px;
    padding: 0.8rem;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0b3c5d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Fondo claro minimalista */
.bg-light-login {
    background-color: #f4f7f9 !important;
    /* Un gris casi blanco para dar contraste */
    min-height: 100vh;
}

/* Card con bordes sutiles para fondo blanco */
/* Ajuste para que la tarjeta sea más compacta y no desborde */
.login-card-white {
    background: #ffffff;
    border-radius: 15px !important;
    /* Reducimos el padding de 2.5rem a 1.5rem para ganar espacio vertical */
    padding: 1.5rem !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e0e6ed !important;

    /* Limitamos el ancho para que no se vea gigante al 100% */
    width: 100%;
    max-width: 350px;
    /* Bajamos de 400px a 350px */

    /* Esto ayuda a que si el contenido es mucho, no empuje el footer */
    margin: auto;
}

/* Achicamos un poco el logo y los textos para ahorrar espacio */
.login-card-white img {
    max-width: 80px !important;
    /* Logo un poco más pequeño */
    margin-bottom: 0.1rem !important;
}

.login-card-white h4 {
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
}

/* Hacemos el selector de perfiles más delgado */
.profile-selector {
    padding: 5px !important;
    margin-bottom: 0.2rem !important;
}

.profile-btn {
    padding: 5px 4px !important;
    font-size: 0.75rem !important;
    /* Texto más pequeño */
}

.profile-btn i {
    font-size: 1.25rem !important;
    /* Iconos más pequeños */
}

/* Contenedor del selector: forzamos que use el 100% del ancho disponible */
.profile-selector {
    display: flex;
    justify-content: space-between;
    /* Distribuye espacio entre botones */
    align-items: center;
    gap: 5px;
    background: #f1f5ff;
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 4rem;
    border: 1px solid #e0e6ed;
    width: 100%;
    /* Ocupa todo el ancho de la card del login */
}

/* Estilo de los botones: hacemos que cada uno crezca por igual */
.profile-btn {
    flex: 1;
    /* Esto hace que los 3 botones midan exactamente lo mismo */
    text-decoration: none;
    color: #1d4e89;
    padding: 10px 5px;
    /* Reducimos padding lateral para que no choquen */
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    /* Un pelín más pequeña para que quepan bien en móviles */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Icono arriba, texto abajo para mejor centrado */
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
}

/* Efecto Hover: ahora el movimiento es hacia arriba para no desarmar la fila */
.profile-btn:hover {
    background-color: #ffffff;
    color: #0b3c5d;
    transform: translateY(-3px);
    /* Movimiento hacia arriba sutil */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-color: #1d4e89;
}

/* Reset de estilos para botones que parecen links */
.profile-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 8px 2px;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    /* Color apagado cuando no está seleccionado */
}

/* Estilo cuando el perfil está seleccionado */
.profile-btn.active {
    background-color: #ffffff;
    color: #1d4e89;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #1d4e89;
}

.profile-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.profile-btn span {
    font-size: 0.75rem;
    font-weight: 700;
}

.no-resize {
    resize: none;
}

/* CONTENEDOR USUARIO */
.user-navbar {
    color: #fff;
}

/* AVATAR */
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 18px;
    color: #fff;
}

/* INFO */
.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* NOMBRE */
.user-name {
    font-size: 14px;
    font-weight: 600;
}

/* PERFIL */
.user-role {
    font-size: 12px;
    color: #9fb3c8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ICONOS NAV */
.nav-icon {
    color: #fff !important;
    transition: all 0.2s ease;
}

.nav-icon:hover {
    color: #9fb3c8 !important;
    transform: scale(1.15);
}

/* CONTENEDOR */
.year-actions {
    gap: 10px;
}

/* AÑO (ESTILO TARJETA SUAVE) */
.year-box {
    background: #e7f0fb;
    color: #1d4e89;
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* BOTÓN (COHERENTE CON CARDS) */
.btn-year {
    background: #fff;
    border: 2px solid #1d4e89;
    color: #1d4e89;
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-year:hover {
    background: #1d4e89;
    color: #fff;
    transform: translateY(-2px);
}

.navbar-custom {
    background: #0b3c5d;
    border-bottom: 3px solid #1d4e89;
}

/* LOGO */
.logo {
    width: 50px;
}

/* TEXTO HEADER */
.header-text {
    line-height: 1.1;
}

.title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.subtitle {
    font-size: 11px;
    color: #9fb3c8;
    letter-spacing: 0.3px;
}

/* USUARIO */
.user-avatar {
    width: 40px;
    height: 40px;
    background: #1d4e89;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 16px;
    color: #9fb3c8;
    margin-top: 4px;
}

/* AÑO */
.year-box {
    background: #e9f0f7;
    color: #0b3c5d;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BOTÓN */
.btn-year {
    background: white;
    color: #0b3c5d;
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
}

/* ICONOS */
.nav-icon {
    color: white;
    font-size: 20px;
}

.dashboard-card {
    transition: all 0.2s ease;
    border-radius: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.text-primary-custom {
    color: #0d6efd;
}

.libro-card {
    min-height: 350px;
    /* altura vertical */
    border-radius: 24px;
    transition: all 0.25s ease;
}

.libro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .08) !important;
}

.form-select {
    height: 48px;
    border-radius: 14px;
}