/* Customer-facing Digital Menu Styles (Mobile First, High-Performance) */

.menu-app {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-page);
    position: relative;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 12px));
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
    transition: max-width var(--duration-normal, 250ms) ease;
}

/* 0. Floating / Header Language Switcher */
.lang-switch-container {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 180ms ease;
    user-select: none;
}

.lang-btn .flag-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.lang-btn:hover {
    color: #FFFFFF;
}

.lang-btn.active {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 1. Header Section */
.restaurant-hero {
    position: relative;
    width: 100%;
    min-height: 230px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px 20px;
    overflow: hidden;
}

.restaurant-hero-overlay {
    position: absolute;
    inset: 0;
    /* High-contrast multi-stop scrim gradient protecting text against light/dark/busy photos */
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.25) 0%, 
        rgba(0, 0, 0, 0.55) 45%, 
        rgba(0, 0, 0, 0.85) 80%, 
        var(--bg-page) 100%
    );
    pointer-events: none;
}

.restaurant-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.restaurant-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg, 1rem);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: #111;
    flex-shrink: 0;
}

.restaurant-meta {
    flex: 1;
    min-width: 0;
}

.restaurant-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
    margin-bottom: 2px;
    line-height: 1.2;
}

.restaurant-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

.restaurant-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    min-height: 38px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 150ms ease, transform 150ms var(--ease-spring), border-color 150ms ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-pill-sm:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-pill-icon {
    padding: 8px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
    border-radius: 50%;
}

.btn-pill-icon svg {
    display: block;
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.btn-pill-icon:hover svg {
    transform: scale(1.15);
}

.btn-pill-google {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-pill-google:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(245, 158, 11, 0.75);
    transform: translateY(-1px);
}

/* 2. Search & Filter Bar */
.search-container {
    padding: 12px 20px;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-box:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

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

/* 3. Promotional Carousel */
.promo-carousel-wrap {
    padding: 8px 0 16px;
    position: relative;
    overflow: hidden;
}

.promo-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 20px;
    gap: 14px;
}

.promo-track::-webkit-scrollbar {
    display: none;
}

.promo-slide {
    flex: 0 0 88%;
    scroll-snap-align: center;
    position: relative;
    border-radius: var(--radius-lg, 1.25rem);
    overflow: hidden;
    height: 180px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.promo-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
}

.promo-slide:hover .promo-slide-img {
    transform: scale(1.04);
}

.promo-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.25) 80%, rgba(0, 0, 0, 0.15) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
}

.promo-badge {
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--color-accent);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.promo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.25;
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.35;
}

.promo-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.promo-price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: #38BDF8 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.promo-price-old {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: line-through;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* 4. Sticky Category Bar */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-page);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    gap: 8px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: all 180ms var(--ease-spring);
    cursor: pointer;
}

.category-pill.active {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px var(--color-accent-subtle);
    transform: translateY(-1px);
}

.category-pill:active {
    transform: scale(0.96);
}

/* 5. Products Section */
.menu-section {
    padding: 24px 20px 8px;
    scroll-margin-top: 65px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg, 1rem);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: transform 180ms var(--ease-spring), border-color 180ms ease, box-shadow 180ms ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.product-card:active {
    transform: scale(0.985);
}

.product-card-img-wrap {
    width: 105px;
    height: 105px;
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Skeleton shimmer placeholder */
.product-card-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s infinite linear;
    pointer-events: none;
    z-index: 1;
    transition: opacity 300ms ease;
}

.product-card-img-wrap.img-loaded::before {
    opacity: 0;
    animation: none;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transform: none;
    transition: transform 250ms ease, opacity 250ms ease;
    position: relative;
    z-index: 2;
}

.product-card-img.loaded,
.product-card-img-wrap.img-loaded .product-card-img {
    opacity: 1;
    filter: none;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-badge-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    margin-bottom: 4px;
    width: fit-content;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-prev-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-tags-mini {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag-mini {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-surface);
    border-radius: 1.75rem 1.75rem 0 0;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 300ms var(--ease-spring);
    position: relative;
}

.modal-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    margin: 12px auto 6px;
}

