:root {
    --bg: #0f172a;
    --card: #1e293b;
    --accent: #38bdf8;
    --success: #10b981;
    --danger: #ef4444;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 span {
    color: var(--accent);
    font-weight: 800;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
    box-shadow: var(--shadow);
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.full-width {
    grid-column: 1 / -1;
}

input,
select {
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-primary {
    background: var(--accent);
    color: #0f172a;
    border: none;
    margin-top: 5%;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: #7dd3fc;
}

.btn-secondary {
    background: #334155;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.btn-danger {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

/* NUEVOS ESTILOS: Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    margin-top: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: var(--text);
}

.stat-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1e293b 0%, #111a2e 100%);
}

.stat-card.featured p {
    color: var(--accent);
}

.stat-card.success {
    border-color: var(--success);
}

.stat-card.success p {
    color: var(--success);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.progress-card {
    text-align: center;
}

.progress-container {
    background: #0f172a;
    border-radius: 20px;
    height: 16px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent), var(--success));
    height: 100%;
    width: 0%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gráfico */
.chart-container {
    height: 400px;
    position: relative;
}

.hidden {
    display: none;
}

.actions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

/* Sección Educativa */
.education-section h3 {
    color: var(--accent);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.edu-item {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.edu-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }

    .stat-card p {
        font-size: 1.8rem;
    }
}

