:root {
    --primary-dark: #002d57;
    --primary-blue: #004481;
    --accent-blue: #1464A5;
    --danger: #d32f2f;
    --warning: #ff9800;
    --success: #2e7d32;
    --light-bg: #f4f7f9;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background-color: var(--light-bg); color: #333; }

/* Navegación con Logo Link */
.tiso-nav { background: var(--primary-dark); color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.nav-left a { text-decoration: none; color: white !important; display: flex; align-items: center; gap: 10px; transition: 0.2s; }
.nav-left a:hover { opacity: 0.8; transform: scale(1.01); }

/* Dashboard Layout */
.main-container { max-width: 1400px; margin: 25px auto; padding: 0 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; }
.card-kpi { background: white; padding: 20px; border-radius: 12px; text-align: center; border-top: 5px solid var(--primary-blue); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card-kpi h3 { font-size: 0.8rem; color: #666; margin-bottom: 10px; }
.card-kpi .value { font-size: 2.2rem; font-weight: bold; color: var(--primary-dark); }

/* Timeline Mapeo */
.timeline-card { background: white; padding: 20px; border-radius: 12px; margin-bottom: 25px; text-align: center; }
.timeline-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 15px 0; }
.timeline-segment { flex: 1; }
.yellow { background: #ffc107; } .orange { background: #fd7e14; } .red { background: #dc3545; }

/* Tablas y Botones */
.card-table { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.tiso-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.tiso-table th { background: #f8f9fa; padding: 12px; text-align: left; font-size: 0.8rem; color: #666; border-bottom: 2px solid #eee; }
.tiso-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.status-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.btn { padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; font-weight: bold; text-decoration: none; font-size: 0.8rem; }
.btn-primary { background: var(--primary-blue); color: white; }
.btn-outline { background: transparent; border: 1px solid white; color: white; }