.sheet-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.sheet-img-wrap {
    width: 100%;
    height: 260px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.sheet-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s infinite linear;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 250ms ease;
}

.sheet-img-wrap.img-loaded::before {
    opacity: 0;
    animation: none;
}

.sheet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transform: none;
    transition: opacity 300ms ease;
    position: relative;
    z-index: 2;
}

.sheet-img.loaded,
.sheet-img-wrap.img-loaded .sheet-img {
    opacity: 1;
    filter: none;
}

.sheet-body {
    padding: 24px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.sheet-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sheet-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
}

.sheet-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.sheet-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.meta-box {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.meta-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-box-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tags-section {
    margin-top: 16px;
}

.tags-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-page);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* 7. Modal Dialog (WiFi / Info) */
.dialog-box {
    width: 90%;
    max-width: 440px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg, 1.25rem);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: scale(0.95);
    transition: transform 250ms var(--ease-spring);
    margin: auto;
}

.modal-overlay.active .dialog-box {
    transform: scale(1);
}

@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
    }
    .dialog-box {
        width: 100%;
        max-width: 100%;
        margin-top: auto;
        margin-bottom: 0;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        padding: 20px 20px 32px;
        transform: translateY(30px);
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-overlay.active .dialog-box {
        transform: translateY(0);
    }
}

/* Empty search state */
.empty-search-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* 8. Subtle Discreet Footer */
.menu-saas-footer {
    margin: 32px 20px 20px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.saas-discrete-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all 150ms ease;
    opacity: 0.85;
}

.saas-discrete-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-1px);
}

.saas-footer-brand {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.saas-footer-brand a {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.saas-footer-brand a:hover {
    opacity: 1;
}

.saas-footer-brand strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Share modal channels */
.share-channel-btn {
    transition: transform 150ms var(--ease-spring);
}

.share-channel-btn:hover {
    transform: translateY(-2px);
}

.share-channel-btn:active {
    transform: scale(0.95);
}

.btn-pill-share {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-pill-share:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Accessible focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 2px !important;
}

/* Smooth filtering transition for product cards */
.product-card {
    transition: transform 200ms var(--ease-spring), opacity 150ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Bottom sheet drag bar feedback */
.sheet-handle {
    cursor: grab;
    touch-action: none;
}

.sheet-handle:active {
    cursor: grabbing;
    background: var(--text-secondary);
}

/* ============================================================
   PORTAL HUB (PÁGINA PRINCIPAL INTERACTIVA)
   ============================================================ */
.portal-hub-container {
    padding: 16px 20px 40px;
    animation: hubFadeIn 250ms ease forwards;
}

@keyframes hubFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-hub-welcome {
    margin-bottom: 20px;
    text-align: left;
}

.portal-hub-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.portal-hub-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.portal-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hub Cards */
.hub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, border-color 180ms ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.hub-card:active {
    transform: scale(0.98);
}

/* Hero card distinction (Virtual Menu) - Impeccable Craft */
.hub-card-hero {
    border: 1px solid var(--color-accent);
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--color-accent-subtle) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 16px var(--color-accent-subtle);
}

.hub-card-hero:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px var(--color-accent-subtle);
}

.hub-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.hub-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hub-card-content {
    flex: 1;
    min-width: 0;
}

.hub-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sticky top bar inside catalog */
.catalog-top-hub-bar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    margin-bottom: 8px;
}

.btn-return-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease;
}

.btn-return-hub:hover {
    background: rgba(255, 255, 255, 0.2);
}

.catalog-top-res-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ============================================================
   JUEGOS EN MESA & CLIENTE FRECUENTE ESTILOS
   ============================================================ */
/* Memory Match Grid */
.memory-grid {
    user-select: none;
}

