:root {
    --primary: #4cae4c;
    --secondary: #211c1c;
    --accent: #df6626;

    --background: #0d0d0d;
    --surface: #171717;
    --surface-light: #222222;

    --text: #ffffff;
    --text-muted: #a5a5a5;
    --border: rgba(255,255,255,.09);

    --primary-contrast: #ffffff;
    --secondary-contrast: #ffffff;
    --accent-contrast: #ffffff;

    --header-bg: rgba(13,13,13,.88);
    --categories-bg: rgba(13,13,13,.94);
    --overlay-bg: rgba(0,0,0,.72);

    --radius: 16px;
    --font: Inter, Arial, sans-serif;

    --content-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 32%),
        var(--background);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font);
}

button {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(var(--content-width), 100%);
    height: 72px;
    margin: 0 auto;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-login-button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--secondary-contrast) 6%, var(--secondary));
    color: var(--text);
    cursor: pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}



/* Botón de cierre de sesión */
.header-logout-button {
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
    border-radius: 21px;
    background: color-mix(in srgb, var(--secondary-contrast) 6%, var(--secondary));
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.header-logout-button:hover {
    transform: translateY(-1px);
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.header-logout-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.header-logout-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.header-logout-button.hidden {
    display: none;
}

@media (max-width: 520px) {
    .header-logout-button {
        width: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .header-logout-button span {
        display: none;
    }
}

.header-login-button:hover {
    transform: translateY(-1px);
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
}

.header-login-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.header-login-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.header-login-label {
    display: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.header-login-button.logged-in {
    width: auto;
    min-width: 42px;
    max-width: min(320px, 55vw);
    padding: 0 13px;
    gap: 8px;
}

.header-login-button.logged-in .header-login-label {
    display: inline;
}

@media (max-width: 520px) {

    .header-login-button.logged-in {
        max-width: 190px;
        padding: 0 10px;
    }

    .header-login-label {
        max-width: 145px;
        font-size: 13px;
    }

}

.restaurant-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
}




/* =========================================================
   LOADING / ERROR
========================================================= */

.loading {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.loading-spinner {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    width: min(500px, calc(100% - 32px));
    margin: 90px auto;
    padding: 30px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.error-message h2 {
    margin-top: 0;
}

.error-message p {
    color: var(--text-muted);
}

.error-message button {
    margin-top: 12px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
color: var(--primary-contrast);
    cursor: pointer;
    font-weight: 700;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 42px 20px 30px;
    text-align: center;
}

.hero-content {
    width: min(760px, 100%);
    margin: 0 auto;
}

.hero-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    max-height: 105px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.5px;
}

.hero p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    position: sticky;
    top: 72px;
    z-index: 80;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 13px max(20px, calc((100% - var(--content-width)) / 2));
    background: var(--categories-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid color-mix(in srgb, var(--secondary-contrast) 4%, transparent);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-button {
    flex: 0 0 auto;
    padding: 10px 17px;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 10%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary-contrast) 5%, var(--secondary));
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.category-button:hover {
    border-color: color-mix(in srgb, var(--secondary-contrast) 18%, transparent);
    color: var(--text);
}

.category-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-section {
    min-height: 50vh;
}

.products-container {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 30px 22px 120px;
}

/* =========================================================
   CONTENEDOR PRINCIPAL DEL MENÚ
========================================================= */

/*
 * #products es el contenedor de TODAS las categorías.
 * Debe ser vertical, no un grid.
 */

#products {
    display: block;
}


/*
 * Cada categoría tiene su propio grid de productos.
 */

.category-section .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.13);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.15);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.product-image {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: cover;
    background: var(--surface-light);
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 17px 17px;
}

.product-name {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 750;
    color: var(--text);
}

.product-description {
    min-height: 42px;
    margin: 0 0 17px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.product-button {
    min-width: 82px;
    padding: 10px 14px;

    border: 2px solid var(--primary);
    border-radius: 10px;

    background: var(--primary);
    color: var(--primary-contrast);

    cursor: pointer;

    font-size: 13px;
    font-weight: 750;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.product-button:hover {
    transform: translateY(-1px);

    background: var(--surface-light);

    border-color: var(--primary);

    box-shadow:
        0 6px 18px rgba(0,0,0,.25);
}

/* =========================================================
   CART
========================================================= */

.cart-panel {
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
}

.cart-panel.open {
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    opacity: 0;
    transition: opacity .25s ease;
}

.cart-panel.open .cart-overlay {
    opacity: 1;
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.25);
}

.cart-panel.open .cart-content {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.cart-header span {
    color: var(--text-muted);
    font-size: 12px;
}

.close-cart {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
}

.empty-cart {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.cart-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.cart-item-name {
    font-weight: 650;
}

.cart-item-option {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.cart-item-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control button {
    width: 29px;
    height: 29px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--text);
    cursor: pointer;
}

.cart-footer {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.checkout-button {
    width: 100%;
    padding: 15px;

    border: 2px solid var(--primary);
    border-radius: 11px;

    background: var(--primary);
    color: var(--primary-contrast);

    font-weight: 800;
    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-1px);

    background: var(--surface-light);

    border-color: var(--primary);

    box-shadow:
        0 6px 18px rgba(0,0,0,.25);
}

.checkout-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 10%, transparent);
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.modal-product-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

.modal-product-body {
    padding: 22px;
}

.modal-product-body h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.modal-product-description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
}

.modal-options {
    margin-top: 20px;
}

.option-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.option-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
    color: var(--text);
    outline: none;
}

.option-select:focus {
    border-color: var(--primary);
}

.modal-bottom {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.modal-product-price {
    font-size: 21px;
    font-weight: 800;
}

.add-product-button {
    padding: 13px 18px;

    border: 2px solid var(--primary);
    border-radius: 10px;

    background: var(--primary);
    color: var(--primary-contrast);

    cursor: pointer;

    font-weight: 800;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.add-product-button:hover {
    transform: translateY(-1px);

    background: var(--surface-light);

    border-color: var(--primary);

    box-shadow:
        0 6px 18px rgba(0,0,0,.25);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    #products {
        display: block;
    }

    .category-section .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 220px;
    }

}

@media (max-width: 620px) {
    .header-inner {
        height: 64px;
        padding: 8px 15px;
    }

    .restaurant-logo {
        max-width: 150px;
        max-height: 44px;
    }

    .cart-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .hero {
        padding: 30px 16px 22px;
    }

    .hero-logo {
        max-width: 175px;
        max-height: 85px;
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .categories {
        top: 64px;
        padding: 10px 14px;
    }

    .category-button {
        padding: 9px 14px;
        font-size: 12px;
    }

    .products-container {
        padding: 22px 14px 110px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-image {
        height: 225px;
    }

    .product-body {
        padding: 15px;
    }

    .product-name {
        font-size: 17px;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
    }

    .modal-product-image {
        height: 250px;
    }

    .modal-product-body {
        padding: 18px;
    }
}

/* ============================================================
   MENÚ POR SECCIONES
============================================================ */

.category-section {
    scroll-margin-top: 150px;
    margin-bottom: 58px;
}

.category-title {
    margin: 0 0 20px;
    padding-bottom: 12px;

    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;

    color: var(--text);

    border-bottom: 1px solid rgba(255,255,255,.08);
}

/*
|--------------------------------------------------------------------------
| GRID DE PRODUCTOS
|--------------------------------------------------------------------------
|
| El JS genera:
|
| <div class="products">
|
| Por eso usamos .products y no .products-grid.
|
*/

.category-section .products {
    margin-top: 0;
}


/*
|--------------------------------------------------------------------------
| CATEGORÍA VACÍA
|--------------------------------------------------------------------------
*/

.empty-category {
    padding: 28px 20px;

    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 16px;

    color: var(--text-muted);

    text-align: center;

    background: color-mix(in srgb, var(--secondary-contrast) 2%, var(--secondary));
}


/*
|--------------------------------------------------------------------------
| HOVER DE LA SECCIÓN
|--------------------------------------------------------------------------
*/

.category-section .product-card {
    min-height: 100%;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .category-section {
        scroll-margin-top: 145px;
        margin-bottom: 50px;
    }

}


/*
|--------------------------------------------------------------------------
| MÓVIL
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .header-inner {
        height: 64px;
        padding: 8px 15px;
    }

    .restaurant-logo {
        max-width: 150px;
        max-height: 44px;
    }

    .cart-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .hero {
        padding: 30px 16px 22px;
    }

    .hero-logo {
        max-width: 175px;
        max-height: 85px;
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .categories {
        top: 64px;
        padding: 10px 14px;
    }

    .category-button {
        padding: 9px 14px;
        font-size: 12px;
    }

    .products-container {
        padding: 22px 14px 110px;
    }

    /*
     * Una columna de productos en celular.
     */

    .category-section .products {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-image {
        height: 225px;
    }

    .product-body {
        padding: 15px;
    }

    .product-name {
        font-size: 17px;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
    }

    .modal-product-image {
        height: 250px;
    }

    .modal-product-body {
        padding: 18px;
    }

}

/* ============================================================
   MÓVIL
============================================================ */

@media (max-width: 700px) {

    .category-section {
        scroll-margin-top: 128px;
        margin-bottom: 44px;
    }

    .category-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
        font-size: 1.3rem;
    }

}
/* =========================================================
   CARRITO FLOTANTE
========================================================= */

.cart-button.has-items {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 250;
    width: auto;
    min-width: 58px;
    height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    box-shadow:
        0 8px 30px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 620px) {

    .cart-button.has-items {
        right: 14px;
        bottom: 14px;
        min-width: 58px;
        height: 52px;
    }

}

/* =========================================================
   CARRITO FLOTANTE
========================================================= */

.cart-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 250;

    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 54px;
    padding: 0 20px;

    border: 0;
    border-radius: 999px;

    background: var(--primary);
    color: var(--primary-contrast);

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 8px 30px rgba(0,0,0,.35);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.cart-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);

    box-shadow:
        0 12px 35px rgba(0,0,0,.42);
}

