:root {
    --ink: #263238;
    --muted: #718096;
    --brand: #ae352e;
    --brand-dark: #87251f;
    --cream: #fffaf3;
    --line: #eee7de
}

* {
    box-sizing: border-box
}

body {
    background: #f7f5f1;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif
}

.topbar {
    height: 68px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 56px);
    border-bottom: 1px solid var(--line)
}

.brand {
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--ink);
    text-decoration: none
}

.brand span {
    color: var(--brand)
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: .9rem
}

.top-actions a {
    color: var(--brand);
    text-decoration: none
}

.top-actions form {
    margin: 0
}

.link-button {
    border: 0;
    background: none;
    color: var(--brand)
}

.page-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 64px
}

.hero {
    padding: 34px;
    background: linear-gradient(135deg, #111111 0%, #b81e14 55%, #ffb300 100%);
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-weight: 800
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 800;
    opacity: .75
}

.card-soft,
.product-card,
.table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 5px 22px #473a270a
}

.table-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px
}

.table-card {
    padding: 20px;
    text-align: left;
    width: 100%;
    color: inherit
}

.table-card.free {
    border-top: 4px solid #40a36b
}

.table-card.busy {
    border-top: 4px solid #e09b38
}

.table-card h3 {
    font-size: 1.1rem;
    font-weight: 750
}

.table-card p {
    margin: 0;
    color: var(--muted)
}

.section-title {
    font-weight: 800;
    margin: 30px 0 15px
}

.product-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 750;
    margin: 0
}

.product-card p {
    color: var(--muted);
    font-size: .9rem;
    flex: 1;
    margin: 0
}

.price {
    color: var(--brand);
    font-weight: 800
}

.qty {
    width: 76px
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff
}

.btn-brand:hover {
    background: var(--brand-dark);
    color: #fff
}

.pill {
    border-radius: 99px;
    padding: 5px 10px;
    background: #f2eee9;
    font-size: .78rem;
    font-weight: 700
}

.status {
    font-weight: 750
}

.receipt {
    max-width: 620px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px
}

.receipt h1,
.receipt h2 {
    text-align: center
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    border-bottom: 1px dashed #ddd
}

.receipt-total {
    font-size: 1.2rem;
    font-weight: 850;
    border-top: 2px solid #333;
    margin-top: 12px;
    padding-top: 12px
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.table-responsive {
    border-radius: 14px;
    background: #fff
}

@media print {

    .topbar,
    .no-print,
    .alert {
        display: none !important
    }

    body {
        background: white
    }

    .page-wrap {
        width: 100%;
        margin: 0
    }

    .receipt {
        border: 0;
        margin: 0 auto;
        box-shadow: none
    }
}

.admin-shell {
    display: flex;
    align-items: flex-start;
    gap: 4px
}

.admin-shell .page-wrap {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: 1400px
}

.admin-sidebar {
    position: sticky;
    top: 10px;
    width: 220px;
    min-width: 220px;
    margin: 32px 0 32px 20px;
    padding: 18px 12px;
    background: #292f3c;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.admin-sidebar .eyebrow {
    color: #cbd0da;
    padding: 4px 10px 10px
}

.admin-sidebar a {
    color: #f3f4f6;
    text-decoration: none;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: .92rem
}

.admin-sidebar a:hover {
    background: #414958
}

@media(max-width:760px) {
    .admin-shell {
        display: block
    }

    .admin-sidebar {
        position: static;
        width: auto;
        margin: 16px 16px 0;
        flex-direction: row;
        overflow: auto
    }

    .admin-sidebar .eyebrow {
        display: none
    }

    .admin-sidebar a {
        white-space: nowrap
    }

    .admin-shell .page-wrap {
        width: calc(100% - 32px)
    }
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px
}

.admin-product-image {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block
}

.menu-hero {
    padding: 32px 36px;
    border-radius: 24px;
    background: linear-gradient(120deg, #4b1714 0%, #a93628 60%, #d8793f 100%);
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    position: relative
}

.menu-hero:after {
    content: '🍗';
    font-size: 8rem;
    opacity: .16;
    position: absolute;
    right: 7%;
    bottom: -30px;
    transform: rotate(-12deg)
}

.menu-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    margin: 8px 0
}

.menu-hero p {
    color: #ffe8d9
}

.menu-hero-badge {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--brand);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px #220a0625
}

.menu-hero-badge span {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em
}

.menu-intro {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
    color: var(--muted);
    font-size: .92rem
}

.menu-intro strong {
    color: var(--ink);
    font-size: 1.05rem
}

.category-nav {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding: 4px 0 12px;
    position: sticky;
    top: 0;
    background: #f7f5f1;
    z-index: 5
}

.category-nav a {
    white-space: nowrap;
    padding: 9px 15px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem
}

.category-nav a:first-child {
    background: var(--brand);
    color: #fff
}

.menu-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--line);
    padding-bottom: 10px
}

.menu-section-title small {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500
}

.menu-product-card {
    transition: transform .2s, box-shadow .2s;
    border-radius: 18px
}

.menu-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #473a2718
}

.product-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px
}

.product-dot {
    color: #e19a3a;
    font-size: .7rem
}

.product-buy {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.order-box {
    border: 2px solid #f0d7c9
}

.order-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px
}

.admin-refreshing {
    transition: opacity .45s ease;
    opacity: .35;
    pointer-events: none
}

.btn-action-icon {
    width: 34px;
    height: 32px;
    margin-right: 4px;
    padding: 5px 7px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px
}

.btn-action-icon i {
    font-size: 16px;
    line-height: 1
}

@media print {
    .receipt {
        width: 80mm;
        max-width: 80mm;
        padding: 3mm;
        border-radius: 0;
        font-size: 10px
    }

    .receipt h1 {
        font-size: 16px
    }

    .receipt h2 {
        font-size: 12px
    }

    .receipt-line {
        padding: 4px 0
    }

    .receipt-total {
        font-size: 13px
    }
}
.category-panel {
    margin: 28px 0;
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: #74221e;
    box-shadow: 0 8px 24px rgba(60, 25, 15, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(60, 25, 15, .22);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    opacity: .72;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 8, 5, .86),
        rgba(30, 8, 5, .08)
    );
}

.category-card-content {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 16px;
}

.category-card-content h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 800;
}

.category-card-content span {
    font-size: .85rem;
    opacity: .9;
}

.category-products {
    margin: 18px 0;
    scroll-margin-top: 20px;
}

.category-products summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 800;
    list-style: none;
}

.category-products summary::-webkit-details-marker {
    display: none;
}

.category-products[open] summary {
    border-color: var(--brand);
    color: var(--brand);
    border-radius: 14px 14px 0 0;
}

.category-arrow {
    font-size: 1.4rem;
    transition: transform .2s ease;
}

.category-products[open] .category-arrow {
    transform: rotate(180deg);
}

.category-products .product-grid {
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fffaf3;
}

.category-card {
    overflow: hidden; /* Corta la imagen cuando se expanda */
}

.category-card img {
    transition: transform 0.4s ease;
}

/* Zoom a la imagen al pasar el cursor sobre la tarjeta */
.category-card:hover img {
    transform: scale(1.1); /* Agranda la imagen un 10% */
}

#mesas-mozo {
    padding-left: 24px;
    padding-right: 24px;
}

/* Espaciado un poco mayor en pantallas de escritorio o tablets */
@media (min-width: 768px) {
    #mesas-mozo {
        padding-left: 32px;
        padding-right: 32px;
    }
}