/* ──────────────────────────────────────────────────────────────────────
   HanaPOS — Layout base (sidebar + main)
   Bootstrap 5 + tipo AdminLTE, pero hecho a medida sin overhead.
   ────────────────────────────────────────────────────────────────────── */

:root {
    --hp-navy:    #062E52;
    --hp-accent:  #00d4ff;
    --hp-border:  #e2e8f0;
    --hp-muted:   #6b7280;
    --hp-bg:      #f8fafc;
    --hp-sidebar-w: 240px;
    --hp-topbar-h:  64px;
}

* { box-sizing: border-box; }

body.hp-body {
    margin: 0;
    background: var(--hp-bg);
    /* Poppins coherente con la tienda WC. Fallback a system fonts si Google Fonts no carga. */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── Typography scale unificada ─────────────────────────────────── */
.hp-body h1, .hp-body h2, .hp-body h3, .hp-body h4, .hp-body h5, .hp-body h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--hp-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.hp-body h1 { font-size: 1.75rem; }
.hp-body h2 { font-size: 1.45rem; }
.hp-body h3 { font-size: 1.2rem; }
.hp-body h4 { font-size: 1.05rem; }
.hp-body h5 { font-size: 0.95rem; }
.hp-body h6 { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hp-muted); font-weight: 700; }

