:root {
    --gusto-green: #009b61;
    --gusto-green-dark: #007a4d;
    --gusto-green-soft: #e4f5ed;
    --gusto-yellow: #ffd12e;
    --gusto-yellow-dark: #efb900;
    --gusto-ink: #171b19;
    --gusto-muted: #69736e;
    --gusto-cream: #f8f6ee;
    --gusto-white: #ffffff;
    --gusto-border: #dde6e1;
    --gusto-shadow: 0 1rem 2.8rem rgba(25, 56, 43, .10);
    --bs-primary: var(--gusto-green);
    --bs-primary-rgb: 0, 155, 97;
    --bs-link-color: var(--gusto-green-dark);
    --bs-link-hover-color: var(--gusto-green);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--gusto-ink);
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 209, 46, .11), transparent 24rem),
        var(--gusto-cream);
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 15%, rgba(255, 209, 46, .48), transparent 23rem),
        radial-gradient(circle at 93% 88%, rgba(0, 155, 97, .24), transparent 27rem),
        linear-gradient(145deg, #fffdf5 0%, #f3f8f4 100%);
}

.auth-shell::before,
.auth-shell::after {
    position: absolute;
    width: 15rem;
    height: 15rem;
    border: 2.5rem solid rgba(0, 155, 97, .08);
    border-radius: 50%;
    content: "";
}

.auth-shell::before {
    top: -8rem;
    right: -5rem;
}

.auth-shell::after {
    bottom: -9rem;
    left: -4rem;
    border-color: rgba(255, 209, 46, .2);
}

.auth-shell .container {
    position: relative;
    z-index: 1;
}

.login-logo {
    display: block;
    width: min(100%, 19rem);
    max-height: 8.5rem;
    margin: 0 auto .6rem;
    object-fit: contain;
}

.login-kicker {
    color: var(--gusto-green-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.card {
    border: 1px solid rgba(0, 122, 77, .07);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--gusto-shadow);
}

.auth-card {
    position: relative;
    overflow: hidden;
    border-top: .38rem solid var(--gusto-yellow);
}

.auth-card::after {
    position: absolute;
    right: -2.5rem;
    bottom: -3rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(0, 155, 97, .06);
    content: "";
    pointer-events: none;
}

.form-label {
    color: #34423b;
}

.form-control,
.form-select {
    min-height: 3.25rem;
    border: 1px solid #cfdad4;
    border-radius: .85rem;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gusto-green);
    box-shadow: 0 0 0 .24rem rgba(0, 155, 97, .14);
}

textarea.form-control {
    min-height: 6.5rem;
}

.btn {
    border-radius: .78rem;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--gusto-green);
    --bs-btn-border-color: var(--gusto-green);
    --bs-btn-hover-bg: var(--gusto-green-dark);
    --bs-btn-hover-border-color: var(--gusto-green-dark);
    --bs-btn-active-bg: var(--gusto-green-dark);
    --bs-btn-active-border-color: var(--gusto-green-dark);
    min-height: 3.1rem;
    box-shadow: 0 .55rem 1.25rem rgba(0, 155, 97, .18);
}

.btn-outline-primary {
    --bs-btn-color: var(--gusto-green-dark);
    --bs-btn-border-color: var(--gusto-green);
    --bs-btn-hover-bg: var(--gusto-green);
    --bs-btn-hover-border-color: var(--gusto-green);
}

.navbar {
    min-height: 4.5rem;
    border: 0 !important;
    background: linear-gradient(100deg, var(--gusto-green-dark), var(--gusto-green)) !important;
    box-shadow: 0 .45rem 1.5rem rgba(0, 83, 52, .18);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: .02em;
}

.navbar-brand img {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .75rem;
    object-fit: contain;
    filter: drop-shadow(0 .18rem .2rem rgba(0, 0, 0, .13));
}

.navbar .fw-semibold,
.navbar .text-secondary {
    color: #fff !important;
}

.navbar small.text-secondary {
    color: rgba(255, 255, 255, .72) !important;
}

