:root {
    --pos-bg: #0b1220;
    --pos-card: #101828;
    --pos-chip: #111827;
    --pos-accent: #22d3ee; /* cian */
    --pos-accent-2: #a78bfa; /* violeta */
    --pos-good: #22c55e;
    --pos-danger: #ef4444;
}

.pos-body {
    background: radial-gradient(1200px 600px at 20% -10%, #1f2a44, transparent), radial-gradient(900px 500px at 120% 0%, #2b2246, transparent), var(--pos-bg);
    min-height: 100vh;
    color: #e5e7eb;
}

/* Header */
.pos-header {
    background: linear-gradient(90deg, #1d2437, #222a43 60%, #2a2350);
    color: #fff;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pos-search .form-control {
    background: rgba(255,255,255,.08);
    border: none;
    color: #fff;
}

    .pos-search .form-control::placeholder {
        color: rgba(255,255,255,.6);
    }

.pos-search .input-group-text {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: none;
}

/* Contenedores */
.pos-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

/* Chips categorías */
#cat-chips .chip {
    background: #141b2f;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: .4rem .8rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .07s ease, background .2s ease, border-color .2s ease;
    user-select: none;
}

    #cat-chips .chip:hover {
        transform: translateY(-1px);
    }

    #cat-chips .chip.active {
        background: linear-gradient(90deg, var(--pos-accent), var(--pos-accent-2));
        color: #0b1220;
        border-color: transparent;
    }

/* Tiles */
.tile {
    display: block;
    border-radius: 14px;
    padding: .9rem;
    min-height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    color: #e5e7eb;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}

    .tile:hover {
        transform: translateY(-1px);
    }

    .tile .title {
        font-weight: 700;
    }

    .tile .price {
        opacity: .9;
    }

/* Imagen del tile */
.tile-img {
    width: 100%;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: .35rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.tile::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 180deg, transparent 0 72%, rgba(255,255,255,.08) 72% 100%);
    transform: rotate(25deg);
    transition: opacity .35s ease;
    opacity: .3;
}

.tile.combo {
    border-color: rgba(34, 211, 238, .45);
}

.tile.product {
    border-color: rgba(167, 139, 250, .35);
}

/* Carrito */
.pos-cart {
    position: sticky;
    top: 12px;
}

.pos-cart-lines {
    max-height: 55vh;
    overflow: auto;
}

.line {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .4rem .2rem;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}

    .line .name {
        flex: 1;
    }

    .line .qty {
        display: flex;
        gap: .25rem;
        align-items: center;
    }

    .line .btn-qty {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,.15);
        background: rgba(255,255,255,.05);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .line .sum {
        width: 90px;
        text-align: right;
        font-weight: 700;
    }

/* Botón primario con gradiente */
.btn-primary {
    background: linear-gradient(90deg, var(--pos-accent), var(--pos-accent-2));
    border: none;
    color: #0b1220;
}

    .btn-primary:hover {
        filter: brightness(.95);
    }

/* Modal cobro */
.modal-content.pos-card {
    color: #e5e7eb;
}
/* Icono dentro del tile cuando no hay imagen */
.tile-icon {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    margin-bottom: .35rem;
}

    .tile-icon i {
        font-size: 42px;
        opacity: .9;
    }
.tile:active {
    transform: scale(.98);
    filter: brightness(.98);
}

.chip:active {
    transform: scale(.98);
}
/* En wwwroot/css/pos.css */
.pos-cart .line:last-child {
    background: rgba(255,255,255,.04);
    border-radius: 8px;
}
/* wwwroot/css/pos.css */
#clienteSel {
    cursor: pointer;
    user-select: none;
}

    #clienteSel .bi-x {
        font-size: .9em;
        vertical-align: baseline;
    }