.cart-button.visible {
    display: flex;
}

.cart-button-icon {
    font-size: 20px;
    line-height: 1;
}

.cart-button-text {
    white-space: nowrap;
}
/* =========================================================
   CARRITO FLOTANTE
========================================================= */

.cart-button {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);

    z-index: 250;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 250px;
    height: 58px;

    padding: 0 24px;

    border: 0;
    border-radius: 999px;

    background: var(--primary);
    color: var(--primary-contrast);

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(0,0,0,.35);

    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease;
}

.cart-button:hover {
    transform: translateX(-50%) translateY(-2px);
    filter: brightness(1.05);

    box-shadow:
        0 16px 40px rgba(0,0,0,.42);
}

.cart-button-icon {
    font-size: 22px;
    line-height: 1;
}

.cart-button-text {
    white-space: nowrap;
}

@media (max-width: 620px) {

    .cart-button {
        left: 50%;
        bottom: 16px;

        min-width: 240px;
        height: 56px;

        padding: 0 22px;

        font-size: 15px;
    }

    .cart-button-icon {
        font-size: 21px;
    }

}

/* =========================================================
   CARRITO FLOTANTE
========================================================= */

.floating-cart {
    width: min(420px, calc(100% - 30px));
    max-width: 420px;
    margin: 0 auto;
}

