/* ==========================================================================
   UXPOS — Estilos centralizados del punto de venta
   Bootstrap 5.3 + Bootstrap Icons
   ========================================================================== */

:root {
    /* Paleta oficial UXPOS */
    --pos-blue-solid: #0071BC;
    --pos-blue-gradient-start: #57C2F0;
    --pos-blue-gradient-mid: #4594CF;
    --pos-blue-gradient-end: #3467AF;
    --pos-dark-gradient-start: #4E4D4D;
    --pos-dark-gradient-mid: #343333;
    --pos-dark-gradient-end: #1C1C1C;
    --pos-blue-gradient: linear-gradient(90deg, #57C2F0 0%, #3467AF 100%);
    --pos-dark-gradient: linear-gradient(90deg, #4E4D4D 0%, #1C1C1C 100%);

    --pos-primary: var(--pos-blue-solid);
    --pos-primary-rgb: 0, 113, 188;
    --pos-primary-dark: #3467AF;
    --pos-primary-darker: #1C1C1C;
    --pos-primary-soft: rgba(0, 113, 188, .12);

    --pos-sidebar-bg: #1C1C1C;
    --pos-sidebar-bg-soft: #343333;
    --pos-sidebar-text: #e5e7eb;
    --pos-sidebar-muted: #9ca3af;
    --pos-sidebar-active: #57C2F0;
    --pos-sidebar-active-bg: rgba(0, 113, 188, .22);

    --pos-sidebar-width: 264px;
    --pos-sidebar-collapsed: 78px;
    --pos-topbar-height: 64px;
    --pos-radius: 16px;
    --pos-radius-sm: 12px;

    --bs-primary-rgb: 0, 113, 188;
    --bs-link-color: #0071BC;
    --bs-link-hover-color: #3467AF;
}

[data-bs-theme="dark"] {
    --pos-primary-soft: rgba(87, 194, 240, .16);
    --pos-sidebar-bg: #111111;
    --pos-sidebar-bg-soft: #1C1C1C;
    --pos-sidebar-text: #e5e7eb;
    --pos-sidebar-muted: #9ca3af;
    --pos-sidebar-active: #57C2F0;
    --bs-link-color: #57C2F0;
    --bs-link-hover-color: #4594CF;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.pos-body {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

a {
    text-decoration: none;
}

.text-primary {
    color: var(--pos-primary) !important;
}

.bg-primary {
    background-color: rgba(var(--pos-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}

.btn-primary {
    --bs-btn-bg: var(--pos-primary);
    --bs-btn-border-color: var(--pos-primary);
    --bs-btn-hover-bg: var(--pos-primary-dark);
    --bs-btn-hover-border-color: var(--pos-primary-dark);
    --bs-btn-active-bg: var(--pos-primary-darker);
    --bs-btn-active-border-color: var(--pos-primary-darker);
    --bs-btn-disabled-bg: var(--pos-primary);
    --bs-btn-disabled-border-color: var(--pos-primary);
    --bs-btn-focus-shadow-rgb: var(--pos-primary-rgb);
}

.btn-outline-primary {
    --bs-btn-color: var(--pos-primary);
    --bs-btn-border-color: var(--pos-primary);
    --bs-btn-hover-bg: var(--pos-primary);
    --bs-btn-hover-border-color: var(--pos-primary);
    --bs-btn-active-bg: var(--pos-primary);
    --bs-btn-active-border-color: var(--pos-primary);
    --bs-btn-focus-shadow-rgb: var(--pos-primary-rgb);
}

/* --------------------------------------------------------------------------
   Marca
   -------------------------------------------------------------------------- */

.pos-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.pos-brand-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 6px 14px rgba(0, 113, 188, .24);
    overflow: hidden;
}

.pos-brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.pos-brand-icon-sm {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    font-size: 1rem;
    box-shadow: none;
}

.pos-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.pos-brand-text strong {
    font-size: .98rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-brand-text small {
    font-size: .72rem;
    color: var(--pos-sidebar-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Layout principal
   -------------------------------------------------------------------------- */

.pos-shell {
    display: grid;
    grid-template-columns: var(--pos-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns .25s ease;
}

.pos-sidebar {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(180deg, #343333 0%, #1C1C1C 100%);
    color: var(--pos-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}

@media (min-width: 992px) {
    .pos-sidebar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    /* Bootstrap marca los offcanvas-lg como transparentes en escritorio. */
    .pos-sidebar.offcanvas-lg {
        background: var(--pos-sidebar-bg) !important;
    }

    .pos-sidebar .pos-sidebar-body {
        padding: 1rem .75rem;
        overflow-y: auto;
    }
}

.pos-offcanvas-header {
    padding: 1rem 1rem .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
}

.pos-sidebar .pos-sidebar-body {
    display: flex;
    flex-direction: column;
    padding: 1rem .75rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.pos-brand-desktop {
    margin: 0 .35rem 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
}

.pos-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.pos-nav-section {
    margin: 1rem .5rem .4rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--pos-sidebar-muted);
}

.pos-nav-list {
    gap: .15rem;
}

.pos-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem .75rem;
    border-radius: 10px;
    color: var(--pos-sidebar-text);
    font-size: .92rem;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

.pos-nav-link i {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
    flex: 0 0 1.25rem;
    color: var(--pos-sidebar-muted);
    transition: color .15s ease;
}

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

.pos-nav-link:hover i {
    color: #fff;
}

.pos-nav-link.active {
    background: var(--pos-sidebar-active-bg);
    color: var(--pos-sidebar-active);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--pos-sidebar-active);
}

.pos-nav-link.active i {
    color: var(--pos-sidebar-active);
}

.pos-sidebar-footer {
    padding: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: var(--pos-sidebar-bg);
    flex: 0 0 auto;
}

.pos-user-mini {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.pos-user-mini-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.pos-user-mini-text strong {
    color: #f8fafc;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-user-mini-text small {
    color: var(--pos-sidebar-muted);
    font-size: .74rem;
    text-transform: capitalize;
}

.pos-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #57C2F0 0%, #3467AF 100%);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}

.pos-avatar-sm {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: .78rem;
}

.pos-main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.pos-topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: var(--pos-topbar-height);
    padding: .5rem 1.25rem;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pos-topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.pos-topbar-title h1 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-topbar-sub {
    font-size: .74rem;
    color: var(--bs-secondary-color);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--bs-body-color);
}

.btn-icon:hover {
    background: var(--bs-tertiary-bg);
}

.pos-caja-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.pos-caja-badge.is-open {
    background: rgba(25, 135, 84, .1);
    border-color: rgba(25, 135, 84, .2);
    color: #198754;
}

.pos-caja-badge.is-closed {
    background: rgba(255, 193, 7, .14);
    border-color: rgba(255, 193, 7, .28);
    color: #a16207;
}

[data-bs-theme="dark"] .pos-caja-badge.is-open {
    color: #4ade80;
}

[data-bs-theme="dark"] .pos-caja-badge.is-closed {
    color: #fbbf24;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    padding: .25rem .4rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
}

.btn-user:hover {
    background: var(--bs-tertiary-bg);
}

.pos-content {
    flex: 1 1 auto;
    padding: 1.5rem;
    min-width: 0;
}

.pos-page-title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.wave {
    display: inline-block;
    animation: pos-wave 2.2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes pos-wave {
    0%, 60%, 100% { transform: rotate(0); }
    70% { transform: rotate(14deg); }
    80% { transform: rotate(-8deg); }
    90% { transform: rotate(14deg); }
}

/* --------------------------------------------------------------------------
   Sidebar colapsado (solo escritorio)
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
    body.sidebar-collapsed .pos-shell {
        grid-template-columns: var(--pos-sidebar-collapsed) minmax(0, 1fr);
    }

    body.sidebar-collapsed .pos-brand-text,
    body.sidebar-collapsed .pos-nav-label,
    body.sidebar-collapsed .pos-nav-section,
    body.sidebar-collapsed .pos-user-mini-text,
    body.sidebar-collapsed .pos-sidebar-footer .btn span {
        display: none;
    }

    body.sidebar-collapsed .pos-sidebar-body {
        padding-inline: .65rem;
    }

    body.sidebar-collapsed .pos-brand-desktop {
        justify-content: center;
        margin-inline: 0;
    }

    body.sidebar-collapsed .pos-nav-link {
        justify-content: center;
        padding-inline: .5rem;
    }

    body.sidebar-collapsed .pos-nav-link i {
        width: auto;
        flex-basis: auto;
    }

    body.sidebar-collapsed .pos-user-mini {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Componentes de contenido
   -------------------------------------------------------------------------- */

.pos-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
    border-radius: var(--pos-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

[data-bs-theme="dark"] .pos-card {
    box-shadow: none;
}

.pos-card .card-body {
    padding: 1.25rem;
}

.pos-kpi {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.15rem;
}

.pos-kpi-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.35rem;
}

.pos-kpi-label {
    font-size: .78rem;
    color: var(--bs-secondary-color);
    margin-bottom: .15rem;
}

.pos-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.pos-kpi-sub {
    font-size: .74rem;
    color: var(--bs-secondary-color);
    margin-top: .15rem;
}

.pos-section-title {
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.pos-caja-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.pos-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.pos-mini-grid > div {
    background: var(--bs-tertiary-bg);
    border-radius: 10px;
    padding: .55rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.pos-mini-grid span {
    font-size: .72rem;
    color: var(--bs-secondary-color);
}

.pos-mini-grid strong {
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-table {
    font-size: .86rem;
}

.pos-table thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    border-bottom-color: var(--bs-border-color);
    white-space: nowrap;
}

.pos-table tbody td {
    vertical-align: middle;
    border-bottom-color: var(--bs-border-color-translucent, var(--bs-border-color));
}

.pos-empty {
    text-align: center;
}

.pos-empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    font-size: 1.6rem;
}

.pos-empty-icon.success {
    background: rgba(25, 135, 84, .1);
    color: #198754;
}

.caja-resumen-metric {
    padding: .85rem .95rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--pos-radius-sm);
    background: var(--bs-tertiary-bg);
}

.caja-resumen-label {
    font-size: .76rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.caja-resumen-value {
    margin-top: .2rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.caja-resumen-sub {
    margin-top: .15rem;
    font-size: .72rem;
    color: var(--bs-secondary-color);
}

.compra-lineas {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.compra-linea {
    padding: .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--pos-radius-sm);
    background: var(--bs-tertiary-bg);
}

.compra-linea-total {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}

.compra-totales {
    padding: .8rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--pos-radius-sm);
    background: var(--bs-tertiary-bg);
}

.pos-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.pos-quick {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--pos-radius-sm);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    font-size: .86rem;
    font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.pos-quick:hover {
    border-color: var(--pos-primary);
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    transform: translateY(-1px);
}

.pos-quick-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    font-size: 1.1rem;
}

.product-image-preview {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: 1.6rem;
    overflow: hidden;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

body.auth-page {
    background: var(--bs-tertiary-bg);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(87, 194, 240, .28), transparent 42%),
        radial-gradient(circle at 90% 90%, rgba(0, 113, 188, .35), transparent 45%),
        linear-gradient(150deg, #0071BC 0%, #3467AF 55%, #1C1C1C 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 85%);
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-brand .pos-brand {
    color: #fff;
}

.auth-brand .pos-brand-text small {
    color: #94a3b8;
}

.auth-brand-copy {
    max-width: 460px;
    margin: 3rem 0;
}

.auth-brand-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: 1rem;
}

.auth-brand-copy p {
    color: #cbd5e1;
    font-size: 1.02rem;
    margin-bottom: 1.75rem;
}

.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.auth-brand-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #e2e8f0;
    font-size: .92rem;
}

.auth-brand-list i {
    color: #57C2F0;
    font-size: 1.05rem;
    margin-top: .05rem;
}

.auth-brand-foot {
    font-size: .8rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.25rem;
}

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
    padding: 2rem;
}

[data-bs-theme="dark"] .auth-card {
    box-shadow: none;
}

.auth-head h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

.auth-head p {
    color: var(--bs-secondary-color);
    font-size: .92rem;
    margin-bottom: 1.5rem;
}

.auth-card .input-group-text {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .86rem;
}

.auth-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--pos-primary);
}

/* --------------------------------------------------------------------------
   Landing pública
   -------------------------------------------------------------------------- */

body.landing-page {
    background:
        radial-gradient(circle at 83% 8%, rgba(87, 194, 240, .14), transparent 32%),
        radial-gradient(circle at 8% 88%, rgba(0, 113, 188, .10), transparent 34%),
        var(--bs-body-bg);
}

.landing-wrap {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
}

.landing-nav .pos-brand {
    color: var(--bs-body-color);
}

.landing-nav .pos-brand-text small {
    color: var(--bs-secondary-color);
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 3.5rem;
    padding: 4rem 0 5rem;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .75rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.landing-title {
    font-size: clamp(2.3rem, 4.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.04em;
    margin-bottom: 1.25rem;
}

.landing-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bs-secondary-color);
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1.75rem;
}

.landing-points {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: .85rem;
}

.landing-points span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.landing-points i {
    color: var(--pos-primary);
}

.landing-preview {
    position: relative;
    padding: 1rem 1rem 1.5rem 0;
}

.pos-mock {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .16);
    overflow: hidden;
}

[data-bs-theme="dark"] .pos-mock {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.pos-mock-top {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .8rem 1rem;
    background: var(--pos-sidebar-bg);
    color: #e2e8f0;
    font-size: .78rem;
}

.pos-mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
}

.pos-mock-dot:nth-child(1) { background: #f87171; }
.pos-mock-dot:nth-child(2) { background: #fbbf24; }
.pos-mock-dot:nth-child(3) { background: #57C2F0; }

.pos-mock-label {
    font-weight: 600;
    opacity: .85;
}

.pos-mock-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.pos-mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px dashed var(--bs-border-color);
    font-size: .88rem;
}

.pos-mock-row:last-of-type {
    border-bottom: 0;
}

.pos-mock-row strong {
    display: block;
    font-weight: 600;
}

.pos-mock-row small {
    color: var(--bs-secondary-color);
    font-size: .74rem;
}

.pos-mock-row > span {
    font-weight: 600;
    white-space: nowrap;
}

.pos-mock-row.muted {
    opacity: .65;
}

.pos-mock-divider {
    height: 1px;
    background: var(--bs-border-color);
    margin: .75rem 0;
}

.pos-mock-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: .9rem;
}

.pos-mock-total strong {
    font-size: 1.35rem;
    letter-spacing: -.02em;
}

.pos-mock-pay {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.pos-mock-float {
    position: absolute;
    right: -8px;
    bottom: -4px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .9rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    font-size: .78rem;
}

.pos-mock-float i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(25, 135, 84, .12);
    color: #198754;
    font-size: 1rem;
}

.pos-mock-float strong {
    display: block;
    font-size: .95rem;
    line-height: 1.1;
}

.pos-mock-float small {
    color: var(--bs-secondary-color);
    font-size: .7rem;
}

.landing-features {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--bs-border-color);
}

.landing-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.landing-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pos-primary);
    margin-bottom: .5rem;
}

.landing-section-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}

.landing-feature {
    height: 100%;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--pos-radius);
    padding: 1.4rem;
}

.landing-feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.landing-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.landing-feature p {
    color: var(--bs-secondary-color);
    font-size: .86rem;
    line-height: 1.55;
    margin: 0;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.public-footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.public-footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.public-footer-brand-text strong {
    color: var(--bs-body-color);
    font-size: .9rem;
    font-weight: 700;
}

.public-footer-brand-text small {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.public-footer-dev {
    color: var(--bs-secondary-color);
}

.public-footer-dev a {
    color: var(--pos-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.public-footer-dev a:hover {
    text-decoration: underline;
}

.public-footer--auth {
    width: 100%;
    max-width: 430px;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--bs-border-color);
    font-size: .78rem;
}

@media (max-width: 575.98px) {
    .public-footer {
        align-items: flex-start;
    }

    .public-footer--auth {
        align-items: center;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Errores
   -------------------------------------------------------------------------- */

body.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--bs-tertiary-bg);
}

.error-card {
    width: min(520px, 100%);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.error-code {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--pos-primary);
    margin-bottom: .5rem;
}

.error-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .pos-shell {
        grid-template-columns: 1fr;
    }

    .pos-main {
        grid-column: 1;
    }

    .pos-content {
        padding: 1rem;
    }

    .pos-topbar {
        padding-inline: 1rem;
    }

    .pos-caja-badge span {
        display: none;
    }

    .pos-caja-badge {
        padding: .45rem .55rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0 3rem;
    }

    .landing-preview {
        padding: 0 0 1.5rem;
        max-width: 520px;
    }

    .pos-mock-float {
        right: 8px;
    }
}

@media (max-width: 575.98px) {
    .landing-wrap {
        width: min(100% - 2rem, 1180px);
    }

    .landing-title {
        font-size: 2.15rem;
    }

    .pos-kpi {
        padding: 1rem;
    }

    .pos-quick-grid,
    .pos-mini-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .pos-content {
        padding: .85rem;
    }
}
