/* Capa visual independiente: no se aplica a tickets ni a impresion. */
@media screen {
    html.hsm-apple {
        --hsm-ink: #1d1d1f;
        --hsm-muted: #606069;
        --hsm-line: #d8d8dd;
        --hsm-accent: #0066cc;
        --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --bs-body-color: var(--hsm-ink);
        --bs-border-color: var(--hsm-line);
        --bs-link-color: var(--hsm-accent);
        color-scheme: light;
    }
    .hsm-apple body {
        font-family: var(--bs-body-font-family);
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 0;
        color: var(--hsm-ink);
        background-color: #f5f5f7;
        -webkit-font-smoothing: antialiased;
    }
    .hsm-apple :is(h1, h2, h3, h4, .h2) { letter-spacing: 0; font-weight: 650; line-height: 1.2; }
    .hsm-apple :is(h1.h2, h2) { font-size: 1.75rem; }
    .hsm-apple :is(h3, h4) { font-size: 1.2rem; }
    .hsm-apple .text-muted { color: var(--hsm-muted) !important; }
    .hsm-apple :is(.card, .card-dashboard, .alert-card, .main-card, .metric) {
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .06);
    }
    .hsm-apple :is(.btn, .btn-login) {
        border-radius: 7px;
        font-weight: 600;
        line-height: 1.4;
        min-height: 38px;
        padding: .5rem .85rem;
        transition: background-color 120ms ease, box-shadow 120ms ease;
        touch-action: manipulation;
    }
    .hsm-apple .btn-sm { font-size: .8125rem; min-height: 32px; padding: .35rem .6rem; }
    .hsm-apple :is(.btn, .btn-login):active { filter: brightness(.91); }
    .hsm-apple .btn-primary {
        --bs-btn-bg: #0066cc; --bs-btn-border-color: #0066cc;
        --bs-btn-hover-bg: #0058b0; --bs-btn-hover-border-color: #0058b0;
        --bs-btn-active-bg: #004f9e; --bs-btn-active-border-color: #004f9e;
        --bs-btn-disabled-bg: #0066cc; --bs-btn-disabled-border-color: #0066cc;
    }
    .hsm-apple .btn-outline-primary {
        --bs-btn-color: #0066cc; --bs-btn-border-color: #0066cc;
        --bs-btn-hover-bg: #0066cc; --bs-btn-hover-border-color: #0066cc;
        --bs-btn-active-bg: #0058b0; --bs-btn-active-border-color: #0058b0;
    }
    .hsm-apple :is(a, button, input, select, textarea, summary):focus-visible {
        outline: 3px solid #0071e3;
        outline-offset: 3px;
    }
    .hsm-apple :is(.form-control, .form-select) {
        border-radius: 7px;
        border-color: #bcbcc4;
        min-height: 40px;
        font-size: 1rem;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025);
    }
    .hsm-apple :is(.form-control, .form-select):focus {
        border-color: #0071e3;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, .15);
    }
    .hsm-apple :is(.form-control, .form-select):disabled,
    .hsm-apple .form-control[readonly] { background-color: #eeeef1; }
    .hsm-apple .form-label { font-size: .875rem; font-weight: 600; }
    .hsm-apple .form-check-input { width: 1.15em; height: 1.15em; }
    .hsm-apple .form-check-input:checked { background-color: #0066cc; border-color: #0066cc; }
    .hsm-apple .table { --bs-table-border-color: #e1e1e6; font-size: .875rem; }
    .hsm-apple .table > :not(caption) > * > * { padding: .75rem .7rem; vertical-align: middle; }
    .hsm-apple .table thead th { font-weight: 650; }
    .hsm-apple .table thead:not(.table-dark) th { background-color: #f5f5f7; }
    .hsm-apple :is(.numero, .numero-habitacion, .table) { font-variant-numeric: tabular-nums; }
    .hsm-apple .badge { font-weight: 650; border-radius: 5px; line-height: 1.25; }
    .hsm-apple .alert { border-radius: 8px; }
    .hsm-apple .modal-content { border: 1px solid #dedee3; border-radius: 12px; box-shadow: 0 20px 65px rgba(0, 0, 0, .22); }
    .hsm-apple .modal-header { background-color: #f8f8fa; border-radius: 12px 12px 0 0; }
    .hsm-apple .modal-footer { background-color: #f8f8fa; border-radius: 0 0 12px 12px; gap: .25rem; }
    .hsm-apple .modal-title { font-size: 1.25rem; }

    .hsm-apple .hsm-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); align-items: start; }
    .hsm-apple .hsm-content { width: auto; min-width: 0; padding: 1.75rem !important; }
    .hsm-apple .sidebar {
        background: rgba(235, 235, 240, .96);
        color: var(--hsm-ink) !important;
        border-right: 1px solid #d6d6dc;
    }
    .hsm-apple .hsm-layout > .sidebar {
        width: auto; position: sticky; top: 0; height: 100dvh;
        min-height: 0; overflow-y: auto; overscroll-behavior: contain;
        padding: 1.5rem .875rem !important;
    }
    .hsm-apple .sidebar h4 { color: var(--hsm-ink) !important; font-size: 1.2rem; text-align: left !important; padding: 0 .625rem; margin-bottom: 1rem !important; }
    .hsm-apple .sidebar > p.text-center { font-size: .8125rem; text-align: left !important; color: #606069; padding: 0 .625rem; overflow-wrap: anywhere; }
    .hsm-apple .hsm-sidebar-unificado { color: var(--hsm-ink); }
    .hsm-apple .hsm-nav-principal { margin-top: 1rem; gap: 4px; }
    .hsm-apple .sidebar :is(.hsm-nav-principal > a, .hsm-submenu > summary) {
        color: #29292e !important; font-size: .875rem;
        font-weight: 550; padding: .7rem .625rem !important;
        border-radius: 7px !important;
    }
    .hsm-apple .sidebar :is(.hsm-nav-principal > a:hover, .hsm-submenu > summary:hover, .hsm-submenu[open] > summary) { background: #dedee5 !important; }
    .hsm-apple .sidebar :is(.hsm-nav-principal > a.active, .hsm-submenu > div > a.active, .hsm-accesos-especiales > a.active) { background: #d5e6f8 !important; color: #004f9e !important; }
    .hsm-apple .hsm-submenu > div { border-left-color: #bcbcc6; margin-left: 1.2rem; }
    .hsm-apple .sidebar .hsm-submenu > div > a { color: #45454d !important; font-size: .8125rem !important; }
    .hsm-apple .sidebar .hsm-submenu > div > a:hover { background: #dedee5 !important; color: #1d1d1f !important; }
    .hsm-apple .sidebar .hsm-nav-principal > a.hsm-cerrar-sesion { color: #b4232d !important; }
    .hsm-apple .hsm-accesos-especiales { border-color: #d2d2d9; }
    .hsm-apple .sidebar .hsm-accesos-especiales > a {
        color: #29292e !important; border-color: #c6c6cf !important;
        background: #f7f7f9; font-size: .875rem !important; font-weight: 600;
    }
    .hsm-apple .sidebar .hsm-accesos-especiales > a:hover { background: #dedee5 !important; }
    .hsm-apple .hsm-sidebar-footer { border-color: #d2d2d9; color: #606069; font-size: .6875rem; line-height: 1.55; }
    .hsm-apple .hsm-sidebar-footer strong { color: #45454d; }
    .hsm-mobile-bar { display: none; }
    .hsm-apple .hsm-content > .d-flex { flex-wrap: wrap; gap: .75rem; }
    .hsm-apple .hsm-content > .d-flex > div { max-width: 100%; }
    .hsm-apple .hsm-content > .d-flex > div:has(> .btn) { display: flex; flex-wrap: wrap; gap: .5rem; }

    .hsm-apple .login-shell { border-radius: 16px; box-shadow: 0 24px 75px rgba(0, 0, 0, .28); }
    .hsm-apple .login-card { background: #fff; }
    .hsm-apple .brand-panel::after { background: rgba(20, 24, 29, .72); }
    .hsm-apple .brand-logo { border-radius: 12px; box-shadow: none; }
    .hsm-apple .login-title h2 { color: #1d1d1f; font-weight: 650; }
    .hsm-apple .btn-login { background: #0066cc; box-shadow: none; }
    .hsm-apple .btn-login:hover { background: #0058b0; }
    .hsm-apple .login-card .form-control { background: #fff; }

    @supports (backdrop-filter: blur(20px)) {
        .hsm-apple .sidebar { background: rgba(235, 235, 240, .91); backdrop-filter: blur(20px); }
    }
    @media (max-width: 991.98px) {
        .hsm-apple .hsm-layout { grid-template-columns: minmax(0, 1fr); }
        .hsm-apple .hsm-layout > .sidebar { position: static; height: auto; max-height: 70dvh; border-right: 0; border-bottom: 1px solid #d6d6dc; }
        .hsm-apple .hsm-layout > .sidebar:not(.hsm-menu-open) { display: none !important; }
        .hsm-apple .hsm-content { padding: 1rem !important; }
        .hsm-apple .hsm-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: #f5f5f7; border-bottom: 1px solid #d6d6dc; }
        .hsm-apple .hsm-mobile-bar strong { font-size: 1rem; }
        .hsm-apple .hsm-menu-toggle { min-width: 44px; min-height: 44px; border: 1px solid #bcbcc4; background: #fff; color: #1d1d1f; border-radius: 7px; display: grid; place-items: center; }
        .hsm-apple .hsm-menu-toggle svg { width: 22px; height: 22px; }
        .hsm-apple :is(.btn, .btn-sm) { min-height: 40px; }
        .hsm-apple .table-responsive { -webkit-overflow-scrolling: touch; }
        .hsm-apple .modal-dialog { margin: .75rem; }
    }
    @media (prefers-reduced-motion: reduce) {
        .hsm-apple *, .hsm-apple *::before, .hsm-apple *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    }
    @media (prefers-reduced-transparency: reduce) {
        .hsm-apple .sidebar { background: #ebebf0; backdrop-filter: none; }
    }
    @media (prefers-contrast: more) {
        .hsm-apple :is(.card, .main-card, .metric, .btn, .form-control, .form-select) { border: 1px solid #666; }
        .hsm-apple .sidebar { background: #ebebf0; backdrop-filter: none; }
    }
}
@media print { .hsm-mobile-bar { display: none !important; } }