/* Escritorio */
@media (min-width: 769px) {

    .floating-cart {
        width: 380px;
        max-width: 380px;
    }

}

/* Móvil */
@media (max-width: 768px) {

    .floating-cart {
        width: calc(100% - 30px);
        max-width: none;
    }

}

/* =========================================================
   CHECKOUT - ESTILO COMPACTO
   ========================================================= */

.checkout-content {
    width: min(720px, 94%);
    max-height: 92vh;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 10%, transparent);
    border-radius: 18px;
}

/* Contenido */

.checkout-body {
    padding: 28px 30px 24px;
}

/* Título */

.checkout-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.checkout-subtitle {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   SECCIONES
   ========================================================= */

.checkout-section {
    margin-bottom: 24px;
}

.checkout-section h3 {
    margin: 14 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* =========================================================
   CAMPOS
   ========================================================= */

.checkout-field {
    margin-bottom: 14px;
}

.checkout-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.checkout-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;

    box-sizing: border-box;

    background: var(--surface);
    color: var(--text);

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
    border-radius: 10px;

    font-size: 14px;

    outline: none;

    transition:
        border-color .18s ease,
        background .18s ease;
}

.checkout-field input:focus {
    border-color: var(--primary);
    background: var(--surface);
}

.checkout-field input::placeholder {
    color: var(--text-muted);
}

/* =========================================================
   CHECKOUT / LOGIN DESDE ENCABEZADO
========================================================= */

.checkout-account-only .checkout-section,
.checkout-account-only #checkout-error,
.checkout-account-only #pay-button,
.checkout-account-only #back-to-cart {
    display: none !important;
}