.memory-card {
    aspect-ratio: 1 / 1;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.memory-card:active {
    transform: scale(0.92);
}

.memory-card.flipped {
    background: var(--color-accent-subtle);
    border-color: var(--color-accent);
}

.memory-card.matched {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    cursor: default;
    animation: matchPulse 300ms ease;
}

@keyframes matchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Digital Stamp Card */
.stamp-card-container {
    user-select: none;
}

.stamp-slot {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 250ms ease;
    color: var(--text-secondary);
}

.stamp-slot.stamped {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: 2px solid #34D399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: stampIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stampIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.stamp-slot.reward-slot {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.stamp-slot.reward-slot.stamped {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 2px solid #FBBF24;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.stamp-slot-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stamp-slot.stamped .stamp-slot-num {
    color: #fff;
}

@keyframes geo-spin {
    100% { transform: rotate(360deg); }
}

.loyalty-pin-prompt-box {
    background: var(--bg-surface) !important;
    border: 1.5px solid var(--color-accent) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: 22px 18px !important;
    margin-top: 14px !important;
    text-align: center !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16) !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
}

.loyalty-pin-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loyalty-pin-title {
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    font-size: 1.15rem !important;
    margin: 0 0 6px 0 !important;
    font-family: var(--font-heading) !important;
}

.loyalty-pin-sub {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.45 !important;
    max-width: 320px;
    font-family: var(--font-body) !important;
}

.loyalty-pin-input-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
}

.loyalty-pin-input {
    width: 220px !important;
    height: 54px !important;
    text-align: center !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 8px !important;
    padding: 0 14px !important;
    background: var(--bg-page) !important;
    border: 2px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    outline: none !important;
    font-family: monospace, var(--font-heading) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
}

.loyalty-pin-input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px var(--color-accent-subtle) !important;
}

.loyalty-pin-actions-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loyalty-pin-submit {
    width: 100% !important;
    height: 48px !important;
    background: var(--color-accent) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: var(--font-body) !important;
    box-shadow: 0 4px 14px var(--color-accent-subtle) !important;
    transition: opacity 0.2s, transform 0.12s;
}

.loyalty-pin-submit:hover {
    opacity: 0.92;
}

.loyalty-pin-submit:active {
    transform: scale(0.98);
}

.loyalty-pin-cancel {
    width: 100% !important;
    height: 42px !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    transition: background-color 0.2s, color 0.2s;
}

.loyalty-pin-cancel:hover {
    background: var(--border-subtle) !important;
    color: var(--text-primary) !important;
}

.loyalty-geo-box {
    width: 100%;
    border-radius: var(--radius-lg, 10px);
    padding: 12px 14px;
    margin-bottom: 12px;
    text-align: center;
    box-sizing: border-box;
}

.loyalty-geo-loading {
    background: var(--color-accent-subtle, rgba(56, 189, 248, 0.12));
    border: 1px solid var(--color-accent);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.loyalty-geo-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10B981;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.loyalty-geo-error {
    background: var(--bg-page);
    border: 1.5px solid #F59E0B;
}

.loyalty-geo-error-title {
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.loyalty-geo-error-text {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.loyalty-geo-btn {
    background: #F59E0B;
    color: #0F172A;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
    transition: transform 0.12s, opacity 0.12s;
    font-family: var(--font-body);
}

.loyalty-geo-btn:active {
    transform: scale(0.97);
}

.loyalty-geo-btn:hover {
    opacity: 0.92;
}

/* Specialized Dialog Boxes (Location, Loyalty, Games) */
.location-dialog-box,
.loyalty-dialog-box,
.games-dialog-box {
    max-width: 480px;
    width: 92%;
    border-radius: var(--radius-lg, 16px);
}

@media (max-width: 640px) {
    .location-dialog-box,
    .loyalty-dialog-box,
    .games-dialog-box,
    .dialog-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 12px)) !important;
    }
}

.location-map-wrap {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
    background: var(--bg-page);
    position: relative;
}

.location-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.btn-pill-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.btn-pill-location:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #EF4444;
}

/* ========================================================
   CARRITO DE COMPRAS Y PEDIDOS EN LÍNEA (MOBILE FIRST)
   ======================================================== */

/* Botón agregar en la tarjeta de producto */
.btn-card-add-cart {
    height: 30px;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    background: rgba(225, 29, 72, 0.12);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 160ms ease;
    user-select: none;
    white-space: nowrap;
}

.btn-card-add-cart:hover {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-card-add-cart:active {
    transform: scale(0.94);
}

/* Selector de cantidad y acción en bottom sheet del platillo */
.sheet-order-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sheet-qty-picker {
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 4px;
}

.sheet-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    transition: background 150ms;
}

