/* ==========================================================================
   ESTILOS MODERNOS Y PRÁCTICOS - HIDRÁULICA HP S.A.C.
   Diseñado específicamente con alta legibilidad y botones táctiles grandes.
   ========================================================================== */

:root {
    --hp-primary: #0f2d4a;
    --hp-primary-hover: #081d31;
    --hp-accent: #f59e0b;
    --hp-accent-hover: #d97706;
    --hp-bg: #f8fafc;
    --hp-card-bg: #ffffff;
    --hp-border: #e2e8f0;
    --hp-text: #1e293b;
    --hp-text-muted: #64748b;
    --hp-success: #10b981;
    --hp-danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--hp-text);
    background-color: var(--hp-bg);
    min-height: 100vh;
}

/* Sidebar Moderno */
.hp-sidebar {
    width: 260px;
    background-color: var(--hp-primary);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    transition: all 0.25s ease-in-out;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.hp-sidebar .brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-sidebar .nav-link {
    color: #cbd5e1;
    font-size: 14.5px;
    font-weight: 500;
    padding: 12px 18px;
    margin: 3px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

.hp-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hp-sidebar .nav-link.active {
    color: #ffffff;
    background: var(--hp-accent);
    color: #000000;
    font-weight: 700;
}

.hp-sidebar .nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 14px 22px 6px;
    font-weight: 700;
}

/* Contenido Principal */
.hp-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .hp-sidebar {
        transform: translateX(-100%);
    }
    .hp-sidebar.show {
        transform: translateX(0);
    }
    .hp-main {
        margin-left: 0;
    }
}

/* Tarjetas Limpias */
.hp-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Botones Grandes Táctiles para Usuario Mayor */
.btn-hp-primary {
    background-color: var(--hp-primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
}
.btn-hp-primary:hover {
    background-color: var(--hp-primary-hover);
    color: #ffffff;
}

.btn-hp-accent {
    background-color: var(--hp-accent);
    color: #000000;
    border: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
}
.btn-hp-accent:hover {
    background-color: var(--hp-accent-hover);
    color: #000000;
}

/* Badges de Colores */
.bg-indigo { background-color: #6366f1 !important; }
.bg-orange { background-color: #f97316 !important; }
.bg-teal { background-color: #14b8a6 !important; }
.bg-purple { background-color: #a855f7 !important; }

/* Flujo de Estados Stepper */
.workflow-step {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.workflow-step.current {
    background: var(--hp-primary);
    color: #ffffff;
    border-color: var(--hp-primary);
}
.workflow-step.completed {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

/* Documentos Imprimibles */
@media print {
    .no-print { display: none !important; }
    .hp-sidebar { display: none !important; }
    .hp-main { margin: 0 !important; padding: 0 !important; }
    body { background: #ffffff !important; font-size: 12px !important; }
    .hp-print-page { border: none !important; box-shadow: none !important; padding: 0 !important; width: 100% !important; }
}