.checkout-account-only .checkout-account-section {
    margin-bottom: 0;
}

/* =========================================================
   CUENTA / REGISTRO / LOGIN
   ========================================================= */

.checkout-account-section {
    margin-bottom: 24px;
}

.checkout-account-section > h3,
.checkout-login h3 {
    margin: 14px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.checkout-account-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-account-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    box-sizing: border-box;

    background: var(--surface);
    color: var(--text);

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
    border-radius: 10px;

    font-size: 14px;
    outline: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        opacity .18s ease;
}

.checkout-account-form input:focus {
    border-color: var(--primary);
    background: var(--surface);
}

.checkout-account-form input::placeholder {
    color: var(--text-muted);
}

.checkout-account-form input:read-only {
    opacity: .65;
    cursor: default;
}

.checkout-account-button,
.checkout-login-button {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .18s ease,
        opacity .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.checkout-account-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--primary-contrast);
}

.checkout-login {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.checkout-login p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.checkout-login-button {
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 14%, transparent);
    background: var(--surface-light);
    color: var(--text);
}

.checkout-login-button:hover:not(:disabled),
.checkout-account-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.checkout-login-button:hover:not(:disabled) {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--secondary-contrast) 22%, transparent);
}

.checkout-account-button:disabled,
.checkout-login-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.checkout-login-icon {
    margin-right: 6px;
}

/* =========================================================
   CUENTA / REGISTRO / LOGIN
   ========================================================= */

.checkout-account-description {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}


.checkout-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


.checkout-account-action {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .18s ease,
        opacity .18s ease,
        background .18s ease,
        border-color .18s ease;
}


.checkout-account-register-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--primary-contrast);
}


.checkout-account-action.checkout-login-button {
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 14%, transparent);
    background: var(--surface-light);
    color: var(--text);
}


.checkout-account-action:hover {
    transform: translateY(-1px);
}


.checkout-account-action.checkout-login-button:hover {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--secondary-contrast) 22%, transparent);
}


.checkout-account-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}


.checkout-account-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
}


.checkout-account-panel p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}


@media (max-width: 420px) {

    .checkout-account-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MEDIOS DE PAGO
   ========================================================= */

.checkout-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 10px 13px;

    box-sizing: border-box;

    background: var(--surface-light);

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 8%, transparent);
    border-radius: 10px;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.payment-option:hover {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--secondary-contrast) 16%, transparent);
}

.payment-option input {
    margin: 0 9px 0 0;
    accent-color: var(--primary);
}

.payment-option label {
    margin: 0;
    cursor: pointer;

    font-size: 14px;
    color: var(--text);
}

/* =========================================================
   RESUMEN
   ========================================================= */

.checkout-summary {
    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 8%, transparent);
    border-radius: 12px;

    overflow: hidden;
}

.checkout-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 14px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.checkout-summary-item:last-child {
    border-bottom: 0;
}

.checkout-summary-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.checkout-summary-item strong {
    font-size: 14px;
    font-weight: 650;
}

.checkout-summary-item span,
.checkout-summary-item small {
    color: var(--text-muted);
    font-size: 12px;
}

.checkout-summary-item > strong:last-child {
    white-space: nowrap;
    color: var(--text);
}

/* =========================================================
   TOTAL
   ========================================================= */

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;
    padding: 14px 2px 0;

    border-top: 1px solid rgba(255,255,255,.08);

    font-size: 16px;
}

.checkout-total strong {
    font-size: 20px;
    font-weight: 800;
}

/* =========================================================
   ERROR
   ========================================================= */

.checkout-error {
    margin: 12px 0;

    padding: 10px 12px;

    border-radius: 9px;

    background: rgba(220,38,38,.10);
    border: 1px solid rgba(220,38,38,.25);

    color: #f01616;

    font-size: 13px;
}

/* =========================================================
   PAGAR
   ========================================================= */

