/* Legacy carta/menu and cart styles kept in original order.
   Extraído de site.css para poder mantener la web por bloques. */

/* =========================================================
   MÓVIL BAJO / ESTRECHO
   ========================================================= */

@media (max-width: 390px), (max-height: 760px) and (max-width: 700px) {
    .home-visual {
        min-height: 178px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .visual-content {
        min-height: 144px;
        padding-top: 52px;
    }

    .logo-card {
        width: 76px;
        height: 76px;
        border-radius: 23px;
    }

        .logo-card span {
            font-size: 26px;
        }

    .eyebrow {
        display: none;
    }

    .home-content {
        padding: 19px 18px 18px;
    }

    .top-status {
        margin-bottom: 12px;
    }

    .restaurant-header h1 {
        font-size: 37px;
    }

    .restaurant-data {
        font-size: 14px;
        margin-top: 10px;
    }

    .intro-text {
        font-size: 14px;
        margin-top: 13px;
    }

    .action-panel {
        margin-top: 18px;
        gap: 10px;
    }

    .home-action {
        min-height: 64px;
        padding: 12px;
    }

    .opening-info {
        padding: 13px 15px;
    }
}

/* =========================================================
   CARTA / MENU
   ========================================================= */

.menu-page {
    width: 100%;
    min-height: 100dvh;
    background: radial-gradient(circle at 14% 10%, rgba(239, 75, 50, .12), transparent 24%), linear-gradient(135deg, #f8f8f8, #eeeeee);
    display: flex;
    justify-content: center;
    padding: 22px;
}

.menu-shell {
    width: min(1280px, 100%);
    min-height: calc(100dvh - 44px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 30px 90px rgba(0,0,0,.14);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.menu-header {
    padding: 28px 32px 22px;
    background: linear-gradient(180deg, #f2f2f2 0%, #ffffff 70%);
    border-bottom: 1px solid #eeeeee;
}

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

.menu-back {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: #171717;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.menu-lang {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 17px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.restaurant-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.menu-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: #f1f1f1;
    color: #777;
    margin-bottom: 14px;
}

    .menu-status span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #bdbdbd;
    }

    .menu-status.open {
        background: rgba(24, 164, 99, .11);
        color: #12824f;
    }

        .menu-status.open span {
            background: #18a463;
        }

.restaurant-card h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(38px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -3.5px;
}

.restaurant-card p {
    margin: 18px 0 0;
    color: #777;
    font-size: 19px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

    .restaurant-card p i {
        width: 1px;
        height: 22px;
        background: #e4e4e4;
    }

.order-mode {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 560px;
}

.mode-option {
    min-height: 66px;
    border-radius: 22px;
    background: #f1f1f1;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    cursor: pointer;
    font-weight: 900;
}

    .mode-option.active {
        background: #171717;
        color: #fff;
        box-shadow: 0 16px 42px rgba(0,0,0,.20);
    }

    .mode-option span {
        font-size: 24px;
    }

.delivery-info {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    color: #777;
}

    .delivery-info div {
        display: inline-flex;
        align-items: baseline;
        gap: 7px;
    }

    .delivery-info strong {
        color: #171717;
        font-size: 18px;
    }

    .delivery-info span {
        font-size: 15px;
    }

.delivery-closed {
    margin-left: auto;
    font-weight: 800;
    font-size: 16px;
}

    .delivery-closed span {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        border: 4px solid #cfcfcf;
    }

/* Layout carta */

.menu-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    min-height: 520px;
}

.category-panel {
    border-right: 1px solid #eeeeee;
    background: #fafafa;
    padding: 26px 20px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

    .category-title span {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: #171717;
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 20px;
    }

    .category-title strong {
        font-size: 22px;
    }

.category-list {
    display: grid;
    gap: 10px;
}

.category-item {
    min-height: 54px;
    border-radius: 18px;
    background: transparent;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    font-weight: 850;
    cursor: pointer;
    text-align: left;
}

    .category-item:hover,
    .category-item.active {
        background: #171717;
        color: #fff;
    }

    .category-item span {
        font-size: 21px;
    }

.products-panel {
    padding: 28px;
    min-width: 0;
}

.products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

    .products-heading span {
        color: #ef4b32;
        font-size: 14px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .products-heading h2 {
        margin: 6px 0 0;
        font-size: clamp(28px, 3vw, 40px);
        letter-spacing: -1.8px;
        line-height: 1;
    }

.search-button {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 22px;
}

.mobile-categories {
    display: none;
}

.product-list {
    display: grid;
    gap: 14px;
}

.product-card {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 54px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.product-image {
    width: 112px;
    height: 96px;
    border-radius: 24px;
    background: #f4f4f4;
    display: grid;
    place-items: center;
    font-size: 42px;
}

.product-info {
    min-width: 0;
}

    .product-info h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 780;
        letter-spacing: -.7px;
    }

    .product-info p {
        margin: 8px 0 12px;
        color: #777;
        font-size: 16px;
        line-height: 1.35;
    }

    .product-info strong {
        font-size: 22px;
        letter-spacing: .4px;
    }

.add-product {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: #fff;
    color: #ef4b32;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    font-weight: 500;
}

    .add-product:hover {
        background: #ef4b32;
        color: #fff;
    }

/* Carrito */

.cart-panel {
    border-left: 1px solid #eeeeee;
    background: #fafafa;
    padding: 26px 20px;
}

.cart-card {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 44px rgba(0,0,0,.08);
    border: 1px solid #eeeeee;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .cart-header span {
        color: #ef4b32;
        font-size: 13px;
        font-weight: 950;
        text-transform: uppercase;
    }

    .cart-header strong {
        display: block;
        margin-top: 4px;
        font-size: 25px;
    }

.cart-count {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #171717;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.cart-empty {
    text-align: center;
    padding: 42px 10px;
}

    .cart-empty div {
        width: 66px;
        height: 66px;
        border-radius: 24px;
        background: #f3f3f3;
        display: grid;
        place-items: center;
        margin: 0 auto 16px;
        font-size: 30px;
    }

    .cart-empty strong {
        display: block;
        font-size: 18px;
    }

    .cart-empty p {
        color: #777;
        font-size: 14px;
        line-height: 1.35;
    }

.cart-button {
    width: 100%;
    min-height: 58px;
    border-radius: 20px;
    background: #eeeeee;
    color: #999;
    font-weight: 900;
    cursor: not-allowed;
}

.mobile-cart-button {
    display: none;
}

/* TABLET */

@media (max-width: 1100px) {
    .menu-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .cart-panel {
        display: none;
    }

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

/* MÓVIL */

@media (max-width: 760px) {
    .menu-page {
        padding: 0;
        background: #fff;
    }

    .menu-shell {
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .menu-header {
        padding: 18px 18px 16px;
        border-bottom: 0;
    }

    .menu-top {
        margin-bottom: 18px;
    }

    .menu-back {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }

    .menu-lang {
        padding: 8px 14px;
    }

    .restaurant-card h1 {
        font-size: 40px;
        letter-spacing: -2.4px;
    }

    .restaurant-card p {
        display: block;
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.35;
    }

        .restaurant-card p i {
            display: none;
        }

    .order-mode {
        margin-top: 20px;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mode-option {
        min-height: 58px;
        border-radius: 18px;
        font-size: 14px;
    }

        .mode-option span {
            font-size: 21px;
        }

    .delivery-info {
        margin-top: 12px;
        gap: 12px;
    }

        .delivery-info strong {
            font-size: 16px;
        }

        .delivery-info span {
            font-size: 13px;
        }

    .delivery-closed {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .menu-layout {
        display: block;
        padding-bottom: 92px;
    }

    .category-panel {
        display: none;
    }

    .products-panel {
        padding: 16px 18px 22px;
    }

    .products-heading {
        margin-bottom: 14px;
    }

        .products-heading h2 {
            font-size: 30px;
        }

    .search-button {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .mobile-categories {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 4px 0 16px;
        scrollbar-width: none;
    }

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

    .mobile-category {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 16px;
        border-radius: 999px;
        background: #f1f1f1;
        color: #555;
        font-weight: 850;
        cursor: pointer;
    }

        .mobile-category.active {
            background: #171717;
            color: #fff;
        }

    .product-list {
        gap: 12px;
    }

    .product-card {
        min-height: 124px;
        grid-template-columns: 82px minmax(0, 1fr) 44px;
        gap: 14px;
        padding: 14px;
        border-radius: 24px;
        box-shadow: none;
    }

    .product-image {
        width: 82px;
        height: 82px;
        border-radius: 20px;
        font-size: 34px;
    }

    .product-info h3 {
        font-size: 21px;
    }

    .product-info p {
        font-size: 14px;
        margin: 6px 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-info strong {
        font-size: 20px;
    }

    .add-product {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        font-size: 25px;
    }

    .mobile-cart-button {
        position: fixed;
        left: 18px;
        right: 18px;
        bottom: 18px;
        z-index: 20;
        min-height: 64px;
        border-radius: 24px;
        background: #171717;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 18px;
        box-shadow: 0 20px 50px rgba(0,0,0,.24);
        cursor: pointer;
    }

        .mobile-cart-button span {
            font-size: 24px;
        }

        .mobile-cart-button strong {
            flex: 1;
            text-align: left;
            font-size: 18px;
        }

        .mobile-cart-button em {
            font-style: normal;
            font-weight: 900;
        }
}

/* MÓVIL PEQUEÑO */

@media (max-width: 390px) {
    .restaurant-card h1 {
        font-size: 36px;
    }

    .products-heading h2 {
        font-size: 27px;
    }

    .product-card {
        grid-template-columns: 76px minmax(0, 1fr) 40px;
        gap: 11px;
        padding: 12px;
    }

    .product-image {
        width: 76px;
        height: 76px;
    }

    .product-info h3 {
        font-size: 19px;
    }

    .product-info p {
        font-size: 13px;
    }
}

