:root {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-bottom: 40px;
}

.navbar {
    background: #0f172a;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo span {
    color: #38bdf8;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.status-badge {
    font-size: 0.85rem;
    background: #1e293b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

/* DROPZONE GRID */
.dropzone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.dropzone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dz-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.dz-text strong { display: block; font-size: 0.95rem; }
.dz-text span { font-size: 0.75rem; color: var(--text-muted); }
.file-name { display: block; font-size: 0.75rem; margin-top: 0.5rem; color: var(--primary); font-weight: bold; }

.btn-primary {
    grid-column: 1 / -1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }

/* KPIS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card { text-align: center; padding: 1.2rem; }
.kpi-title { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.kpi-value { font-size: 1.8rem; }
.kpi-success .kpi-value { color: var(--success); }
.kpi-warning .kpi-value { color: var(--warning); }
.kpi-danger .kpi-value { color: var(--danger); }

/* SOLAPAS Y TABLA */
.hidden { display: none; }

.tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

th { background: #f8fafc; color: var(--text-muted); font-weight: 600; }
tr:hover { background: #f1f5f9; }