.checkout-content .checkout-button {
    width: 100%;

    height: 46px;

    padding: 0 16px;

    border: 1px solid var(--primary);
    border-radius: 10px;

    background: var(--primary);
    color: var(--primary-contrast);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .18s ease,
        opacity .18s ease,
        background .18s ease;
}

.checkout-content .checkout-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.checkout-content .checkout-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================
   VOLTAR AO CARRINHO
   ========================================================= */

.checkout-back-button {
    display: block;

    width: auto;

    margin: 10px auto 0;
    padding: 7px 14px;

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 10%, transparent);
    border-radius: 8px;

    background: transparent;
    color: var(--text-muted);

    font-size: 12px;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.checkout-back-button:hover {
    color: var(--text);
    background: var(--surface-light);
    border-color: color-mix(in srgb, var(--secondary-contrast) 18%, transparent);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .checkout-content {
        width: 94%;
        max-height: 94vh;
        border-radius: 16px;
    }

    .checkout-body {
        padding: 22px 18px 20px;
    }

    .checkout-body h2 {
        font-size: 22px;
    }

    .checkout-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .checkout-section {
        margin-bottom: 20px;
    }

    .checkout-section h3 {
        font-size: 17px;
        margin-bottom: 11px;
    }

    .checkout-field {
        margin-bottom: 11px;
    }

    .checkout-field label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .checkout-field input {
        height: 44px;
        font-size: 14px;
        border-radius: 9px;
    }

    .payment-option {
        min-height: 42px;
        padding: 8px 11px;
    }

    .payment-option label {
        font-size: 13px;
    }

    .checkout-summary-item {
        padding: 10px 11px;
    }

    .checkout-content .checkout-button {
        height: 44px;
        font-size: 14px;
    }

}

/* =========================================================
   MÉTODO DE ENTREGA
   ========================================================= */

.delivery-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


.delivery-option {
    position: relative;

    display: block;

    padding: 13px;

    background: var(--surface-light);

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 8%, transparent);
    border-radius: 11px;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}


.delivery-option:hover {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--secondary-contrast) 16%, transparent);
}


.delivery-option.active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--secondary-contrast) 6%, var(--secondary));
}


.delivery-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.delivery-option-content {
    display: flex;
    align-items: center;

    gap: 11px;
}


.delivery-option-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--surface);

    font-size: 19px;
}


.delivery-option-text {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.delivery-option-text strong {
    font-size: 14px;

    color: var(--text);
}


.delivery-option-text small {
    font-size: 11px;

    line-height: 1.35;

    color: var(--text-muted);
}


/* =========================================================
   SELECCIÓN
   ========================================================= */

.delivery-option:has(input:checked) {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 8%,
            var(--surface-light)
        );
}


.delivery-option:has(input:checked)
.delivery-option-icon {
    background: var(--primary);

    color: var(--primary-contrast);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .delivery-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    .delivery-option {
        padding: 11px;
    }


    .delivery-option-icon {
        width: 36px;
        height: 36px;
    }

}
/* =========================================================
   DELIVERY DINÁMICO
   ========================================================= */

.delivery-option.hidden {
    display: none;
}

.delivery-quote-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.4;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-light));
    color: var(--text);
}

.delivery-quote-status[data-type="success"] {
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.delivery-quote-status[data-type="loading"] {
    opacity: .75;
}

.delivery-quote-status[data-type="info"] {
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
}

.checkout-summary-delivery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--secondary-contrast) 10%, transparent);
    font-size: 13px;
    color: var(--text);
}

.checkout-summary-delivery strong {
    color: var(--primary);
}


/* =========================================================
   CHECKOUT — PRESENTACIÓN MEJORADA
   ========================================================= */

.checkout-content {
    width: min(760px, 94%);
    max-height: 94vh;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 12%, transparent);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.checkout-body {
    padding: 30px 32px 26px;
}

.checkout-body > h2 {
    letter-spacing: -.02em;
}

.checkout-subtitle {
    max-width: 620px;
}

/* Cada bloque queda visualmente separado */
.checkout-section,
.checkout-account-section {
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 9%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-light) 58%, var(--surface));
}

.checkout-section:last-of-type {
    margin-bottom: 18px;
}

