/* EASYCOMPRAS - HOME CSS - Color: Azul #0ea5e9 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #0f172a; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

.hero { position: relative; background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 32px; margin-bottom: 24px; overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 14px; background: rgba(14,165,233,0.1); color: #0284c7; border: 1px solid rgba(14,165,233,0.2); border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.hero-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.hero-subtitle { color: #64748b; font-size: 1rem; margin-bottom: 24px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-blob { position: absolute; width: 300px; height: 300px; right: -50px; bottom: -100px; background: radial-gradient(circle at 30% 30%, rgba(14,165,233,0.3), transparent 50%); filter: blur(40px); pointer-events: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,0.4); }
.btn-secondary { background: linear-gradient(135deg, #0f172a, #1e293b); color: white; }
.btn-outline { background: white; color: #0284c7; border: 2px solid #e2e8f0; }
.btn-outline:hover { border-color: #0ea5e9; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 16px; transition: all 0.2s; }
.kpi-card:hover { transform: translateY(-2px); border-color: #0ea5e9; box-shadow: 0 8px 24px rgba(14,165,233,0.1); }
.kpi-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.kpi-icon.orange { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.kpi-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.kpi-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.kpi-icon.amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.kpi-value { font-size: 1.75rem; font-weight: 800; }
.kpi-label { font-size: 0.85rem; color: #64748b; margin-top: 4px; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 24px; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.card-header h2 { font-size: 1rem; font-weight: 700; }
.link-ver-todos { color: #0ea5e9; text-decoration: none; font-size: 0.875rem; font-weight: 500; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 16px; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px; text-decoration: none; transition: all 0.2s; }
.quick-action:hover { border-color: #0ea5e9; border-style: solid; background: white; transform: translateY(-2px); }
.qa-icon { width: 44px; height: 44px; background: rgba(14,165,233,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #0ea5e9; }
.qa-icon svg { width: 22px; height: 22px; }
.qa-title { display: block; font-weight: 600; color: #0f172a; font-size: 0.9rem; }
.qa-subtitle { display: block; font-size: 0.8rem; color: #64748b; }

.proveedores-list { padding: 16px; }
.proveedor-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 8px; }
.proveedor-item:last-child { margin-bottom: 0; }
.proveedor-icon { width: 36px; height: 36px; background: rgba(14,165,233,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #0ea5e9; font-weight: 700; font-size: 0.8rem; }
.proveedor-info { flex: 1; }
.proveedor-nombre { font-weight: 600; font-size: 0.85rem; }
.proveedor-ordenes { font-size: 0.75rem; color: #64748b; }
.empty-small { padding: 24px; text-align: center; color: #94a3b8; }

.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.data-table th { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; background: #f8fafc; }
.data-table tbody tr:hover { background: #f8fafc; }
.empty-state { text-align: center; padding: 40px !important; }
.empty-content { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #94a3b8; }

.badge-estado { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-estado.borrador { background: rgba(148,163,184,0.2); color: #64748b; }
.badge-estado.enviada { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-estado.parcial { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-estado.recibida { background: rgba(16,185,129,0.1); color: #059669; }

.toast-container { position: fixed; top: 24px; right: 24px; z-index: 3000; }
.toast { padding: 16px 20px; background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border-left: 4px solid #0ea5e9; margin-bottom: 12px; }

@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .kpi-grid { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: 1fr; } }
