/* General */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #F5F5F5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navbar institucional */
/* Franja superior */
.top-banner {
    background-color: #800000; /* rojo/marrón institucional */
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navbar institucional */
.institutional-navbar {
    background-color: #4B0082; /* morado institucional */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    .institutional-navbar .nav-link {
        color: #FFFFFF !important;
        font-weight: 500;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

        .institutional-navbar .nav-link:hover {
            color: #FFD700 !important; /* dorado elegante */
            background-color: rgba(255,255,255,0.1);
            border-radius: 4px;
        }

.dropdown-menu {
    background-color: #4B0082;
    border: none;
}

.dropdown-item {
    color: #FFFFFF;
}

    .dropdown-item:hover {
        background-color: #FFD700;
        color: #4B0082;
    }

.footer {
    background-color: var(--color-pie, #084581) !important; 
    color: #FFFFFF;
    font-size: 0.9rem;
}

    .footer a {
        color: #FFD700; /* dorado elegante */
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* Cards */
.card {
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-title {
    color: #003366;
    font-weight: bold;
}

.card-footer {
    background-color: #F5F5F5;
    font-size: 0.9em;
}

/* Carousel */
.carousel-caption h5 {
    background-color: rgba(0,51,102,0.7);
    color: #FFD700;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Tablas */
.table thead {
    background-color: #003366;
    color: #FFFFFF;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #F9F9F9;
}

/* Formularios */
.form-label {
    color: #003366;
    font-weight: 600;
}

.form-control:focus {
    border-color: #0055A4;
    box-shadow: 0 0 5px rgba(0,85,164,0.5);
}

/* Quitar subrayado en enlaces del menú */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
    text-decoration: none !important;
}

    /* Mantener estilo al pasar el mouse */
    .navbar-nav .nav-link:hover,
    .navbar-nav .dropdown-item:hover {
        text-decoration: none !important;
        color: var(--color-texto-hover); /* usa tu variable de hover */
    }

/* ============================================
   MEJORAS GLOBALES PARA MÓDULO DE CONFIGURACIÓN
   ============================================ */

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejorar focus en elementos */
:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Sombras mejoradas */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Inputs mejorados */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    transition: all 0.3s ease;
}

/* Botones mejorados globalmente */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Alert mejoradas */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
}

@@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejoras para mejor accesibilidad */
a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Responsive mejorado */
@@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Placeholder personalizado */
::placeholder {
    color: #999 !important;
    opacity: 0.7;
}

/* Scrollbar personalizado (solo en navegadores modernos) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d5acd;
}

/* Selección de texto */
::selection {
    background-color: #0d6efd;
    color: white;
}

/* Mejoras de espaciado */
.container-fluid > .row {
    margin-bottom: 20px;
}

/* Links con mejor contraste */
a {
    color: #0d6efd;
}

a:hover {
    color: #0d5acd;
}