.checkout-section-title,
.checkout-account-section > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary-contrast) 9%, transparent);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.checkout-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
    font-size: 17px;
}

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-field input {
    background: var(--surface-light);
}

.checkout-field input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

/* =========================================================
   MEDIOS DE PAGO — MISMO LENGUAJE VISUAL QUE DELIVERY
   ========================================================= */

.checkout-payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.payment-option {
    position: relative;
    display: block;
    min-height: 76px;
    padding: 11px 13px;
    box-sizing: border-box;
    background: var(--surface-light);
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 9%, transparent);
    border-radius: 13px;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.payment-option:hover {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--secondary-contrast) 18%, transparent);
    transform: translateY(-1px);
}

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

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 52px;
}

.payment-option-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 44px;
    flex: 0 0 132px;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
}

.payment-option-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-option-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-option-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.payment-option-text small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.payment-option-check {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid color-mix(in srgb, var(--secondary-contrast) 20%, transparent);
    border-radius: 50%;
    box-sizing: border-box;
}

.payment-option-check::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform .15s ease;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 7%, var(--surface-light));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 8%, transparent);
}

.payment-option:has(input:checked) .payment-option-check {
    border-color: var(--primary);
}

.payment-option:has(input:checked) .payment-option-check::after {
    transform: scale(1);
}

.payment-option:focus-within {
    outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
    outline-offset: 2px;
}

/* Estado vacío */
.payment-methods-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 13px;
    border: 1px dashed color-mix(in srgb, var(--secondary-contrast) 16%, transparent);
    border-radius: 12px;
    color: var(--text-muted);
}

.payment-methods-empty > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-methods-empty strong {
    color: var(--text);
    font-size: 13px;
}

.payment-methods-empty small {
    font-size: 11px;
}

.payment-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--surface-light);
    font-size: 18px;
}

/* =========================================================
   RESUMEN — MÁS JERARQUÍA
   ========================================================= */

.checkout-summary {
    background: var(--surface);
    border-radius: 13px;
}

.checkout-summary-item {
    padding: 12px 13px;
}

.checkout-total {
    margin-top: 14px;
    padding-top: 15px;
    font-size: 15px;
}

.checkout-total strong {
    color: var(--primary);
    font-size: 22px;
}

/* =========================================================
   BOTÓN FINAL
   ========================================================= */

.checkout-content .checkout-button {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 18%, transparent);
}

.checkout-content .checkout-button:hover:not(:disabled) {
    box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 25%, transparent);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .checkout-content {
        width: 94%;
        max-height: 95vh;
        border-radius: 17px;
    }

    .checkout-body {
        padding: 22px 15px 20px;
    }

    .checkout-section,
    .checkout-account-section {
        padding: 14px;
        margin-bottom: 13px;
        border-radius: 14px;
    }

    .checkout-section-title,
    .checkout-account-section > h3 {
        margin-bottom: 12px;
        padding-bottom: 9px;
        font-size: 15px;
    }

    .checkout-section-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 15px;
    }

    .payment-option {
        min-height: 68px;
        padding: 9px;
    }

    .payment-option-content {
        gap: 9px;
    }

    .payment-option-logo {
        width: 96px;
        height: 38px;
        flex-basis: 96px;
    }

    .payment-option-text strong {
        font-size: 13px;
    }

    .payment-option-text small {
        font-size: 10px;
    }

    .payment-option-check {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

}


/* =========================================================
   PROGRAMACIÓN DE PEDIDOS
   ========================================================= */

.hours-schedule-modal {
    z-index: 1200;
}

.hours-schedule-content {
    max-width: 520px;
}

.hours-schedule-body {
    padding: 34px 28px 28px;
}

.hours-schedule-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface-light));
    font-size: 26px;
}

.hours-schedule-body h2 {
    margin: 0 0 10px;
}

.hours-schedule-message {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.hours-schedule-next {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-light));
    color: var(--text);
    font-size: 13px;
}

.hours-schedule-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.hours-schedule-fields label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.hours-schedule-fields input,
.hours-schedule-fields select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 16%, transparent);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--surface-light);
    color: var(--text);
    font: inherit;
}

.hours-schedule-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff1f2;
    color: #be123c;
    font-size: 13px;
    line-height: 1.4;
}

