/* =========================================
   1. VARIABLES Y RESET GLOBALES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Colores Fuxion */
    --fuxion-blue: #1466B8; 
    --fuxion-red: #D62828;  
    --fuxion-dark: #121A2F; 
    --fuxion-gold: #E5B96F; 
    
    /* UI / Fondos */
    --bg-body: #F4F7FE;     
    --bg-surface: #FFFFFF;  
    --text-main: #334155;   
    --text-muted: #64748B;  
    
    /* Sombras y Bordes */
    --shadow-sm: 0 2px 4px rgba(18, 26, 47, 0.05);
    --shadow-md: 0 8px 20px rgba(18, 26, 47, 0.08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--fuxion-dark);
    font-weight: 600;
}

/* =========================================
   2. BOTONES Y FORMULARIOS GLOBALES
   ========================================= */
.btn {
    font-family: 'Poppins', sans-serif;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.btn-tech {
    background-color: var(--fuxion-blue);
    color: white;
}

.btn-tech:hover {
    background-color: #105296;
    box-shadow: 0 4px 12px rgba(20, 102, 184, 0.3);
}

.btn-edu {
    background-color: var(--fuxion-red);
    color: white;
}

.btn-edu:hover {
    background-color: #B32020;
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.3);
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--fuxion-blue);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(20, 102, 184, 0.1);
}

/* =========================================
   3. PANTALLA DE LOGIN (PROPORCIÓN 50/50 ESTRICTA)
   ========================================= */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-body);
}

.login-left, .login-right {
    width: 50%; /* Mitad exacta para cada lado */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-left {
    background: linear-gradient(135deg, var(--fuxion-blue) 0%, var(--fuxion-dark) 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Patrón de fondo sutil */
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 20%);
    background-size: 20px 20px;
    pointer-events: none;
}

.login-left img.fuxi-login {
    max-width: 220px;
    z-index: 1;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.3));
    margin-bottom: 25px;
}

.login-left h1 {
    color: white;
    font-size: 2.5rem;
    z-index: 1;
}

.login-left p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    z-index: 1;
    margin-top: 10px;
    max-width: 400px;
}

.login-right {
    padding: 40px;
}

/* La tarjeta blanca del formulario */
.login-form-box {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
}

.logo-hor {
    max-width: 200px;
    display: block;
    margin: 0 auto 40px auto; /* Centrado automático */
}

/* =========================================
   4. DASHBOARD Y TARJETAS (PANEL ADMIN)
   ========================================= */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 24px;
    border-left: 5px solid var(--fuxion-blue);
}

.stat-card.edu-card {
    border-left-color: var(--fuxion-red);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-right: 20px;
}

.tech-icon {
    background-color: rgba(20, 102, 184, 0.1);
    color: var(--fuxion-blue);
}

.edu-icon {
    background-color: rgba(214, 40, 40, 0.1);
    color: var(--fuxion-red);
}

/* =========================================
   5. DISEÑO RESPONSIVE (MÓVILES)
   ========================================= */
@media (max-width: 900px) {
    /* Login en Móvil */
    .login-container {
        flex-direction: column; /* Apila los paneles verticalmente */
        height: auto;
        min-height: 100vh;
    }
    .login-left, .login-right {
        width: 100%; /* Ocupan todo el ancho */
    }
    .login-left {
        padding: 50px 20px;
    }
    .login-form-box {
        padding: 30px 20px;
        box-shadow: none; /* Diseño más plano en celular */
        border: 1px solid #E2E8F0;
    }

    /* Dashboard en Móvil */
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}