/* ============================================= */
/* ALTANTO - SISTEMA DE CONTROL ESCOLAR           */
/* Diseño moderno unificado                       */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #f1f5f9;
}

/* ========== HEADER MODERNO ========== */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #64748b;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.nav a:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
}

.nav a:last-child:hover {
    background: #dc2626;
}

/* ========== CONTENEDOR ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ========== TARJETAS ========== */
.card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.card h1, .card h2, .card h3 {
    color: white;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.2rem;
    border-left: 3px solid #4f46e5;
    padding-left: 12px;
}

/* ========== FORMULARIOS ========== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.8rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* ========== BOTONES ========== */
button, .btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ========== TABLAS ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 20px;
    overflow: hidden;
}

th {
    background: rgba(79, 70, 229, 0.3);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover td {
    background: rgba(79, 70, 229, 0.1);
}

/* ========== GRIDS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========== ALERTAS ========== */
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* ========== NÚMEROS GRANDES ========== */
.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== TEXTO CENTRADO ========== */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        justify-content: center;
    }
    .card {
        padding: 18px;
    }
}