/*
 * Fecha: 2026-01-09 16:45
 * Archivo: styles.css
 * Descripción: Estilos globales del sistema AutoGestión CAPLaR
 * Cambio: Eliminados estilos de reemplazo de popups jQuery UI
 * Autor: Alejandro J. Elías -- Director -- DeveloperTeam Software Solutions
 * Requiere: Bootstrap 5 CSS
 */

/* ========== VARIABLES CSS - PALETA NAVY PROFESIONAL ========== */
:root {
    /* Colores Primarios - Azul Navy (como matriculados.html) */
    --primary-darker: #001a33;
    --primary-dark: #002244;
    --primary: #003366;
    --primary-light: #004080;
    --primary-lighter: #0055a5;

    /* Colores Secundarios */
    --secondary-dark: #1a252f;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --secondary-lighter: #5d6d7e;

    /* Acentos */
    --accent: #28a745;
    --accent-light: #34ce57;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --gradient-header: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --gradient-footer: linear-gradient(135deg, var(--secondary-dark) 0%, var(--gray-900) 100%);
    --gradient-card-hover: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Bordes */
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 15px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
    background: var(--gradient-header);
    box-shadow: var(--shadow-xl);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--white) !important;
}

.navbar-brand img {
    filter: brightness(1.1);
}

/* Nav Links */
.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    min-width: 260px;
    background: var(--white);
}

.dropdown-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 1rem 0.35rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gradient-card-hover);
    color: var(--white);
}

.dropdown-item:hover i {
    color: var(--white) !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.dropdown-divider {
    margin: 0.35rem 0;
    border-color: var(--gray-200);
}

.dropdown-menu-instructivos {
    min-width: 300px;
}

/* User Badge Mobile */
.user-badge-mobile {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    background: var(--white) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* ========== HERO SECTION ========== */
/* Fecha: 2026-01-17 - Aumentado padding para mostrar contenido completo */
.hero-section {
    background: var(--gradient-header);
    color: var(--white);
    /* padding: 3.5rem 0; */
    position: relative;
    /* overflow: hidden; */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
}

.user-welcome {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========== MAIN CONTENT ========== */
main {
    flex: 1 0 auto;
    background-color: var(--gray-50);
    padding: 2rem 0;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    color: inherit;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.feature-icon i {
    font-size: 1.35rem;
    color: var(--white);
}

.feature-card h5 {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.82rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ========== BUTTONS ========== */
.quick-action-btn {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    background: var(--accent-light);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.55rem 1.35rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary-custom:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* ========== FOOTER ========== */
.site-footer {
    flex-shrink: 0;
    background: var(--gradient-footer);
    color: var(--gray-400);
    padding: 0;
    margin-top: auto;
    width: 100%;
}

.footer-main {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand img {
    height: 32px;
    margin-right: 0.6rem;
    filter: brightness(1.1);
}

.footer-brand-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 1rem 0;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* Session Info */
.session-info {
    background: rgba(40, 167, 69, 0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.session-info i {
    margin-right: 0.4rem;
    color: var(--accent);
}

.session-info .countdown {
    font-weight: 700;
    color: var(--white);
    margin-left: 0.25rem;
}

/* ========== SEARCH BOX (como matriculados.html) ========== */
.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--secondary);
}

/* ========== UTILITIES ========== */
.text-primary-custom {
    color: var(--primary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--gradient-header);
        margin: 0.5rem -0.75rem -0.6rem;
        padding: 1rem;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .dropdown-header {
        color: rgba(255, 255, 255, 0.6);
    }

    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.45rem;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .footer-main {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .row > div {
        margin-bottom: 0.5rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }

    .feature-icon i {
        font-size: 1.2rem;
    }
}