.navbar .btn-outline-danger {
    --bs-btn-color: #172019;
    --bs-btn-border-color: var(--gusto-yellow);
    --bs-btn-bg: var(--gusto-yellow);
    --bs-btn-hover-color: #111;
    --bs-btn-hover-bg: #ffe16a;
    --bs-btn-hover-border-color: #ffe16a;
}

.dashboard-hero {
    position: relative;
    display: flex;
    min-height: 13rem;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.3rem 2.5rem;
    border-radius: 1.6rem;
    color: #fff;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 209, 46, .23), transparent 15rem),
        linear-gradient(120deg, #006f46, var(--gusto-green));
    box-shadow: 0 1.25rem 2.8rem rgba(0, 108, 68, .2);
}

.dashboard-hero::after {
    position: absolute;
    right: 8rem;
    bottom: -7rem;
    width: 16rem;
    height: 16rem;
    border: 2.5rem solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
}

.dashboard-hero > div {
    position: relative;
    z-index: 1;
}

.dashboard-hero > img {
    position: relative;
    z-index: 1;
    width: 8.5rem;
    height: 8.5rem;
    object-fit: contain;
    filter: drop-shadow(0 .75rem 1rem rgba(0, 0, 0, .2));
    transform: rotate(4deg);
}

.dashboard-hero p {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: .45rem;
    color: var(--gusto-yellow);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.touch-card {
    min-height: 11rem;
}

.module-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.module-card::after {
    position: absolute;
    right: -2.8rem;
    bottom: -3.6rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--gusto-green-soft);
    content: "";
}

.module-card:hover {
    border-color: rgba(0, 155, 97, .28);
    box-shadow: 0 1.35rem 3rem rgba(25, 56, 43, .16);
    transform: translateY(-4px);
}

.module-card .card-body {
    position: relative;
    z-index: 1;
}

.module-icon {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    border-radius: 1rem;
    background: var(--gusto-yellow);
    box-shadow: 0 .45rem 1rem rgba(239, 185, 0, .2);
}

.module-icon img {
    width: 2.7rem;
    height: 2.7rem;
    object-fit: contain;
}

.text-primary {
    color: var(--gusto-green-dark) !important;
}

.page-heading {
    padding: 1.4rem 1.5rem;
    border-left: .42rem solid var(--gusto-yellow);
    border-radius: 0 1.2rem 1.2rem 0;
    background: rgba(255, 255, 255, .72);
}

.page-heading h1 {
    color: #163c2e;
}

.order-form-shell {
    max-width: 960px;
}

.order-form-shell .card h2 {
    color: var(--gusto-green-dark);
}

.order-item-row {
    padding: .9rem;
    border: 1px solid var(--gusto-border);
    border-radius: 1rem;
    background: #fbfdfc;
}

.item-remove {
    min-height: 3.25rem;
    font-size: 1.35rem;
}

.order-total {
    color: var(--gusto-green-dark);
    font-size: 1.35rem;
}

.orders-table th {
    padding: 1rem;
    border: 0;
    color: #496158;
    background: var(--gusto-green-soft);
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.orders-table td {
    padding: 1rem;
    border-color: #edf1ef;
}

.orders-table tbody tr:hover td {
    background: #fffdf4;
}

.status-select {
    min-width: 8.5rem;
    border-left-width: .3rem;
    font-weight: 700;
}

.status-pendiente { border-left-color: #e6ac00; }
.status-preparando { border-left-color: #e67e22; }
.status-listo { border-left-color: var(--gusto-green); }
.status-entregado { border-left-color: #2672d8; }
.status-cancelado { border-left-color: #c33; }

.alert {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .55rem 1.2rem rgba(30, 50, 40, .06);
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        min-height: 11rem;
        padding: 1.7rem;
    }

    .dashboard-hero > img {
        position: absolute;
        right: -1rem;
        bottom: -1rem;
        width: 7.5rem;
        height: 7.5rem;
        opacity: .5;
    }

    .dashboard-hero > div {
        max-width: 82%;
    }

    .dashboard-hero .display-6 {
        font-size: 2rem;
    }

    .page-heading {
        padding: 1.1rem;
    }

    .orders-table td,
    .orders-table th {
        min-width: 9rem;
    }
}
.module-letter {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    border-radius: 1rem;
    color: #082d20;
    background: var(--gusto-yellow);
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 .45rem 1rem rgba(239, 185, 0, .2);
}

.promo-card {
    border-top: .35rem solid var(--gusto-yellow);
    background: linear-gradient(145deg, #fff, #fff9df);
}

.catalog-category-title {
    margin: 1.25rem 0 .55rem;
    color: var(--gusto-green-dark);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-category-title.promo-title {
    color: #8a6500;
}

.catalog-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: .65rem;
}

.menu-product {
    display: flex;
    min-height: 4.2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .7rem;
    padding: .8rem .9rem;
    border: 1px solid var(--gusto-border);
    border-radius: .9rem;
    color: var(--gusto-ink);
    background: #fff;
    text-align: left;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.menu-product:hover {
    border-color: var(--gusto-green);
    background: var(--gusto-green-soft);
    transform: translateY(-2px);
}

.menu-product strong {
    color: var(--gusto-green-dark);
}

.menu-product small {
    width: 100%;
    color: var(--gusto-muted);
}

.menu-promo {
    border-color: #f1d66d;
    background: #fff9df;
}

.order-item-row.item-added {
    border-color: var(--gusto-green);
    animation: item-pulse .5s ease;
}

@keyframes item-pulse {
    50% { background: var(--gusto-green-soft); transform: scale(1.01); }
}

.delay-timer {
    display: inline-flex;
    min-width: 5.8rem;
    justify-content: center;
    padding: .42rem .65rem;
    border-radius: 2rem;
    color: #08784e;
    background: #dff5eb;
    font-size: .82rem;
    font-weight: 850;
    white-space: nowrap;
}

.delay-timer.is-warning {
    color: #765800;
    background: #fff0b8;
}

.delay-timer.is-delayed {
    color: #a32121;
    background: #ffe0e0;
    animation: delay-pulse 1.8s infinite;
}

.delay-timer.is-finished {
    color: #65706b;
    background: #edf0ee;
}

@keyframes delay-pulse {
    50% { box-shadow: 0 0 0 .3rem rgba(195, 51, 51, .1); }
}
[hidden] {
    display: none !important;
}

.touch-search {
    display: flex;
    min-height: 3.8rem;
    align-items: center;
    overflow: hidden;
    border: 2px solid #cbd9d2;
    border-radius: 1rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.touch-search:focus-within {
    border-color: var(--gusto-green);
    box-shadow: 0 0 0 .25rem rgba(0, 155, 97, .13);
}

.touch-search > span {
    padding-left: 1rem;
    color: var(--gusto-green-dark);
    font-size: 1.7rem;
    font-weight: 800;
}

.touch-search input {
    width: 100%;
    min-height: 3.8rem;
    padding: .7rem 1rem;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05rem;
}

.touch-search button {
    align-self: stretch;
    min-width: 3.8rem;
    border: 0;
    color: var(--gusto-muted);
    background: transparent;
    font-size: 1.7rem;
}

.customer-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: .65rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: .2rem;
}

.customer-choice {
    display: flex;
    min-height: 5rem;
    flex-direction: column;
    justify-content: center;
    padding: .8rem 1rem;
    border: 1px solid var(--gusto-border);
    border-radius: 1rem;
    color: var(--gusto-ink);
    background: #fff;
    text-align: left;
    touch-action: manipulation;
}

.customer-choice span,
.customer-choice small {
    color: var(--gusto-muted);
}

.customer-choice:active,
.customer-choice.is-selected {
    border-color: var(--gusto-green);
    background: var(--gusto-green-soft);
    transform: scale(.98);
}

.menu-product {
    min-height: 5.4rem;
    padding: 1rem;
    font-size: 1rem;
    touch-action: manipulation;
    user-select: none;
}

.menu-product.menu-selected {
    border-color: var(--gusto-green);
    color: #fff;
    background: var(--gusto-green);
    transform: scale(.97);
}

.menu-product.menu-selected strong,
.menu-product.menu-selected small {
    color: #fff;
}

@media (pointer: coarse) {
    .btn {
        min-height: 3.5rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .btn-sm {
        min-height: 3rem;
    }

    .form-control,
    .form-select {
        min-height: 3.65rem;
        font-size: 1rem;
    }

    .catalog-buttons {
        grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
        gap: .85rem;
    }

    .item-remove {
        min-height: 3.65rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .order-form-shell {
        max-width: 1100px;
    }

    .menu-picker .card-body,
    .order-form-shell > form > .card .card-body {
        padding: 1.6rem !important;
    }
}
.product-admin-cell {
    display: flex;
    min-width: 18rem;
    align-items: center;
    gap: .9rem;
}

.product-thumb {
    width: 4.8rem;
    height: 4.8rem;
    flex: 0 0 4.8rem;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--gusto-green-soft);
}

.product-placeholder {
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}

.product-photo-form .btn {
    min-height: 2.5rem;
}

.menu-product-image {
    width: 3.8rem;
    height: 3.8rem;
    flex: 0 0 3.8rem;
    border-radius: .85rem;
    object-fit: cover;
    background: rgba(0, 155, 97, .1);
}

.menu-image-placeholder {
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

.menu-product-name {
    flex: 1 1 5rem;
    font-weight: 700;
}

@media (pointer: coarse) {
    .menu-product-image {
        width: 4.5rem;
        height: 4.5rem;
        flex-basis: 4.5rem;
    }
}
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.payment-option {
    position: relative;
    display: flex;
    min-height: 6rem;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 2px solid var(--gusto-border);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.payment-option:has(input:checked) {
    border-color: var(--gusto-green);
    background: var(--gusto-green-soft);
    box-shadow: 0 0 0 .2rem rgba(0,155,97,.1);
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.payment-option > span:last-child {
    display: flex;
    flex-direction: column;
}

.payment-option small {
    color: var(--gusto-muted);
}

.payment-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    border-radius: .85rem;
    color: #073a27;
    background: var(--gusto-yellow);
    font-size: 1.3rem;
    font-weight: 900;
}

.payment-badge {
    display: inline-flex;
    margin-top: .3rem;
    padding: .25rem .5rem;
    border-radius: 2rem;
    font-size: .72rem;
    font-weight: 800;
}

.payment-efectivo { color: #08784e; background: #dff5eb; }
.payment-transferencia { color: #24579c; background: #e1edff; }

.cash-summary {
    display: flex;
    min-height: 9.5rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem;
    border-radius: 1.25rem;
    color: #fff;
    box-shadow: var(--gusto-shadow);
}

.cash-summary span { font-weight: 700; opacity: .85; }
.cash-summary strong { margin: .25rem 0; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.cash-summary small { opacity: .78; }
.cash-total { background: linear-gradient(130deg, #17251f, #345247); }
.cash-money { background: linear-gradient(130deg, #00764a, var(--gusto-green)); }
.cash-transfer { background: linear-gradient(130deg, #245394, #397ed8); }

@media (max-width: 575.98px) {
    .payment-options { grid-template-columns: 1fr; }
}
.order-clickable {
    cursor: pointer;
    touch-action: manipulation;
}

.order-clickable:focus {
    outline: .2rem solid rgba(0,155,97,.3);
    outline-offset: -.2rem;
}

.order-clickable:hover td {
    background: var(--gusto-green-soft) !important;
}

.order-detail-shell {
    max-width: 1100px;
}

.detail-status {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    padding: .6rem 1rem;
    border-radius: 2rem;
    font-weight: 850;
    background: #eef1ef;
}

.detail-status.status-pendiente { color: #765800; background: #fff0b8; }
.detail-status.status-preparando { color: #9b4d0b; background: #ffe5cc; }
.detail-status.status-listo { color: #08784e; background: #dff5eb; }
.detail-status.status-entregado { color: #24579c; background: #e1edff; }
.detail-status.status-cancelado { color: #a32121; background: #ffe0e0; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.detail-grid dt {
    margin-bottom: .2rem;
    color: var(--gusto-muted);
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 0;
    font-weight: 650;
}

.detail-notes {
    padding: 1rem;
    border-radius: .8rem;
    background: #fff8dc;
}

.detail-total-row td {
    color: var(--gusto-green-dark);
    background: var(--gusto-green-soft);
    font-size: 1.15rem;
}

@media (max-width: 575.98px) {
    .detail-grid { grid-template-columns: 1fr; }
}