body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f1f5f9;
    color: #1e293b;
}

header {
    background: #0f172a;
    color: white;
    padding: 15px 30px;
}

h1 { margin: 0; }

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.kpi {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    text-align: center;
}

.kpi span {
    font-size: 28px;
    font-weight: bold;
    color: #2563eb;
}

.filtros {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.filtros input,
.filtros select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex: 1;
}

/* Estilos para la sección de combos */
.combos-info {
    padding: 0 20px 20px;
}

.combo-status {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.combo-status span {
    font-size: 16px;
}

.combo-status strong {
    font-size: 24px;
    color: #2563eb;
    margin: 0 5px;
}

.btn-combo {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-combo:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-combo:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.mensaje-combo {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.mensaje-combo.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.mensaje-combo.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 20px;
    padding: 0 20px;
}

.tabla-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #1e293b;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #e2e8f0;
    cursor: pointer;
}

/* Estilo para checkbox */
.checkbox-combo {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.checkbox-combo:disabled {
    accent-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Clases de color para la fila */
.verde { background: #dcfce7; }
.amarillo { background: #fef9c3; }
.rojo { background: #fee2e2; }

.paginador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #f8fafc;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: 500;
}
button:hover {
    background: #1d4ed8;
}
button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.mapa-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    height: fit-content;
}

#mapa {
    height: 700px;
    width: 100%;
    z-index: 1;
}