.sheet-qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

#sheetQtyDisplay {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.btn-sheet-add {
    flex: 1;
    height: 46px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 150ms, opacity 150ms;
}

.btn-sheet-add:active {
    transform: scale(0.98);
}

/* Barra flotante inferior (Sticky Cart Bar) */
.cart-floating-bar {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 85;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    animation: cartSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-floating-inner {
    max-width: 580px;
    width: 100%;
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 8px 10px 8px 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 200ms ease;
}

.cart-floating-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-floating-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-floating-text {
    display: flex;
    flex-direction: column;
}

.cart-floating-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cart-floating-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-floating-action {
    height: 40px;
    padding: 0 18px;
    border-radius: 9999px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease;
}

.cart-floating-action:active {
    transform: scale(0.96);
}

/* Modal / Bottom Sheet del Carrito */
.cart-sheet {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-sheet-content {
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 12px));
    overflow-y: auto;
    flex: 1;
}

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

.cart-sheet-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 150ms;
}

.btn-clear-cart:hover {
    color: #EF4444;
}

/* Items en el carrito */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.cart-item-card {
    display: flex;
    gap: 12px;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px;
    position: relative;
    transition: border-color 150ms;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-top: 2px;
}

.cart-item-notes-input {
    width: 100%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.78rem;
    color: var(--text-primary);
    margin-top: 6px;
    outline: none;
    box-sizing: border-box;
}

.cart-item-notes-input:focus {
    border-color: var(--color-accent);
}

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

.cart-item-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 2px 4px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: background 150ms;
}

.cart-qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.cart-qty-val {
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-remove-item {
    background: none;
    border: none;
    color: #EF4444;
    opacity: 0.75;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 150ms;
}

.btn-remove-item:hover {
    opacity: 1;
}

/* Estado vacío del carrito */
.cart-empty-state {
    text-align: center;
    padding: 36px 20px;
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cart-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-empty-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto 20px;
}

.btn-back-menu {
    margin: 0 auto;
    padding: 10px 22px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
}

/* Alerta de pedido mínimo */
.cart-min-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #F59E0B;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

/* Resumen de precios */
.cart-price-breakdown,
.cart-final-breakdown {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cart-breakdown-row.cart-total-row {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    margin-top: 6px;
    margin-bottom: 0;
}

.cart-breakdown-row.cart-total-row span:last-child {
    color: var(--color-accent);
}

/* Botones principales */
.btn-cart-primary {
    width: 100%;
    height: 48px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 150ms, opacity 150ms;
}

.btn-cart-primary:active {
    transform: scale(0.98);
}

.btn-cart-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cart-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px 0;
    transition: color 150ms;
}

.btn-cart-back:hover {
    color: var(--text-primary);
}

/* Formulario de Checkout */
.cart-form-group {
    margin-bottom: 14px;
}

.cart-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-sublabel {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.required-star {
    color: #EF4444;
}

.cart-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-page);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 150ms;
    box-sizing: border-box;
}

.cart-input:focus {
    border-color: var(--color-accent);
}

.cart-textarea {
    height: auto;
    min-height: 64px;
    padding: 10px 14px;
    resize: vertical;
    line-height: 1.4;
}

/* Selector de modalidad de entrega */
.delivery-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.delivery-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-page);
    cursor: pointer;
    transition: all 160ms ease;
    text-align: center;
    gap: 4px;
    user-select: none;
}