.hours-schedule-confirm {
    margin-top: 18px;
    width: 100%;
}

.hours-schedule-cancel {
    width: 100%;
    margin-top: 8px;
}

.checkout-summary-schedule {
    color: var(--primary);
}

@media (max-width: 620px) {
    .hours-schedule-body {
        padding: 28px 20px 22px;
    }

    .hours-schedule-fields {
        grid-template-columns: 1fr;
    }
}


/*
|--------------------------------------------------------------------------
| OPCIONES DE PRODUCTO - FOODPANEL
|--------------------------------------------------------------------------
*/

.product-option-group {
    margin-top: 18px;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

.option-help {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.option-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-checkbox-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.option-checkbox-item:hover {
    border-color: var(--primary);
}

.option-checkbox-item input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: var(--primary);
    cursor: pointer;
}

.option-checkbox-content {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.option-checkbox-content strong {
    font-size: 13px;
    line-height: 1.35;
}

.option-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.option-badge.required {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.option-badge.optional {
    background: color-mix(in srgb, var(--text-muted) 12%, transparent);
    color: var(--text-muted);
}

.option-validation-error {
    display: block;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

.option-validation-error.hidden {
    display: none;
}


/* ============================================================
   OPCIONES DE PRODUCTO - OBLIGATORIAS / OPCIONALES
============================================================ */

.product-option-group + .product-option-group {
    margin-top: 22px;
}

.option-checkbox-content {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.option-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.option-price {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.option-required input[type="radio"] {
    accent-color: var(--primary);
}

.option-checkbox-item.option-required {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

@media (max-width: 620px) {
    .option-checkbox-content {
        align-items: flex-start;
    }

    .option-price-wrap {
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }
}

/* =========================================================
   FOOTER DEL RESTAURANTE
========================================================= */

.restaurant-footer {
    margin-top: 56px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--secondary) 94%, var(--secondary-contrast));
    color: var(--text);
}

.restaurant-footer-inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 48px 22px 22px;
}

.restaurant-footer-grid {
    display: grid;
    grid-template-columns: minmax(1.3fr, 1.7fr) repeat(2, minmax(180px, 1fr));
    gap: 34px;
}

.restaurant-footer-brand {
    min-width: 0;
}

.restaurant-footer-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
    margin-bottom: 16px;
}

.restaurant-footer-brand h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.restaurant-footer-brand p {
    max-width: 340px;
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.restaurant-footer-column h3 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 11px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.footer-contact-line a,
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .18s ease;
}

.footer-contact-line a:hover,
.footer-link:hover {
    color: var(--primary);
}

.footer-contact-icon {
    width: 18px;
    flex: 0 0 18px;
    color: var(--primary);
    text-align: center;
    font-weight: 700;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color .18s ease, transform .18s ease;
}

.footer-social-link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-link svg path:not(:only-child) {
    fill: currentColor;
    stroke: none;
}

.footer-social-link[aria-label="facebook"] svg,
.footer-social-link[aria-label="tiktok"] svg,
.footer-social-link[aria-label="youtube"] svg,
.footer-social-link[aria-label="x"] svg {
    fill: currentColor;
    stroke: none;
}

.footer-link {
    display: block;
    margin: 0 0 11px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.restaurant-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.footer-powered {
    white-space: nowrap;
}

.footer-powered a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

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

/* =========================================================
   WHATSAPP FIJO
   Se mantiene separado del carrito flotante.
========================================================= */

.restaurant-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 260;

    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid color-mix(in srgb, var(--secondary-contrast) 14%, transparent);
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-contrast);
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    text-decoration: none;

    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* El botón ahora es exclusivamente el icono. */
.restaurant-whatsapp span {
    display: none;
}

.restaurant-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    filter: brightness(1.04);
}

.restaurant-whatsapp svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
    flex: 0 0 27px;
}

@media (max-width: 820px) {
    .restaurant-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .restaurant-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .restaurant-footer-inner {
        padding: 38px 18px 18px;
    }

    .restaurant-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .restaurant-footer-brand {
        grid-column: auto;
    }

    .restaurant-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .restaurant-whatsapp {
        right: 14px;
        bottom: 78px;
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .restaurant-whatsapp svg {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }
}
