/* Estilos del menú - Digi-QR v9.1.3 (fuente única compartida) */
@keyframes tag-pulse-dark { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes tag-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.2); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes simple-header-glow { 0% { background-position: -200% center; opacity: 0.3; } 50% { opacity: 0.7; } 100% { background-position: 200% center; opacity: 0.3; } }
@keyframes cart-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

:root {
    --menu-primary: #e94560;
    --menu-offer-price-color: #f39c12;
    --menu-order-color: #25d366;       /* pedidos: "Pedir +", carrito flotante y envío */
    --menu-order-color-rgb: 37, 211, 102;
    --menu-bg: #1c1c1c;
    --menu-item-bg: rgba(45, 45, 45, 0.5);
    --menu-text: #ffffff;
    --menu-text-secondary: #b0b0b0;
    --menu-header-text: #ffffff;
    --menu-font: 'Poppins', sans-serif;
    --menu-header-height: 18vh;
    --header-logo-size: 70%;
    --menu-primary-rgb: 233, 69, 96;
    --chatbot-header-color: #e94560;
    --menu-item-padding: 10px;
    --menu-item-gap: 10px;
    --menu-item-min-height: auto;
    --menu-item-img-size: 96px;
    --menu-item-img-order: 1;
    --menu-item-lh-factor: 1; /* interlineado de textos de tarjetas: 1 = normal, <1 = compacto */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.menu-page {
    font-family: var(--menu-font), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--menu-bg);
    color: var(--menu-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
}

#app-root {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--menu-bg);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

/* ===== Cabecera ===== */
.menu-header {
    width: 100%;
    height: var(--menu-header-height);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.menu-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}
.menu-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--menu-header-text);
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 15px;
}
.menu-header-logo {
    max-width: var(--header-logo-size);
    max-height: var(--header-logo-size);
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
    object-fit: contain;
}
.menu-header-simple {
    height: 64px;
    background-color: var(--simple-header-bg, var(--menu-bg));
    border-bottom: 2px solid var(--menu-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-header-simple::after { display: none; }
.menu-header-simple.animated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--menu-primary-rgb, 255, 159, 28), 0.15), rgba(var(--menu-primary-rgb, 255, 159, 28), 0.3), rgba(var(--menu-primary-rgb, 255, 159, 28), 0.15), transparent);
    background-size: 200% 100%;
    animation: simple-header-glow 4s ease-in-out infinite;
    pointer-events: none;
}
.menu-header-title-simple {
    font-size: 1.4rem;
    color: var(--menu-header-text);
    font-weight: 700;
    z-index: 2;
    text-align: center;
    letter-spacing: 0.5px;
}
.menu-header-logo-simple {
    max-width: var(--header-logo-size);
    max-height: 44px;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* ===== Navegación ===== */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--menu-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.theme-light .nav-container { border-bottom-color: rgba(0, 0, 0, 0.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
#main-categories-nav { padding: 10px 14px 4px 14px; overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; display: flex; gap: 18px; }
#main-categories-nav::-webkit-scrollbar { display: none; }
#main-categories-nav a {
    display: inline-block;
    padding: 4px 2px 8px 2px;
    color: var(--menu-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}
#main-categories-nav a:hover { color: var(--menu-text); }
#main-categories-nav a.active { color: var(--menu-primary); border-bottom-color: var(--menu-primary); }
#sub-categories-nav { padding: 6px 14px 10px 14px; overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; display: flex; gap: 8px; }
#sub-categories-nav::-webkit-scrollbar { display: none; }
#sub-categories-nav a {
    display: none;
    padding: 6px 14px;
    color: var(--menu-text-secondary);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-light #sub-categories-nav a { background-color: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.08); color: #4B5563; }
#sub-categories-nav a:hover { background-color: rgba(255, 255, 255, 0.12); color: var(--menu-text); }
#sub-categories-nav a.active {
    color: #fff;
    background: var(--menu-primary);
    border-color: var(--menu-primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--menu-primary-rgb, 255, 159, 28), 0.35);
    display: inline-block;
}

/* ===== Buscador y filtros ===== */
#menu-search-area { position: relative; padding: 8px 14px 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; align-items: stretch; transition: padding 0.2s ease; }
.theme-light #menu-search-area { border-top-color: rgba(0, 0, 0, 0.05); }
/* Botón flotante que aparece al hacer scroll: el bloque de búsqueda
   desaparece POR COMPLETO (sin franja) y solo queda este mini botón
   flotando justo debajo del menú de categorías, sobre el contenido. */
.menu-search-fab {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    width: 36px;
    height: 36px;
    margin-top: -18px; /* subido ~10px respecto al borde inferior del nav (antes -8px) */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--menu-primary);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 45;
    transition: transform 0.2s ease;
}
.menu-search-fab svg { width: 17px; height: 17px; fill: #fff; }
.menu-search-fab:hover { transform: scale(1.1); }
/* Colapsado: el área completa desaparece y se muestra el botón flotante */
#menu-search-area.is-collapsed { display: none; }
#menu-search-area.is-collapsed + .menu-search-fab { display: flex; }
/* Al pulsar el botón: panel flotante (dropdown) sobre el contenido */
#menu-search-area.is-collapsed.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    background: var(--menu-bg);
    padding: 8px 14px 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
#menu-search-area.is-collapsed.is-open + .menu-search-fab { display: none; }
.filter-chips { align-self: flex-start; }
.menu-search-box { position: relative; display: flex; align-items: center; }
.menu-search-icon { position: absolute; left: 12px; width: 16px; height: 16px; fill: var(--menu-text-secondary); pointer-events: none; }
#menu-search-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--menu-item-bg);
    color: var(--menu-text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-light #menu-search-input { border-color: rgba(0, 0, 0, 0.15); background: #ffffff; color: #1F2937; }
#menu-search-input:focus { border-color: var(--menu-primary); box-shadow: 0 0 0 3px rgba(var(--menu-primary-rgb, 255, 159, 28), 0.2); }
.menu-search-clear {
    position: absolute;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--menu-text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-search-clear:hover { background: rgba(255, 255, 255, 0.2); color: var(--menu-text); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--menu-text-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip svg { width: 12px; height: 12px; fill: currentColor; }
.filter-chip:hover { border-color: var(--menu-primary); color: var(--menu-text); }
.filter-chip.active { background: var(--menu-primary); border-color: var(--menu-primary); color: #fff; }
.theme-light .filter-chip { border-color: rgba(0, 0, 0, 0.15); background: rgba(0, 0, 0, 0.04); color: #4B5563; }
.theme-light .filter-chip.active { background: var(--menu-primary); color: #fff; }

/* ===== Contenido ===== */
#menu-content { padding: 12px 14px 24px 14px; scroll-behavior: smooth; flex-grow: 1; }
.main-category-anchor { scroll-margin-top: 100px; margin-bottom: 24px; }
.main-category-banner {
    height: 120px;
    margin: 8px 0 14px 0;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 14px;
}
.main-category-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%); }
.content-main-category-title { color: var(--menu-text); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.content-main-category-title.overlay { color: #fff; font-size: 1.25rem; z-index: 2; position: relative; margin: 0; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.theme-light .content-main-category-title { color: #1F2937; }
.content-sub-category-title { color: var(--menu-text); font-size: 1.1rem; font-weight: 700; margin: 16px 0 10px 0; display: flex; align-items: center; justify-content: space-between; }
.theme-light .content-sub-category-title { color: #1F2937; }
.subcat-count { font-size: 0.75rem; font-weight: 500; color: var(--menu-text-secondary); background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; }
.theme-light .subcat-count { background: rgba(0,0,0,0.06); }

#menu-no-results { display: none; text-align: center; padding: 30px 10px; color: var(--menu-text-secondary); font-size: 0.9rem; }

/* ===== Tarjetas de platos ===== */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--menu-item-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 10px;
    padding: var(--menu-item-padding, 10px);
    gap: var(--menu-item-gap, 10px);
    min-height: var(--menu-item-min-height, auto);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.theme-light .menu-item { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.menu-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); border-color: rgba(var(--menu-primary-rgb, 255, 159, 28), 0.35); }
.theme-light .menu-item:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.menu-item-content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: calc(1.5 * var(--menu-item-lh-factor, 1)); }
.menu-item-name-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 2px; }
.menu-item-name { font-size: 1.02rem; font-weight: 700; color: var(--menu-text); line-height: calc(1.3 * var(--menu-item-lh-factor, 1)); }
.theme-light .menu-item-name { color: #1F2937; }
.item-tag { font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; text-transform: uppercase; letter-spacing: 0.4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.theme-dark .item-tag { animation: tag-pulse-dark 2s infinite; }
.theme-light .item-tag { animation: tag-pulse-light 2s infinite; }
.menu-item-price-wrapper { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.menu-item-price-original { font-size: 0.85rem; color: var(--menu-text-secondary); text-decoration: line-through; opacity: 0.75; }
.menu-item-price { font-size: 1.05rem; font-weight: 800; color: var(--menu-primary); }
.item-view-options { background: rgba(var(--menu-primary-rgb, 255, 159, 28), 0.15); color: var(--menu-primary); border: 1px solid rgba(var(--menu-primary-rgb, 255, 159, 28), 0.3); padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.menu-item-desc-short { color: var(--menu-text-secondary); font-size: 0.8rem; line-height: calc(1.45 * var(--menu-item-lh-factor, 1)); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.theme-light .menu-item-desc-short { color: #6B7280; }
.menu-item-actions { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.action-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); padding: 5px 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--menu-text); font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.theme-light .action-btn { background: #F3F4F6; border-color: #E5E7EB; color: #374151; }
.action-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--menu-primary); }
.action-btn.info-btn { flex-grow: 1; }
.action-btn.share-btn { width: 28px; height: 28px; padding: 0; flex-shrink: 0; flex-grow: 0; }
.action-btn.order-btn { background: rgba(var(--menu-order-color-rgb, 37, 211, 102), 0.15); border-color: rgba(var(--menu-order-color-rgb, 37, 211, 102), 0.4); color: var(--menu-order-color, #25d366); font-weight: 700; }
.theme-light .action-btn.order-btn { background: rgba(var(--menu-order-color-rgb, 37, 211, 102), 0.12); border-color: var(--menu-order-color, #25d366); color: var(--menu-order-color, #25d366); }
.action-btn.order-btn:hover { background: var(--menu-order-color, #25d366); border-color: var(--menu-order-color, #25d366); color: #fff; }
.action-btn svg { width: 14px; height: 14px; fill: currentColor; }
.menu-item-img {
    width: var(--menu-item-img-size, 96px);
    height: var(--menu-item-img-size, 96px);
    min-width: var(--menu-item-img-size, 96px);
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    order: var(--menu-item-img-order, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
.menu-item:hover .menu-item-img { transform: scale(1.04); }

/* ===== Modal de plato ===== */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
    font-family: var(--menu-font), sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#modal-overlay.show { opacity: 1; }
#modal-content {
    position: relative;
    background: var(--menu-item-bg, #1E1E1E);
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
}
.theme-light #modal-content { background: #FFFFFF; border-top-color: rgba(0, 0, 0, 0.1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); }
#modal-overlay.show #modal-content { transform: translateY(0); }
@media (min-width: 640px) {
    #modal-overlay { align-items: center; padding: 20px; }
    #modal-content { border-radius: 24px; max-height: 85vh; border: 1px solid rgba(255, 255, 255, 0.12); transform: scale(0.9) translateY(20px); }
    #modal-overlay.show #modal-content { transform: scale(1) translateY(0); }
}
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.modal-close-btn:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.08); }
.modal-image-wrapper { position: relative; width: 100%; height: 230px; flex-shrink: 0; overflow: hidden; }
#modal-image { width: 100%; height: 100%; object-fit: cover; }
.modal-image-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--menu-item-bg, #1E1E1E), transparent); pointer-events: none; }
.theme-light .modal-image-gradient { background: linear-gradient(to top, #FFFFFF, transparent); }
.modal-details { padding: 16px 22px 28px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.modal-header-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
#modal-name { font-size: 1.6rem; font-weight: 800; color: var(--menu-text); line-height: 1.2; }
.theme-light #modal-name { color: #1F2937; }
#modal-price { font-size: 1.5rem; font-weight: 800; color: var(--menu-primary); white-space: nowrap; }
.modal-tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#modal-description { font-size: 0.9rem; line-height: 1.6; color: var(--menu-text-secondary); margin-bottom: 14px; }
.theme-light #modal-description { color: #4B5563; }
.modal-divider { height: 1px; background: rgba(255, 255, 255, 0.1); width: 100%; margin: 12px 0 16px 0; }
.theme-light .modal-divider { background: rgba(0, 0, 0, 0.08); }
#modal-allergens-title, #modal-variations-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; color: var(--menu-text-secondary); margin-bottom: 10px; }
.menu-item-allergens-list { display: flex; flex-wrap: wrap; gap: 8px; }
.allergen-badge { background: rgba(255, 255, 255, 0.06); color: var(--menu-text); padding: 6px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.theme-light .allergen-badge { background: #F3F4F6; border-color: #E5E7EB; color: #374151; }
.allergen-badge svg { width: 16px; height: 16px; fill: var(--menu-primary); flex-shrink: 0; }
#modal-variations-container { margin-bottom: 16px; }
.variation-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; }
.theme-light .variation-item { border-bottom-color: rgba(0, 0, 0, 0.08); }
.variation-price { font-weight: 700; color: var(--menu-primary); }

/* Sección de pedido dentro del modal */
#modal-order-section { margin-top: 4px; }
.modal-order-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; color: var(--menu-text-secondary); margin-bottom: 10px; }
.variation-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.variation-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--menu-text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.theme-light .variation-option { border-color: rgba(0, 0, 0, 0.15); background: #F9FAFB; color: #374151; }
.variation-option.selected { border-color: var(--menu-primary); background: rgba(var(--menu-primary-rgb, 255, 159, 28), 0.15); box-shadow: 0 0 0 1px var(--menu-primary); }
.variation-option-price { font-weight: 700; color: var(--menu-primary); }
.modal-order-btn {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: var(--menu-order-color, #25d366);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(var(--menu-order-color-rgb, 37, 211, 102), 0.35);
}
.modal-order-btn:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* ===== Footer ===== */
.menu-footer { padding: 24px 18px; text-align: center; color: var(--menu-text-secondary); border-top: 1px solid rgba(255, 255, 255, 0.08); background-color: var(--menu-bg); flex-shrink: 0; }
.footer-notes p { margin-bottom: 6px; font-size: 0.82rem; line-height: 1.5; }
.footer-copyright { margin-top: 14px; font-size: 0.78rem; opacity: 0.7; }
.footer-billboard-link { margin-top: 12px; }
.footer-billboard-link a { color: var(--menu-primary); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.footer-billboard-link a:hover { text-decoration: underline; }

/* ===== Carrito de pedidos ===== */
#menu-cart-fab {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--menu-order-color, #25d366);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s;
}
#menu-cart-fab:hover { transform: scale(1.08); }
#menu-cart-fab svg { width: 24px; height: 24px; fill: #fff; }
#menu-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 9999px;
    background: var(--menu-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#menu-cart-fab.bump { animation: cart-bounce 0.3s ease; }
#menu-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: flex-end;
}
#menu-cart-overlay.open { display: flex; }
#menu-cart-panel {
    width: 100%;
    max-width: 480px;
    max-height: 82vh;
    background: var(--menu-item-bg, #1E1E1E);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 20px 26px 20px;
    overflow-y: auto;
    color: var(--menu-text);
    font-family: var(--menu-font), sans-serif;
    display: flex;
    flex-direction: column;
}
.theme-light #menu-cart-panel { background: #FFFFFF; color: #1F2937; }
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart-header h3 { font-size: 1.15rem; font-weight: 800; }
#menu-cart-close { background: rgba(255, 255, 255, 0.1); border: none; color: var(--menu-text); width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.theme-light #menu-cart-close { background: rgba(0, 0, 0, 0.08); color: #374151; }
#menu-cart-items { flex-grow: 1; overflow-y: auto; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.theme-light .cart-line { border-bottom-color: rgba(0, 0, 0, 0.08); }
.cart-line-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-line-name { font-weight: 600; font-size: 0.9rem; }
.cart-line-variation { font-size: 0.75rem; color: var(--menu-text-secondary); }
.cart-line-price { font-size: 0.8rem; font-weight: 700; color: var(--menu-primary); margin-top: 2px; }
.cart-line-controls { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--menu-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-light .cart-qty-btn { border-color: rgba(0, 0, 0, 0.15); background: #F3F4F6; color: #374151; }
.cart-line-qty { min-width: 20px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-remove-btn { background: none; border: none; color: #f85149; cursor: pointer; font-size: 0.9rem; padding: 4px; }
.cart-empty { text-align: center; padding: 26px 10px; color: var(--menu-text-secondary); font-size: 0.9rem; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 800; font-size: 1.05rem; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 8px; }
#menu-cart-total { color: var(--menu-primary); }
.cart-actions { display: flex; gap: 10px; }
.cart-clear-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(248, 81, 73, 0.4);
    background: rgba(248, 81, 73, 0.1);
    color: #ff7b72;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.cart-send-btn {
    flex-grow: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--menu-order-color, #25d366);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--menu-order-color-rgb, 37, 211, 102), 0.35);
}
.cart-send-btn:hover { filter: brightness(0.92); }

#menu-toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1100;
    background: var(--menu-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--menu-font), sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    white-space: nowrap;
}
#menu-toast.show { opacity: 1; animation: toast-in 0.25s ease; }

/* ===== Modo cartel digital (billboard) ===== */
body.billboard-body { overflow: hidden; }
#billboard-root { position: relative; width: 100%; height: 100vh; background: #000; overflow: hidden; font-family: var(--menu-font), sans-serif; }
.billboard-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.billboard-slide.active { opacity: 1; pointer-events: auto; }
.billboard-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.billboard-slide.active .billboard-slide-bg { animation: billboard-zoom 12s ease forwards; }
@keyframes billboard-zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.billboard-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.1) 100%); }
.billboard-slide-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 48px 56px 48px; color: #fff; max-width: 900px; }
.billboard-kicker {
    display: inline-block;
    background: var(--menu-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}
.billboard-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-bottom: 10px; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7); }
.billboard-desc { font-size: clamp(0.9rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, 0.85); max-width: 640px; margin-bottom: 16px; }
.billboard-price { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--menu-primary); }
.billboard-controls { position: absolute; bottom: 22px; right: 24px; display: flex; align-items: center; gap: 14px; z-index: 5; }
.billboard-controls button { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.billboard-controls button:hover { background: rgba(255, 255, 255, 0.25); }
.billboard-dots { display: flex; gap: 6px; }
.billboard-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: none; cursor: pointer; padding: 0; }
.billboard-dot.active { background: var(--menu-primary); transform: scale(1.25); }
.billboard-exit { position: absolute; top: 22px; right: 24px; z-index: 5; color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; background: rgba(0, 0, 0, 0.45); padding: 9px 16px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.3); }
.billboard-exit:hover { background: rgba(0, 0, 0, 0.7); }

/* Ajustes del cartel dentro del marco de previsualización (creador/editor) */
#menu-wrapper #billboard-root { height: 100%; min-height: 480px; }
#menu-wrapper .billboard-slide-content { padding: 20px 22px 40px 22px; }
#menu-wrapper .billboard-title { font-size: 1.5rem; }
#menu-wrapper .billboard-desc { font-size: 0.85rem; margin-bottom: 8px; }
#menu-wrapper .billboard-price { font-size: 1.2rem; }
#menu-wrapper .billboard-kicker { margin-bottom: 10px; }
#menu-wrapper .billboard-controls { bottom: 12px; right: 12px; }
#menu-wrapper .billboard-exit { top: 12px; right: 12px; }

/* ===== Selector de modo en el creador/editor (preview móvil/cartel) =====
   Se sitúa a la IZQUIERDA del panel de preview para no tapar el botón Tutorial. */
#preview-mode-toggle { position: absolute; top: 16px; left: 18px; z-index: 60; display: flex; gap: 6px; }
#preview-mode-toggle button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 25, 35, 0.8);
    color: #cbd5e1;
    border-radius: 9999px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
#preview-mode-toggle button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
#preview-mode-toggle button.active { background: var(--menu-primary); border-color: var(--menu-primary); color: #fff; }
