/* css/main.css */
:root {
    --primary: #0077b6;
    --primary-dark: #005f93;
    --secondary: #00b4d8;
    --accent: #48b776;
    --danger: #ef476f;
    --bg-light: #f0f4f8;
    --text-dark: #1e293b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sidebar-width: 260px;
}

body { font-family: 'Poppins', sans-serif; margin: 0; background-color: var(--bg-light); color: var(--text-dark); min-height: 100vh; display: flex; }

.sidebar { width: var(--sidebar-width); background: var(--white); border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; }
.sidebar-logo { font-size: 1.5rem; color: var(--primary); font-weight: 700; padding: 25px; border-bottom: 1px solid #f1f5f9; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-links { list-style: none; padding: 20px 0; margin: 0; flex-grow: 1; }
.nav-link { display: flex; align-items: center; padding: 12px 25px; color: #64748b; text-decoration: none; font-weight: 500; transition: 0.2s; border-left: 4px solid transparent; }
.nav-link:hover, .nav-link.active { background: #f0f9ff; color: var(--primary); }
.nav-link.active { border-left-color: var(--primary); font-weight: 600; }
.nav-link i { width: 24px; text-align: center; margin-right: 10px; }

.main-content { flex-grow: 1; padding: 30px 40px; margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.page-title { font-size: 1.8rem; font-weight: 700; color: #0f172a; margin: 0; }

.btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #3a9760; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #f8fafc; text-align: left; padding: 16px; color: #475569; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 16px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.data-table tr:hover { background-color: #f8fafc; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: #e2e8f0; color: #475569; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 2000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: white; width: 95%; max-width: 600px; padding: 0; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); overflow: hidden; animation: modalSlide 0.3s ease-out; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;}
.modal-header { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.modal-body { padding: 24px; flex-grow: 1; overflow-y: auto; }
.modal-footer { padding: 16px 24px; background: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: #334155; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; box-sizing: border-box; transition: 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@keyframes modalSlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- WIZARD Y NUEVO DISEÑO MÓVIL (TÉCNICOS) --- */
.wizard-step { display: none; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.wizard-header-nav { display: flex; justify-content: space-between; padding: 15px 24px; background: #e2e8f0; font-size: 0.85rem; font-weight: 600; color: #64748b; }
.wizard-indicator { padding: 5px 10px; border-radius: 20px; }
.wizard-indicator.active { background: var(--primary); color: white; }

.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.task-card { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 30px 20px; text-align: center; cursor: pointer; transition: 0.2s; }
.task-card i { font-size: 3rem; margin-bottom: 15px; color: var(--primary); }
.task-card h4 { margin: 0; font-size: 1.1rem; color: #334155; }
.task-card:hover, .task-card.selected { border-color: var(--primary); background: #f0f9ff; }
.task-card.selected { box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1); }

/* Grid de Recepción 360 */
.grid-360 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; }
.slot-360 { border: 2px dashed #cbd5e1; border-radius: 12px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8fafc; cursor: pointer; position: relative; overflow: hidden; transition: 0.2s; }
.slot-360:hover { border-color: var(--primary); background: #f0f9ff; }
.slot-360 i { font-size: 2rem; color: #94a3b8; margin-bottom: 10px; }
.slot-360 span { font-size: 0.8rem; font-weight: 600; color: #64748b; text-align: center; }
.slot-360 img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.slot-360.has-photo { border-style: solid; border-color: var(--accent); }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
    .mobile-menu-btn { display: block !important; }
    .modal-content { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
    .wizard-header-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
}