.delivery-type-card.active {
    border-color: var(--color-accent);
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.delivery-type-card i,
.delivery-type-card svg {
    color: var(--text-secondary);
    transition: color 150ms;
}

.delivery-type-card.active i,
.delivery-type-card.active svg {
    color: var(--color-accent);
}

.dtype-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dtype-fee {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.delivery-type-card.active .dtype-fee {
    color: var(--color-accent);
    font-weight: 600;
}

/* Selector de métodos de pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-page);
    cursor: pointer;
    transition: all 160ms ease;
    text-align: center;
    gap: 4px;
    user-select: none;
}

.payment-method-card.active {
    border-color: var(--color-accent);
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.payment-method-card i,
.payment-method-card svg {
    color: var(--text-secondary);
    transition: color 150ms;
}

.payment-method-card.active i,
.payment-method-card.active svg {
    color: var(--color-accent);
}

.payment-method-card span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method-card.active span {
    color: var(--color-accent);
}

/* Botón GPS */
.btn-location-gps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms;
}

.btn-location-gps:hover {
    background: rgba(56, 189, 248, 0.2);
}

/* Botón final de WhatsApp */
.btn-cart-submit {
    width: 100%;
    height: 50px;
    background: #25D366;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 150ms, opacity 150ms;
}

.btn-cart-submit:active {
    transform: scale(0.98);
}

.btn-cart-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pickup-details-section {
    margin-bottom: 14px;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px;
}

@media (max-width: 380px) {
    .delivery-type-grid,
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .cart-floating-inner {
        padding: 6px 8px 6px 12px;
    }

    .cart-floating-cta {
        font-size: 0.82rem;
        padding: 8px 14px;
    }
}

/* ==========================================================================
   Responsive Adaptations (Tablet, Desktop, Ultra-Wide & Small Mobile)
   ========================================================================== */

/* Tablet & Landscape (641px+) */
@media (min-width: 641px) {
    .modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .bottom-sheet {
        margin: auto;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        max-width: 580px;
        max-height: 85vh;
        transform: scale(0.96);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    }

    .modal-overlay.active .bottom-sheet {
        transform: scale(1);
    }

    .sheet-handle {
        display: none;
    }

    .cart-sheet {
        max-width: 600px;
        border-radius: 20px;
    }

    .promo-slide {
        flex: 0 0 340px;
        height: 200px;
    }

    .portal-hub-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hub-card-hero {
        grid-column: 1 / -1;
    }
}

/* Tablet (Standard 768px+) */
@media (min-width: 768px) {
    .menu-app {
        max-width: 880px;
        margin: 20px auto 36px;
        border-radius: var(--radius-lg, 1.25rem);
        border: 1px solid var(--border-subtle);
        overflow: hidden;
    }

    .restaurant-hero {
        min-height: 280px;
        padding: 36px 32px;
    }

    .restaurant-logo {
        width: 88px;
        height: 88px;
    }

    .restaurant-name {
        font-size: 1.85rem;
    }

    .restaurant-tagline {
        font-size: 0.95rem;
    }

    .portal-hub-container {
        padding: 24px 32px 48px;
    }

    .menu-section {
        padding: 28px 32px 12px;
    }

    .search-container {
        padding: 16px 32px 0;
    }

    .category-nav {
        padding: 0 32px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        padding: 16px;
    }
}

/* Desktop & Large Screens (1024px+) */
@media (min-width: 1024px) {
    .menu-app {
        max-width: 1140px;
        margin: 28px auto 48px;
        border-radius: 1.5rem;
    }

    .restaurant-hero {
        min-height: 320px;
        padding: 44px 40px;
    }

    .restaurant-name {
        font-size: 2.1rem;
    }

    .portal-hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hub-card-hero {
        grid-column: span 2;
    }

    .promo-slide {
        flex: 0 0 380px;
        height: 220px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }

    .bottom-sheet {
        max-width: 620px;
    }

    .cart-sheet {
        max-width: 640px;
    }
}

/* Small mobile devices (iPhone SE, narrow viewports <= 420px) */
@media (max-width: 420px) {
    .restaurant-hero {
        padding: 16px 14px;
        min-height: 200px;
    }

    .restaurant-logo {
        width: 62px;
        height: 62px;
    }

    .restaurant-name {
        font-size: 1.25rem;
    }

    .restaurant-quick-actions {
        gap: 6px;
    }

    .btn-pill-sm {
        padding: 6px 10px;
        font-size: 0.74rem;
        min-height: 36px;
    }

    .product-card {
        padding: 12px;
        gap: 10px;
    }

    .product-card-img-wrap {
        width: 88px;
        height: 88px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-footer-right {
        gap: 4px;
    }

    .btn-card-add-cart {
        padding: 6px 10px;
        font-size: 0.74rem;
    }
}