.hp-body p { margin-bottom: 0.75rem; }
.hp-body code, .hp-body .text-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85em;
    color: var(--hp-navy);
    background: rgba(0, 212, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ── Wrapper grid ────────────────────────────────────────────────── */
.hp-wrapper {
    display: grid;
    grid-template-columns: var(--hp-sidebar-w) 1fr;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.hp-sidebar {
    background: var(--hp-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.hp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hp-brand-mark {
    width: 36px; height: 36px;
    background: var(--hp-accent);
    color: var(--hp-navy);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}

.hp-brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.hp-nav {
    flex: 1;
    padding: 0.6rem 0.4rem 1rem;
    display: flex; flex-direction: column;
}

.hp-nav-section {
    color: rgba(255,255,255,.4);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1rem 0.85rem 0.45rem;
}

.hp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.55rem 0.85rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    border-radius: 8px;
    margin: 1px 0;
    font-size: 0.92rem;
    transition: background .15s, color .15s;
}

.hp-nav-item:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.hp-nav-item.active {
    background: rgba(0,212,255,.15);
    color: #fff;
}

.hp-nav-item i { font-size: 1.05rem; width: 20px; text-align: center; }

.hp-sidebar-foot {
    padding: 0.8rem 0.9rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-user { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hp-user-avatar {
    width: 36px; height: 36px;
    background: rgba(0,212,255,.2);
    color: var(--hp-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.hp-user-info { min-width: 0; }
.hp-user-name { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-user-role { font-size: 0.72rem; color: rgba(255,255,255,.5); text-transform: capitalize; }

.hp-logout {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.hp-logout:hover { background: rgba(220,38,38,.2); }

/* ── Main column ─────────────────────────────────────────────────── */
.hp-main {
    padding: 1.5rem 1.75rem 3rem;
    min-width: 0;
}

@media (max-width: 768px) {
    .hp-wrapper { grid-template-columns: 1fr; }
    .hp-sidebar { position: relative; height: auto; }
    .hp-main { padding: 1rem; }
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.hp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--hp-border);
}

.hp-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin: 0;
}

.hp-page-sub {
    color: var(--hp-muted);
    font-size: 0.88rem;
    margin: 4px 0 0;
}

.hp-topbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hp-flash {
    margin-bottom: 1.25rem;
}

/* ── Cards / tarjetas KPI ────────────────────────────────────────── */
.hp-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.hp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hp-kpi {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: 14px;
}
.hp-kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: rgba(0,212,255,.12);
    color: var(--hp-navy);
}
.hp-kpi-info { display: flex; flex-direction: column; }
.hp-kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--hp-navy); line-height: 1; }
.hp-kpi-label { font-size: 0.78rem; color: var(--hp-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Tablas (DataTables) ─────────────────────────────────────────── */
.hp-table-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    overflow: hidden;
}
.hp-table-card .dataTables_wrapper { padding: 1rem 1.25rem; }
.hp-table-card table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--hp-border) !important;
    color: var(--hp-navy);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.hp-table-card table.dataTable tbody td {
    vertical-align: middle;
    font-size: 0.92rem;
}
.hp-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hp-status-PENDING    { background: #fef3c7; color: #92400e; }
.hp-status-PROCESSING { background: #dbeafe; color: #1e40af; }
.hp-status-DONE       { background: #d1fae5; color: #065f46; }
.hp-status-FAILED     { background: #fee2e2; color: #991b1b; }
.hp-status-SKIPPED    { background: #f1f5f9; color: #475569; }

/* Iconos KPI de la cola de sincronización */
.hp-kpi-icon-PENDING    { background: #fef3c7; color: #92400e; }
.hp-kpi-icon-PROCESSING { background: #dbeafe; color: #1e40af; }
.hp-kpi-icon-DONE       { background: #d1fae5; color: #065f46; }
.hp-kpi-icon-FAILED     { background: #fee2e2; color: #991b1b; }
.hp-kpi-icon-SKIPPED    { background: #f1f5f9; color: #475569; }

/* ── Botones primary ─────────────────────────────────────────────── */
.btn-primary {
    --bs-btn-bg: var(--hp-navy);
    --bs-btn-border-color: var(--hp-navy);
    --bs-btn-hover-bg: #0b3f6e;
    --bs-btn-hover-border-color: #0b3f6e;
    --bs-btn-active-bg: #0b3f6e;
    --bs-btn-active-border-color: #0b3f6e;
}

/* ── Login standalone ────────────────────────────────────────────── */
.hp-login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--hp-navy) 0%, #0b3f6e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.hp-login-card {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 420px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.hp-login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.hp-login-brand .hp-brand-mark {
    width: 64px; height: 64px;
    border-radius: 16px;
    font-size: 2rem;
    margin: 0 auto 0.75rem;
}
.hp-login-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin: 0;
}
.hp-login-brand p {
    color: var(--hp-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

/* ══════════════════════════════════════════════════════════════════════
   Galería de imágenes de producto
   ══════════════════════════════════════════════════════════════════════ */
.img-dropzone {
    border: 2px dashed var(--hp-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--hp-muted);
    transition: border-color .15s, background .15s;
}
.img-dropzone:hover,
.img-dropzone-active {
    border-color: var(--hp-accent);
    background: rgba(0, 212, 255, .04);
    color: var(--hp-navy);
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.img-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1 / 1;
    cursor: grab;
    user-select: none;
    border: 2px solid transparent;
    transition: border-color .15s, transform .1s;
}
.img-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.img-tile.img-dragging { opacity: .4; }
.img-tile.img-drop-over { border-color: var(--hp-accent); transform: scale(1.02); }

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6px;
    opacity: 0;
    transition: opacity .15s;
}
.img-tile:hover .img-overlay { opacity: 1; }
.img-tile .img-badge-primary,
.img-tile .img-overlay > .img-badge-primary { opacity: 1; }

.img-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 100px;
    background: rgba(255,255,255,.95);
    color: var(--hp-navy);
    letter-spacing: .03em;
}
.img-badge-primary {
    background: var(--hp-accent);
    color: var(--hp-navy);
    position: absolute;
    top: 6px; left: 6px;
    opacity: 1 !important;
}
.img-badge-wc { background: rgba(16,185,129,.95); color: #fff; }
.img-badge-pending { background: rgba(245,158,11,.95); color: #fff; }

.img-action {
    background: rgba(255,255,255,.95);
    border: none;
    color: var(--hp-navy);
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background .15s;
}
.img-action:hover { background: #fff; }
.img-action-delete:hover { background: #fee2e2; color: #991b1b; }
.img-action-primary:hover { background: rgba(0,212,255,.95); color: var(--hp-navy); }

/* ══════════════════════════════════════════════════════════════════════
   FORMS — design pass coherente con la tienda
   Labels claros, inputs con focus celeste, switches refinados.
   ══════════════════════════════════════════════════════════════════════ */
.hp-body .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--hp-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Required indicator */
.hp-body .form-label .req,
.hp-body .form-label .required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

/* Tooltip-trigger junto a labels (ej: <i class="bi bi-info-circle" data-bs-toggle="tooltip" title="...">) */
.hp-body .form-label .help-trigger,
.hp-body .help-trigger {
    color: var(--hp-muted);
    font-size: 0.95em;
    cursor: help;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}
.hp-body .help-trigger:hover {
    color: var(--hp-navy);
}

/* Inputs / selects / textareas — tamaño y peso uniforme */
.hp-body .form-control,
.hp-body .form-select {
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    background-color: #fff;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hp-body .form-control:hover,
.hp-body .form-select:hover {
    border-color: #94a3b8;
}
.hp-body .form-control:focus,
.hp-body .form-select:focus {
    border-color: var(--hp-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    outline: none;
}
.hp-body .form-control::placeholder {
    color: #94a3b8;
}
.hp-body .form-control.is-invalid,
.hp-body .form-select.is-invalid {
    border-color: #dc2626;
}
.hp-body .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Input-group con ícono leading (ej: $ adelante de un precio) */
.hp-body .input-group-text {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    color: var(--hp-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Help text bajo el input — uso .form-text de Bootstrap */
.hp-body .form-text {
    color: var(--hp-muted);
    font-size: 0.78rem;
    margin-top: 4px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.hp-body .form-text .bi {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hp-muted);
}

/* Form switches refinados — celeste cuando activos */
.hp-body .form-check-input {
    cursor: pointer;
    border-color: #cbd5e1;
}
.hp-body .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    border-color: var(--hp-accent);
}
.hp-body .form-check-input:checked {
    background-color: var(--hp-navy);
    border-color: var(--hp-navy);
}
.hp-body .form-switch .form-check-input:checked {
    background-color: var(--hp-accent);
    border-color: var(--hp-accent);
}
.hp-body .form-check-label {
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}
.hp-body .form-check-label small.text-muted {
    color: var(--hp-muted) !important;
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   DATATABLES — design pass
   ══════════════════════════════════════════════════════════════════════ */
.hp-body .dataTables_wrapper {
    font-family: inherit;
    font-size: 0.88rem;
}

/* Search + length: alineados arriba */
.hp-body .dataTables_filter,
.hp-body .dataTables_length {
    padding: 0.4rem 0;
    color: var(--hp-muted);
}
.hp-body .dataTables_filter label,
.hp-body .dataTables_length label {
    font-weight: 500;
    color: var(--hp-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hp-body .dataTables_filter input {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.7rem !important;
    margin-left: 8px !important;
    font-size: 0.88rem;
    width: 220px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-body .dataTables_filter input:focus {
    border-color: var(--hp-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    outline: none;
}
.hp-body .dataTables_length select {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.3rem 0.5rem !important;
    margin: 0 4px;
    font-size: 0.85rem;
}

/* Headers de tablas — el mismo look que ya teníamos pero con font-family Poppins */
.hp-body .hp-table-card table.dataTable thead th {
    font-family: inherit;
    background: #f8fafc;
}

/* Filas hover */
.hp-body .hp-table-card table.dataTable tbody tr {
    transition: background 0.1s ease;
}
.hp-body .hp-table-card table.dataTable tbody tr:hover {
    background: #f8fafc;
}

/* Paginación */
.hp-body .dataTables_paginate {
    padding-top: 0.75rem;
}
.hp-body .dataTables_paginate .paginate_button,
.hp-body .dataTables_paginate .page-link {
    border-radius: 8px !important;
    margin: 0 2px !important;
    color: var(--hp-navy) !important;
    border-color: #e2e8f0 !important;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}
.hp-body .dataTables_paginate .page-item.active .page-link {
    background-color: var(--hp-navy) !important;
    border-color: var(--hp-navy) !important;
    color: #fff !important;
}
.hp-body .dataTables_paginate .page-link:hover {
    background-color: rgba(6, 46, 82, 0.06) !important;
}
.hp-body .dataTables_paginate .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background: transparent !important;
}

/* Info de la tabla "Mostrando X a Y de Z" */
.hp-body .dataTables_info {
    color: var(--hp-muted);
    font-size: 0.82rem;
    padding-top: 0.85rem;
}

/* Loading / processing overlay */
.hp-body .dataTables_processing {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--hp-navy) !important;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

/* Badge: cuando se usa <span class="badge ..."> en una celda */
.hp-body table.dataTable .badge {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.32em 0.65em;
    border-radius: 100px;
    font-size: 0.72em;
}

/* ══════════════════════════════════════════════════════════════════════
   HELPERS — tooltips, badges custom, alertas, helpers de feedback
   ══════════════════════════════════════════════════════════════════════ */

/* Bootstrap tooltip — colores propios */
.hp-body .tooltip-inner {
    background-color: var(--hp-navy);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    max-width: 280px;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.hp-body .tooltip.bs-tooltip-top .tooltip-arrow::before,
.hp-body .tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: var(--hp-navy); }
.hp-body .tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.hp-body .tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: var(--hp-navy); }
.hp-body .tooltip.bs-tooltip-start .tooltip-arrow::before,
.hp-body .tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: var(--hp-navy); }
.hp-body .tooltip.bs-tooltip-end .tooltip-arrow::before,
.hp-body .tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: var(--hp-navy); }

/* Alertas con look coherente */
.hp-body .alert {
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
}
.hp-body .alert .bi { margin-right: 6px; }
.hp-body .alert-info {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    color: var(--hp-navy);
}
.hp-body .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.hp-body .alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.hp-body .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Botones generales — refinados sobre Bootstrap */
.hp-body .btn {
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.hp-body .btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.hp-body .btn-lg { padding: 0.7rem 1.4rem; font-size: 1rem; }
.hp-body .btn:active { transform: scale(0.98); }
.hp-body .btn .bi { vertical-align: -2px; }

.hp-body .btn-outline-primary {
    --bs-btn-color: var(--hp-navy);
    --bs-btn-border-color: var(--hp-navy);
    --bs-btn-hover-bg: var(--hp-navy);
    --bs-btn-hover-border-color: var(--hp-navy);
}
.hp-body .btn-outline-secondary {
    --bs-btn-color: var(--hp-muted);
    --bs-btn-border-color: #e2e8f0;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-hover-color: var(--hp-navy);
}
.hp-body .btn-link {
    color: var(--hp-navy);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hp-body .btn-link:hover {
    color: #0b3f6e;
    background: rgba(6, 46, 82, 0.06);
    border-color: rgba(6, 46, 82, 0.12);
    text-decoration: none;
}

/* Helper card section title (h2/h6 dentro de .hp-card) */
.hp-body .hp-card > h2,
.hp-body .hp-card > h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Visualmente conectar formularios con la card — labels y inputs respiran mejor */
.hp-body .hp-card .row > * { margin-bottom: 0; }
.hp-body .hp-card form .form-label { margin-top: 0.25rem; }

/* Pages: títulos y subtítulos refinados */
.hp-body .hp-page-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.hp-body .hp-page-sub {
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
}

/* Modales coherentes */
.hp-body .modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.hp-body .modal-header {
    border-bottom: 1px solid var(--hp-border);
    padding: 1rem 1.4rem;
}
.hp-body .modal-title {
    font-weight: 700;
    color: var(--hp-navy);
    font-size: 1.1rem;
}
.hp-body .modal-body { padding: 1.4rem; }
.hp-body .modal-footer {
    border-top: 1px solid var(--hp-border);
    padding: 0.85rem 1.4rem;
}
