/* ============================================
   ESTILOS MODERNOS PARA UMSJEC
   Diseño atractivo para jóvenes
   ============================================ */

:root {
    /* Paleta juvenil: cyan/teal - fresca y moderna para público joven */
    --primary-gradient: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
    --primary-solid: #0891b2;
    --primary-dark: #0e7490;
    --accent-warm: #06b6d4;
    --secondary-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --dark-gradient: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    --light-bg: #f0fdfa;
    --card-shadow: 0 4px 24px rgba(6, 182, 212, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(6, 182, 212, 0.15);
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0fdfa;
    min-height: 100vh;
    color: #1e293b;
}

/* ============================================
   NAVEGACIÓN MODERNA
   ============================================ */

.navbar-modern {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1030;
}

/* Navbar collapse - permitir que el dropdown se muestre */
.navbar-modern .navbar-collapse {
    overflow: visible !important;
}

/* Dropdown del usuario - visible sobre hero y contenido */
.navbar-modern .dropdown-menu {
    z-index: 1050 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 14px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: #fff !important;
    min-width: 240px;
}

.navbar-modern .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
}

.navbar-modern .dropdown-item {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #212529 !important;
    background: transparent !important;
    white-space: nowrap;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.navbar-modern .dropdown-item:hover {
    background: #f0fdfa !important;
    color: #0891b2 !important;
}

.navbar-modern .dropdown-item button,
.navbar-modern .dropdown-item[type="submit"] {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.navbar-modern .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

.navbar-modern .dropdown-toggle {
    cursor: pointer;
}

.navbar-modern .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    transition: all 0.35s ease;
}

.navbar-modern .navbar-brand:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navbar-modern .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.navbar-modern .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.navbar-modern .nav-link::after {
    display: none;
}

/* Botón Registrarse en navbar - efecto flotante destacado */
.navbar-modern .nav-link.btn-light {
    background: white !important;
    color: #0e7490 !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-modern .nav-link.btn-light:hover {
    background: white !important;
    color: #0891b2 !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ============================================
   CARDS MODERNAS
   ============================================ */

.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.card-modern .card-body {
    padding: 2rem;
}

.card-modern .card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-modern .card-text {
    color: #6c757d;
    line-height: 1.7;
}

/* ============================================
   BOTONES MODERNOS
   ============================================ */

.btn-modern {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-modern {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.4);
    color: white;
}

.btn-secondary-modern {
    background: var(--secondary-gradient);
    color: white;
}

.btn-secondary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
    color: white;
}

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

.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-card .icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* ============================================
   FORMULARIOS MODERNOS
   ============================================ */

.form-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.form-modern .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-modern .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-modern .form-control:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

/* ============================================
   FOOTER MODERNO
   ============================================ */

.footer-modern {
    background: var(--dark-gradient);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-modern p {
    margin: 0;
    opacity: 0.9;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ADMIN LAYOUT ESTILOS
   ============================================ */

.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .sidebar-header {
    background: #1a252f;
    padding: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #34495e;
    color: white;
    padding-left: 2rem;
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

.admin-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem;
}

.admin-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.admin-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-user-name {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* En móvil el header se apila y el bloque usuario + Salir va abajo completo */
@media (max-width: 576px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .admin-header-left {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
    }
    .admin-header h1 {
        font-size: 1.35rem;
    }
    .admin-header-right {
        justify-content: space-between;
        padding-top: 0.5rem;
    }
    .admin-user-name {
        white-space: normal;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */

.min-vh-50 {
    min-height: 50vh;
}

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

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .card-modern .card-body {
        padding: 1.5rem;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .admin-sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
    
    body.admin-sidebar-open {
        overflow: hidden;
    }
    
    .admin-mobile-menu-btn {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1030;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .admin-mobile-menu-btn:hover {
        background: #34495e;
        color: white;
    }
    
    .admin-sidebar-close {
        text-decoration: none;
        opacity: 0.9;
    }
    
    .admin-sidebar-close:hover {
        opacity: 1;
    }
    
    .admin-content {
        padding-top: 4rem;
    }
}
