* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #FF6B35;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #34495E;
    --success-color: #27AE60;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1025px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
}

/* Header */
.header {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary-color);
}

.btn-pedido {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pedido:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

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

/* Hero */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: var(--hero-title-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: var(--hero-subtitle-color);
}

.btn-primary {
    background: white;
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Menu Section */
.menu-section {
    padding: 4rem 2rem;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.menu-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.menu-sidebar {
    flex: 0 0 340px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-filter-group {
    margin-bottom: 1.5rem;
}

.sidebar-filter-group:last-of-type {
    margin-bottom: 1rem;
}

.sidebar-filter-group h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: var(--dark-color);
}

.search-barcode-wrap {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}
.search-barcode-wrap .sidebar-input {
    flex: 1;
    width: auto;
    min-width: 0;
}
.scan-barcode-btn {
    flex-shrink: 0;
    background: var(--primary-color, #e65100);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}
.scan-barcode-btn:hover { opacity: 0.85; }

.sidebar-input,
.sidebar-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-color);
    background: white;
}

.sidebar-input:focus,
.sidebar-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.price-range-inputs .sidebar-input {
    width: 0;
    flex: 1;
}

.price-range-inputs span {
    color: var(--text-color);
    opacity: 0.6;
}

.btn-filter-aplicar,
.btn-filter-limpiar {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-filter-aplicar {
    background: var(--primary-color);
    color: white;
}

.btn-filter-aplicar:hover {
    opacity: 0.9;
}

.btn-filter-limpiar {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid #ddd;
}

.btn-filter-limpiar:hover {
    background: #e9e9e9;
}

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

.menu-sin-resultados {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    padding: 3rem 1rem;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.menu-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.menu-filters::-webkit-scrollbar {
    width: 6px;
}

.menu-filters::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.menu-filters::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.filter-btn {
    background: #f3f3f3;
    border: none;
    color: var(--text-color);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    font-size: 0.72rem;
    text-align: left;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e4e4e4;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    word-wrap: break-word;
    min-width: 0;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.menu-item-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.05);
}

.menu-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.7rem;
    min-width: 0;
}

.menu-item h3 {
    color: var(--product-title-color);
    font-size: 1.2rem;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    line-height: 1.4;
}

.menu-item-price {
    background: var(--price-color, var(--primary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.menu-item-sku {
    display: block;
    color: #000;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 0.35rem;
}

.menu-item-familia {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item-description {
    color: var(--product-description-color);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.menu-item-alergenos {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #ffe6e6;
    border-radius: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.menu-item-peso {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    word-wrap: break-word;
}

/* Horarios Section */
.horarios-section {
    padding: 4rem 2rem;
    background: white;
}

.horarios-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.horario-icon {
    font-size: 2.5rem;
}

.horario-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.horario-item p {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contacto Section */
.contacto-section {
    padding: 4rem 2rem;
    background: var(--light-color);
}

.contacto-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 95%;
    margin: 0 auto;
}

/* Desktop: 4 columnas */
@media (min-width: 1024px) {
    .contacto-info {
        grid-template-columns: repeat(4, 1fr);
        max-width: 90%;
    }
}

/* Tablet: 2 columnas */
@media (max-width: 1023px) and (min-width: 768px) {
    .contacto-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 columna */
@media (max-width: 767px) {
    .contacto-info {
        grid-template-columns: 1fr;
    }
}

.contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 180px;
    justify-content: center;
}

.contacto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contacto-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.contacto-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.contacto-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-item p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.contacto-item .payment-instructions {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.cart-sidebar.open {
    pointer-events: all;
}

.cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 550px;
    max-width: 100%;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.cart-sidebar-header {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-sidebar-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.btn-close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-sidebar:hover {
    transform: rotate(90deg);
}

/* Resumen del carrito */
.cart-sidebar-summary {
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--light-color);
    flex-shrink: 0;
    max-height: 18vh;
    overflow-y: auto;
}

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

.cart-header h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.cart-total {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 10px;
    gap: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.cart-item-details {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-price {
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

.btn-remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: background 0.3s;
}

.btn-remove-item:hover {
    background: #c0392b;
}

/* Chat del bot */
.cart-sidebar-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 2px solid var(--light-color);
    min-height: 0; /* Importante para flexbox */
}

.chat-toggle-header {
    background: var(--chat-header-color);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-toggle-header:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.chat-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.bot-chat-section {
    display: flex; /* Expandido por defecto */
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0; /* Importante para flexbox */
}

.bot-chat-section.collapsed {
    display: none;
}

.bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    background: #f8f9fa;
    min-height: 0; /* Importante para flexbox */
    scroll-behavior: smooth;
}

/* Estilo del scrollbar */
.bot-messages::-webkit-scrollbar {
    width: 8px;
}

.bot-messages::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.bot-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.bot-messages::-webkit-scrollbar-thumb:hover {
    background: #ffd000;
}

.bot-message,
.user-message {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    animation: messageIn 0.3s;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.bot-message {
    background: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.user-message {
    background: var(--user-message-color);
    color: white;
    margin-left: 1rem;
    text-align: right;
}

.bot-message ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
}

.bot-select {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    color: var(--text-color);
}

.btn-bot-confirm {
    display: block;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-bot-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bot-message li {
    margin: 0.3rem 0;
}

/* Tabla de productos sugeridos por el bot */
.bot-product-table-wrapper {
    width: 100%;
}

.bot-product-table {
    width: 100%;
    border-collapse: collapse;
}

.bot-product-row {
    border-bottom: 1px solid #eee;
}

.bot-product-row:last-child {
    border-bottom: none;
}

.bot-product-img-cell {
    width: 56px;
    padding: 0.5rem 0.6rem 0.5rem 0;
    vertical-align: middle;
}

.bot-product-img,
.bot-product-img-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bot-product-info-cell {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
    text-align: left;
}

.bot-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--product-title-color, var(--dark-color));
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.bot-product-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--price-color, var(--primary-color));
}

.bot-product-sku {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 1px;
}

.bot-product-qty-cell {
    width: 90px;
    padding: 0.5rem 0 0.5rem 0.6rem;
    vertical-align: middle;
    text-align: center;
}

.bot-product-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.bot-product-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bot-product-qty-btn:hover:not(:disabled) {
    background: #ffd000;
    color: var(--dark-color);
}

.bot-product-qty-btn:disabled {
    background: #aaa;
    cursor: default;
}

.bot-product-qty-input {
    width: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    -moz-appearance: textfield;
}

.bot-product-qty-input::-webkit-outer-spin-button,
.bot-product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bot-product-qty-input:disabled {
    background: #f0f0f0;
    color: #999;
}

.bot-product-action-cell {
    width: 90px;
    padding: 0.5rem 0 0.5rem 0.6rem;
    vertical-align: middle;
    text-align: right;
}

.bot-product-add-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.bot-product-add-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bot-product-add-btn:disabled {
    background: #aaa;
    cursor: default;
    transform: none;
}

.bot-product-agotado {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.bot-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.bot-delivery-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.bot-delivery-btn:hover:not(:disabled) {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.bot-delivery-btn:disabled {
    cursor: default;
}

.bot-load-more-btn {
    display: block;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.5rem;
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bot-load-more-btn:hover {
    background: #e9e9e9;
}

/* Estilos especiales para listas de productos */
.bot-message ul.product-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.bot-message ul.product-list li {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 0.8rem;
    margin: 0.4rem 0;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message ul.product-list li:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Asegurar que los párrafos tengan buen espaciado */
.bot-message p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.bot-message p:first-child {
    margin-top: 0;
}

.bot-message p:last-child {
    margin-bottom: 0;
}

.bot-input-container {
    display: flex;
    padding: 0.8rem 1rem;
    border-top: 2px solid var(--light-color);
    gap: 0.6rem;
    background: white;
    flex-shrink: 0;
}

#botInput {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-color);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

#botInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.btn-enviar {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.btn-enviar:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-enviar:active {
    transform: translateY(0);
}

.bot-quick-actions {
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    background: white;
    border-top: 1px solid var(--light-color);
    flex-shrink: 0;
    max-height: 80px;
    overflow: hidden;
}

.quick-action-btn {
    background: var(--light-color);
    border: 1px solid #ddd;
    color: var(--text-color);
    padding: 0.5rem 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
}

.quick-action-btn:active {
    transform: translateY(0);
}

/* Footer del sidebar */
.cart-sidebar-footer {
    padding: 1rem 1.2rem;
    background: white;
    border-top: 2px solid var(--light-color);
    flex-shrink: 0;
}

.btn-finalizar-pedido {
    width: 100%;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-finalizar-pedido:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
    filter: brightness(1.1);
}

.btn-finalizar-pedido:active {
    transform: translateY(0);
}

/* Sección de Contacto */
.contacto-section {
    padding: 4rem 2rem;
    background: var(--light-color);
}

.contacto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.contacto-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contacto-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contacto-card h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contacto-card p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
}

.contacto-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 95%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contacto-section {
        padding: 2rem 1rem;
    }

    .contacto-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contacto-card {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer a:hover {
    color: #FFF200;
    text-decoration: underline;
}

/* Responsive Design - Mobile First Approach */

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 0.6rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.5rem 12px;
    }

    .logo h1 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 0;
    }

    .tagline {
        font-size: 0.75rem;
        text-align: center;
        margin-top: 0.2rem;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: center;
        width: 100%;
        font-size: 0.8rem;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
    }

    .btn-pedido {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* Sidebar en móvil - pantalla completa */
    .cart-sidebar-content {
        width: 100%;
        max-width: 100%;
    }

    .cart-sidebar-header {
        padding: 1rem;
    }

    .cart-sidebar-header h3 {
        font-size: 1.2rem;
    }

    .cart-sidebar-summary {
        max-height: 20vh;
        padding: 0.8rem;
    }

    .cart-header h4 {
        font-size: 1rem;
    }

    .cart-total {
        font-size: 1.1rem;
    }

    .cart-item {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-details {
        font-size: 0.75rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .btn-remove-item {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    .chat-toggle-header {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .bot-messages {
        padding: 0.8rem;
    }

    .bot-message,
    .user-message {
        font-size: 0.85rem;
        padding: 0.75rem 0.9rem;
    }
    .bot-product-table-wrapper {
        overflow-x: hidden;
    }

    .bot-product-img-cell {
        width: 38px;
        padding: 0.4rem 0.4rem 0.4rem 0;
    }

    .bot-product-img,
    .bot-product-img-placeholder {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .bot-product-info-cell {
        padding: 0.4rem 0.3rem;
    }

    .bot-product-name {
        font-size: 0.75rem;
    }

    .bot-product-price {
        font-size: 0.75rem;
    }

    .bot-product-qty-cell {
        width: 64px;
        padding: 0.3rem 0.2rem;
    }

    .bot-product-qty-control {
        gap: 0.15rem;
    }

    .bot-product-qty-btn {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .bot-product-qty-input {
        width: 24px;
        font-size: 0.7rem;
        padding: 0.1rem 0;
    }

    .bot-product-action-cell {
        width: 56px;
        padding: 0.3rem 0 0.3rem 0.2rem;
    }

    .bot-product-add-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.25rem;
        white-space: normal;
        line-height: 1.15;
    }

    .bot-load-more-btn {
        font-size: 0.8rem;
        padding: 0.45rem;
    }


    .bot-input-container {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    #botInput {
        font-size: 0.85rem;
        padding: 0.7rem 0.85rem;
    }

    .btn-enviar {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
    }

    .quick-action-btn {
        font-size: 0.7rem;
        padding: 0.45rem 0.65rem;
    }

    .bot-quick-actions {
        padding: 0.5rem 0.8rem;
        max-height: 65px;
    }

    .cart-sidebar-footer {
        padding: 0.8rem;
    }

    .btn-finalizar-pedido {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .quantity-control label,
    .quantity-control-peso label {
        min-width: 55px;
        font-size: 0.8rem;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .qty-input,
    .peso-input {
        font-size: 0.9rem;
        padding: 0.5rem;
        min-width: 50px;
    }

    /* Hero Section */
    .hero {
        padding: 2.5rem 1rem;
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
        line-height: 1.3;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.3rem;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    }

    .btn-primary {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 260px;
    }

    /* Secciones */
    .menu-section,
    .horarios-section,
    .contacto-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Layout del catálogo en móvil: sidebar arriba, productos abajo */
    .menu-layout {
        flex-direction: column;
    }

    .menu-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Filtros de menú */
    .menu-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        max-height: 200px;
    }

    .filter-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }

    /* Grid del menú */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .menu-item {
        padding: 1rem;
        overflow: hidden;
    }

    .menu-item-header {
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }

    .menu-item h3 {
        font-size: 1rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .menu-item-price {
        padding: 0.35rem 0.65rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .menu-item-familia {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
        max-width: calc(100% - 1rem);
    }

    .menu-item-description {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        word-break: break-word;
    }

    .menu-item-actions {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        gap: 0.6rem;
        overflow: hidden;
    }

    .quantity-control label,
    .quantity-control-peso label {
        min-width: 50px;
        font-size: 0.85rem;
    }

    .quantity-input-group {
        gap: 0.25rem;
    }

    .qty-input,
    .peso-input {
        min-width: 45px;
        max-width: 80px;
        padding: 0.5rem 0.3rem;
        font-size: 0.9rem;
    }

    /* Horarios */
    .horarios-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .horario-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .horario-item h3 {
        font-size: 0.95rem;
    }

    .horario-item p {
        font-size: 0.9rem;
    }

    .horario-icon {
        font-size: 1.8rem;
    }

    /* Contacto */
    .contacto-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contacto-item {
        padding: 1rem;
    }

    .contacto-item h3 {
        font-size: 0.95rem;
    }

    .contacto-item a,
    .contacto-item p {
        font-size: 0.9rem;
    }

    .contacto-icon {
        font-size: 1.8rem;
    }

    .user-message {
        margin-left: 0;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Tablets y móviles grandes (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero {
        min-height: 350px;
        padding: 3rem 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .horarios-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-sidebar-content {
        width: 450px;
    }

    .user-message {
        margin-left: 1rem;
    }
}

/* Tablets grandes y laptops pequeñas (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .cart-sidebar-content {
        width: 500px;
    }
}

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .cart-sidebar-content {
        width: 550px;
    }
}

/* Pantallas muy anchas */
@media (min-width: 1500px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mejoras para touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Dispositivos táctiles */
    .filter-btn,
    .btn-pedido,
    .btn-primary,
    .btn-enviar,
    .quick-action-btn,
    .btn-add-to-cart {
        min-height: 44px; /* Tamaño mínimo recomendado para touch */
    }

    .nav a {
        padding: 0.6rem 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn-remove-item {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    .qty-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Evitar efectos hover en touch */
    .menu-item:hover {
        transform: none;
    }

    .filter-btn:hover {
        transform: none;
    }

    .btn-add-to-cart:hover,
    .btn-primary:hover,
    .btn-pedido:hover {
        transform: none;
    }
}

/* Landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .cart-sidebar-content {
        width: 100%;
    }

    .cart-sidebar-summary {
        max-height: 25vh;
    }

    .bot-messages {
        max-height: 35vh;
    }
}

/* Accesibilidad - Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Menu Item Actions */
.menu-item-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    min-width: 0;
}

.quantity-control,
.quantity-control-peso {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.quantity-control label,
.quantity-control-peso label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    min-width: 70px;
    flex-shrink: 0;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.qty-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #ffd000;
    color: var(--dark-color);
    transform: scale(1.1);
}

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

.qty-input,
.peso-input {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    min-width: 50px;
    max-width: 100px;
}

.qty-input:focus,
.peso-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-add-to-cart {
    background: var(--button-color, var(--secondary-color));
    color: white;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

/* Notificaciones Temporales */
.notificacion-temporal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 3000;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 350px;
}

.notificacion-temporal.show {
    opacity: 1;
    transform: translateX(0);
}

.notificacion-success {
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.notificacion-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.notificacion-info {
    border-left: 4px solid var(--primary-color);
    color: var(--dark-color);
}

/* Badge de precio destacado para productos caros */
.menu-item[data-familia] {
    position: relative;
}

.menu-item .menu-item-price {
    position: relative;
}

/* Mejoras responsive para botones del menú */
@media (max-width: 480px) {
    .btn-add-to-cart {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    .notificacion-temporal {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        font-size: 0.85rem;
        padding: 0.85rem 1.2rem;
    }
}

/* Optimizaciones adicionales para móviles muy pequeños */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .nav a {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }

    .menu-item {
        padding: 0.9rem;
    }

    .menu-item h3 {
        font-size: 0.95rem;
    }

    .menu-item-price {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .quantity-control label,
    .quantity-control-peso label {
        min-width: 45px;
        font-size: 0.8rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .qty-input,
    .peso-input {
        min-width: 40px;
        max-width: 70px;
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }

    .btn-add-to-cart {
        font-size: 0.8rem;
        padding: 0.75rem 0.9rem;
    }

    .cart-sidebar-header h3 {
        font-size: 1.1rem;
    }

    .bot-message,
    .user-message {
        font-size: 0.8rem;
        padding: 0.7rem 0.85rem;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
/* Modal de Imagen */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.image-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-item-image {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-item-image:hover {
    opacity: 0.9;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }

    .image-modal-caption {
        font-size: 1rem;
        padding: 15px 10px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive para botón scroll to top */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* Paginador del catálogo */
.menu-paginador {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    margin-top: 10px;
}

.menu-paginador-info {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 10px 0;
}

.menu-paginador-btns {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-pag-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-pag-btn:hover:not(:disabled):not(.activa) {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.menu-pag-btn.activa {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    font-weight: 700;
}

.menu-pag-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.menu-pag-dots {
    padding: 0 4px;
    color: #999;
}

@media (max-width: 480px) {
    .menu-pag-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }
}

/* ===== Productos con descuento ===== */
.menu-item-badge-desc {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 4px 9px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.menu-item-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.menu-item-price-old {
    text-decoration: line-through;
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
}

.menu-item-price.menu-item-price-desc {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 480px) {
    .menu-item-badge-desc {
        font-size: 0.68rem;
        padding: 3px 7px;
    }
    .menu-item-price-old {
        font-size: 0.72rem;
    }
}


/* Observacion por producto (color, talla, referencia) */
.obs-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
}
.obs-input:focus {
    outline: none;
    border-color: var(--primary-color, #e65100);
}
.cart-item-obs {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 2px;
    font-style: italic;
}


/* Campo de observacion editable dentro del carrito */
.cart-item-obs-input {
    width: 100%;
    margin-top: 4px;
    padding: 4px 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: inherit;
    color: #334155;
    box-sizing: border-box;
    background: #f8fafc;
}
.cart-item-obs-input:focus {
    outline: none;
    border-color: var(--primary-color, #e65100);
    border-style: solid;
    background: #fff;
}


/* ==================================================================
   REESTRUCTURACIÓN MÓVIL DEL CATÁLOGO (solo afecta pantallas <=768px)
   ================================================================== */

/* Elementos exclusivos de móvil: ocultos en escritorio */
.mobile-cat-bar,
.sidebar-scrim,
.mobile-bottom-nav,
.menu-sidebar .drawer-head { display: none; }

@media (max-width: 768px) {

  /* ---------- Barra superior móvil: buscador + Filtros ---------- */
  .mobile-cat-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #fff;
    padding: 10px 12px;
    margin: 0 -0px 12px;
    border-bottom: 1px solid #e6e7ec;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
  .mcb-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f3f4f6;
    border: 1px solid #e6e7ec;
    border-radius: 11px;
    padding: 9px 11px;
    min-width: 0;
  }
  .mcb-ico { color: #9aa0ad; font-size: .95rem; flex-shrink: 0; }
  .mcb-search input {
    border: none; background: transparent; outline: none;
    font-size: 0.9rem; width: 100%; color: #191c26; font-family: inherit;
  }
  .mcb-scan {
    border: none; background: transparent; color: var(--primary-color, #e65100);
    font-size: 1rem; letter-spacing: -2px; cursor: pointer; flex-shrink: 0; padding: 0 2px;
  }
  .mcb-filtros {
    flex-shrink: 0;
    background: var(--dark-color, #1e2230);
    color: #fff; border: none; border-radius: 11px;
    padding: 10px 14px; font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px; cursor: pointer;
  }
  .mcb-filtros span { font-size: 1rem; }

  /* ---------- Sidebar convertido en panel deslizable (drawer) ---------- */
  .menu-layout { position: static; }
  .menu-sidebar {
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: min(88vw, 360px);
    max-height: none !important;
    height: 100vh;
    z-index: 2000;
    background: #fff;
    overflow-y: auto;
    padding: 0 16px 24px;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -14px 0 34px rgba(0,0,0,.22);
    border-radius: 0;
  }
  .menu-sidebar.open { transform: translateX(0); }

  .menu-sidebar .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; z-index: 2;
    padding: 16px 0 12px; margin-bottom: 6px; border-bottom: 1px solid #eef0f3;
  }
  .drawer-title { margin: 0; font-size: 1.15rem; color: var(--dark-color, #1e2230); }
  .drawer-close {
    background: #f3f4f6; border: none; width: 34px; height: 34px; border-radius: 10px;
    font-size: 1rem; color: #6a6f7e; cursor: pointer;
  }
  /* En móvil el buscador vive en la barra superior, no en el drawer */
  .menu-sidebar .grupo-buscar-desktop { display: none; }

  .sidebar-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(12,12,18,.45);
    z-index: 1900;
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .sidebar-scrim.open { opacity: 1; visibility: visible; }

  /* Bloquear scroll del fondo cuando el drawer está abierto */
  body.drawer-abierto { overflow: hidden; }

  /* ---------- Grid de 2 columnas + tarjetas compactas ---------- */
  .menu-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 11px !important;
  }
  .menu-item {
    margin: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .menu-item-image-container {
    width: 100%; height: 140px !important; aspect-ratio: auto;
  }
  .menu-item-content { padding: 9px 9px 10px !important; gap: 3px; }
  .menu-item-header {
    flex-direction: column !important; align-items: flex-start !important;
    gap: 3px !important; margin-bottom: 4px !important;
  }
  .menu-item h3 {
    font-size: 0.78rem !important; line-height: 1.25 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2em;
  }
  .menu-item-sku { font-size: 0.72rem !important; margin-bottom: 0 !important; }
  .menu-item-familia { font-size: 0.6rem !important; padding: 1px 6px !important; }
  .menu-item-price {
    font-size: 0.92rem !important; padding: 0.25rem 0.6rem !important; align-self: flex-start;
  }
  .menu-item-price-old { font-size: 0.7rem !important; }
  .menu-item-badge-desc { font-size: 0.62rem !important; padding: 3px 7px !important; }

  /* Fila de acciones compacta: cantidad + agregar */
  .menu-item-actions {
    display: flex !important; align-items: center; gap: 6px; margin-top: 7px;
  }
  .menu-item-actions .quantity-control,
  .menu-item-actions .quantity-control-peso { margin: 0 !important; flex-shrink: 0; }
  .quantity-input-group { transform: scale(.9); transform-origin: left center; }
  .btn-add-to-cart {
    flex: 1; padding: 0.5rem 0.4rem !important; font-size: 0.75rem !important;
    border-radius: 9px !important; white-space: nowrap;
  }

  /* La observación se maneja en el carrito -> se oculta en la tarjeta */
  .obs-input { display: none !important; }

  /* ---------- Barra inferior fija ---------- */
  .mobile-bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1500;
    background: #fff;
    border-top: 1px solid #e6e7ec;
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .mbn-item {
    flex: 1; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 0.62rem; font-weight: 600; color: #6a6f7e; font-family: inherit;
    padding: 4px 0;
  }
  .mbn-ico { font-size: 1.2rem; position: relative; }
  .mbn-item.active { color: var(--primary-color, #e65100); }
  .mbn-badge {
    position: absolute; top: -5px; right: -9px;
    background: var(--primary-color, #e65100); color: #fff;
    font-size: 0.55rem; min-width: 15px; height: 15px; border-radius: 8px;
    display: grid; place-items: center; padding: 0 3px; font-weight: 700;
  }

  /* Espacio para que la barra inferior no tape el contenido */
  body { padding-bottom: 62px; }
  .scroll-to-top { bottom: 74px !important; }

  /* El paginador con aire respecto a la barra inferior */
  #menuPaginador { margin-bottom: 8px; }
}

@media (max-width: 768px) {
  /* Compactar el control de cantidad en las tarjetas */
  .menu-item-actions .quantity-control,
  .menu-item-actions .quantity-control-peso {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .menu-item-actions .quantity-control > label,
  .menu-item-actions .quantity-control-peso > label { display: none !important; }
  .menu-item-actions { flex-wrap: nowrap !important; align-items: center !important; }
  .quantity-input-group { transform: none !important; }
  .menu-item-actions .quantity-input-group button { width: 26px !important; height: 30px !important; }
  .menu-item-actions .quantity-input-group input { width: 30px !important; height: 30px !important; }
  /* Encabezado un poco más ajustado */
  .menu-item-header { gap: 2px !important; margin-bottom: 3px !important; }
  .menu-item h3 { min-height: 1.9em !important; }
}

@media (max-width: 768px) {
  /* Fila de acciones en horizontal (cantidad + agregar lado a lado) */
  .menu-item .menu-item-actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .menu-item .menu-item-actions .qty-btn { width: 26px !important; height: 32px !important; padding: 0 !important; }
  .menu-item .menu-item-actions .qty-input,
  .menu-item .menu-item-actions .peso-input { height: 32px !important; width: 34px !important; }
  .menu-item .menu-item-actions .btn-add-to-cart { height: 32px !important; padding: 0 6px !important; }
}

@media (max-width: 768px) {
  #menuSidebar.menu-sidebar { transform: translateX(100%) !important; }
  #menuSidebar.menu-sidebar.open { transform: translateX(0) !important; }
}

@media (max-width: 768px) {
  /* Forzar la transicion correcta del drawer (habia un transition en conflicto) */
  #menuSidebar.menu-sidebar { transition: transform .28s ease !important; }
}

@media (max-width: 768px) {
  /* Drawer confiable: sin transform ni transición (que se congelaban), posición por right */
  #menuSidebar.menu-sidebar {
    transform: none !important;
    transition: none !important;
    left: auto !important;
    right: -110vw !important;
  }
  #menuSidebar.menu-sidebar.open { right: 0 !important; }
  /* animación suave solo del scrim para dar sensación de apertura */
  .sidebar-scrim { transition: opacity .2s ease, visibility .2s ease !important; }
}

@media (max-width: 768px) {
  /* En móvil el header NO es fijo (medía 233px y se encimaba con la barra de búsqueda).
     Se desplaza al hacer scroll; la barra de búsqueda compacta queda fija arriba. */
  header, .header { position: static !important; }
}

@media (max-width: 768px) {
  /* ---- Cabecera compacta y sin hero en móvil (para que el catálogo quede arriba, como el diseño) ---- */
  .header .container { padding-top: 10px !important; padding-bottom: 10px !important; }
  .header .logo img { max-width: 40px !important; max-height: 40px !important; height: auto !important; }
  .header h1 { font-size: 1rem !important; line-height: 1.15 !important; margin: 0 !important; }
  .header .tagline { display: none !important; }
  .header nav { margin-top: 8px !important; gap: 10px !important; }
  .header nav a, .header nav .btn-pedido { font-size: 0.82rem !important; }

  /* El hero (banner grande de marca) se oculta en móvil: el catálogo va primero */
  .hero, section.hero, .hero-section { display: none !important; }

  /* El título Nuestro Catálogo más compacto */
  .menu-section .section-title { margin-top: 14px !important; margin-bottom: 12px !important; font-size: 1.5rem !important; }
}

@media (max-width: 768px) {
  /* El nav del header (Catálogo/Términos/Mi Pedido) se duplica en la barra inferior fija -> se oculta en móvil */
  .header nav { display: none !important; }
  .header .container { justify-content: center !important; }
  .header .logo { justify-content: center !important; }
}


/* ==== Chips de categoría + contador en móvil (estilo maqueta) ==== */
.mcb-chips, .mcb-count { display: none; }
@media (max-width: 768px) {
  /* En móvil no se muestra el título grande "Nuestro Catálogo" */
  #menu > .container > .section-title { display: none !important; }

  /* La barra móvil apila buscador arriba y chips debajo */
  .mobile-cat-bar { flex-direction: column !important; align-items: stretch !important; gap: 9px !important; }
  .mobile-cat-bar .mcb-search { width: 100%; }

  .mcb-chips {
    display: flex; gap: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .mcb-chips::-webkit-scrollbar { display: none; }
  .mcb-chip {
    white-space: nowrap; flex-shrink: 0; cursor: pointer; font-family: inherit;
    font-size: 0.76rem; font-weight: 600; padding: 6px 12px; border-radius: 99px;
    border: 1px solid #e6e7ec; background: #fff; color: #6a6f7e;
  }
  .mcb-chip.on {
    background: #FCE9ED; color: var(--primary-color, #D6294B);
    border-color: transparent; font-weight: 700;
  }
  .mcb-chip-filtros {
    background: var(--dark-color, #191c26); color: #fff; border-color: var(--dark-color, #191c26);
    display: inline-flex; align-items: center; gap: 5px;
  }

  .mcb-count {
    display: block; font-size: 0.72rem; color: #6a6f7e;
    margin: 10px 2px 8px; font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 768px) {
  /* ---- Tarjeta de producto más compacta y limpia (estilo maqueta) ---- */
  /* Imagen cuadrada */
  .menu-item .menu-item-image-container { height: auto !important; aspect-ratio: 1 / 1; }
  .menu-item .menu-item-image { width: 100%; height: 100%; object-fit: cover; }

  /* SKU sin sombra de espacio, familia compacta */
  .menu-item .menu-item-sku { color: var(--dark-color,#191c26) !important; font-weight: 700 !important; }

  /* Ocultar la etiqueta 'Cantidad:' (ocupa una línea completa) */
  .menu-item .quantity-control label { display: none !important; }
  .menu-item .quantity-control { margin: 0 !important; display: flex !important; align-items: center; }
  .menu-item .quantity-input-group { transform: none !important; }
  .menu-item .qty-btn { width: 26px !important; height: 30px !important; font-size: 1rem !important; padding: 0 !important; line-height: 1 !important; }
  .menu-item .qty-input { width: 30px !important; height: 30px !important; font-size: 0.78rem !important; padding: 0 !important; }
  .menu-item .btn-add-to-cart { height: 34px !important; padding: 0 8px !important; font-size: 0.74rem !important; }

  /* Fila de acciones sin exceso de alto */
  .menu-item .menu-item-actions { gap: 6px !important; margin-top: 8px !important; align-items: center !important; }
}

@media (max-width: 768px) {
  /* La tarjeta sin padding: la imagen va de borde a borde (el texto ya tiene su propio padding) */
  .menu-item { padding: 0 !important; }
  .menu-item .menu-item-image-container { width: 100% !important; }
  .menu-item .menu-item-image { width: 100% !important; }

  /* Los botones de cantidad ignoraban el height por su min-height:44px */
  .menu-item .qty-btn { min-height: 0 !important; height: 30px !important; }
  .menu-item .qty-input { min-height: 0 !important; height: 30px !important; }
  .menu-item .quantity-input-group { min-height: 0 !important; height: 30px !important; }
}

@media (max-width: 768px) {
  .menu-item .btn-add-to-cart { min-height: 0 !important; height: 36px !important; }
  .menu-item .menu-item-actions { min-height: 0 !important; }
}

@media (max-width: 768px) {
  /* Botón de escanear: ícono de cámara nítido (antes se veía como un bloque rojo) */
  .mcb-scan { color: inherit !important; letter-spacing: normal !important; font-size: 1.15rem !important; opacity: .85; }
}

@media (max-width: 768px) {
  /* 'Limpiar filtros' fijo al fondo del drawer: siempre visible sin hacer scroll */
  #menuSidebar #limpiarFiltrosBtn {
    position: sticky; bottom: 0; z-index: 3;
    width: 100%; margin: 14px 0 0; padding: 12px !important;
    background: #fff; border: none; border-top: 1px solid #eef0f3;
    color: var(--primary-color, #D6294B); font-weight: 700; font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 -8px 16px rgba(255,255,255,.9);
  }
  /* Aire extra abajo del contenido del drawer */
  #menuSidebar { padding-bottom: 8px !important; }
}

@media (max-width: 768px) {
  /* En móviles 100vh incluye la zona bajo la barra del navegador -> el fondo del panel
     quedaba fuera de la pantalla visible. 100dvh usa la altura visible real (Pixel/Chrome). */
  #menuSidebar.menu-sidebar {
    height: 100vh;        /* respaldo navegadores viejos */
    height: 100dvh !important;
    max-height: 100dvh !important;
    bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  /* FIX: el control de cantidad ocupaba toda la fila y aplastaba el botón 'Agregar' a 12px */
  .menu-item .menu-item-actions .quantity-control {
    width: auto !important; flex: 0 0 auto !important; min-width: 0 !important;
  }
  .menu-item .menu-item-actions .quantity-input-group { width: auto !important; flex: 0 0 auto !important; }
  .menu-item .qty-btn { width: 22px !important; }
  .menu-item .qty-input { width: 26px !important; }
  .menu-item .menu-item-actions .btn-add-to-cart {
    flex: 1 1 auto !important; min-width: 60px !important;
    padding: 0 6px !important; font-size: 0.72rem !important;
    white-space: nowrap; overflow: hidden;
  }
}


/* ==== Ficha de producto EXACTA al diseño (solo móvil) ==== */
@media (max-width: 768px) {
  /* Orden del diseño: SKU -> nombre -> categoría -> precio -> acciones */
  .menu-item .menu-item-content { display: flex !important; flex-direction: column !important; gap: 2px !important; }
  .menu-item .menu-item-header { display: contents !important; }

  .menu-item .menu-item-sku      { order: 1 !important; }
  .menu-item .menu-item-header h3 { order: 2 !important; margin: 1px 0 0 !important; }
  .menu-item .menu-item-familia  { order: 3 !important; }
  .menu-item .menu-item-price    { order: 4 !important; margin-top: 2px !important; }
  .menu-item .menu-item-description,
  .menu-item .menu-item-peso,
  .menu-item .menu-item-alergenos { order: 5 !important; }
  .menu-item .menu-item-actions  { order: 6 !important; }

  /* SKU: solo el código, en negrita (sin la etiqueta "SKU:") */
  .menu-item .sku-lbl { display: none !important; }
  .menu-item .menu-item-sku { color: var(--dark-color,#191c26) !important; font-weight: 800 !important; font-size: 0.62rem !important; letter-spacing: .02em; }

  /* Categoría: texto gris en mayúsculas, sin pastilla/fondo */
  .menu-item .menu-item-familia {
    background: none !important; border: none !important; padding: 0 !important;
    color: #9aa0ad !important; font-size: 0.58rem !important; font-weight: 600 !important;
    text-transform: uppercase; letter-spacing: .04em; align-self: flex-start;
  }

  /* Precio rojo, prominente */
  .menu-item .menu-item-price { align-self: flex-start; }

  /* Botón "Agregar" sin el emoji del carrito */
  .menu-item .add-cart-ico { display: none !important; }

  /* Cantidad compacta (el min-width del CSS base impedía achicarla) */
  .menu-item .qty-btn { min-width: 24px !important; width: 24px !important; height: 30px !important; }
  .menu-item .qty-input, .menu-item .peso-input {
    min-width: 26px !important; width: 28px !important; max-width: 30px !important; height: 30px !important; padding: 0 !important;
  }
  .menu-item .menu-item-actions .quantity-control,
  .menu-item .menu-item-actions .quantity-control-peso { flex: 0 0 auto !important; width: auto !important; }
  .menu-item .menu-item-actions .quantity-input-group { flex: 0 0 auto !important; width: auto !important; }
  .menu-item .menu-item-actions .btn-add-to-cart {
    flex: 1 1 auto !important; min-width: 0 !important; height: 32px !important;
    padding: 0 10px !important; font-size: 0.78rem !important; white-space: nowrap;
  }
}

@media (max-width: 768px) {
  /* Cantidad aún más compacta para que 'Agregar' quepa completo */
  .menu-item .menu-item-actions .quantity-input-group { gap: 1px !important; }
  .menu-item .qty-btn { min-width: 22px !important; width: 22px !important; }
  .menu-item .qty-input, .menu-item .peso-input { min-width: 24px !important; width: 24px !important; max-width: 26px !important; }
}

@media (max-width: 768px) {
  .menu-item .menu-item-actions .btn-add-to-cart {
    padding: 0 4px !important; font-size: 0.72rem !important; letter-spacing: -0.01em;
  }
}

/* Precio 'Por mayor' (mayorista) bajo el precio unidad */
.menu-item-price-mayorista {
  display: block;
  font-size: 0.72rem;
  color: #1b9e6a;
  font-weight: 700;
  margin-top: 1px;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .menu-item .menu-item-price-mayorista { font-size: 0.64rem; }
}

/* ==== Precios PU (unidad) y PM (mayorista) en burbujas separadas ==== */
.menu-item-precios { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.precio-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9px; padding: 3px 9px 3px 3px;
  font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25;
}
.precio-badge .pb-lbl {
  font-size: 0.62rem; font-weight: 800; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 6px; color: #fff;
}
.precio-badge .pb-val { font-size: 0.95rem; }
.precio-pu { background: #FCE9ED; color: #D6294B; }
.precio-pu .pb-lbl { background: #D6294B; }
.precio-pm { background: #E6F5EF; color: #1B9E6A; }
.precio-pm .pb-lbl { background: #1B9E6A; }
@media (max-width: 768px) {
  .menu-item .menu-item-precios { gap: 3px; }
  .menu-item .precio-badge .pb-val { font-size: 0.82rem; }
  .menu-item .precio-badge .pb-lbl { font-size: 0.56rem; padding: 1px 5px; }
  .menu-item .precio-badge { padding: 2px 7px 2px 2px; }
}

/* NOVATEKNO: precio unico (sin PU/PM) */
.precio-badge.precio-solo { background: #FCE9ED; color: #D6294B; padding: 3px 10px; }

/* Puntico semaforo de inventario en la tarjeta */
.stock-dot {
  position: absolute; top: 7px; right: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35);
  z-index: 3;
}
.stock-rojo { background: #e53935; }
.stock-naranja { background: #fb8c00; }
.stock-amarillo { background: #fdd835; }
.stock-verde { background: #43a047; }
@media (max-width: 768px) {
  .menu-item .stock-dot { width: 10px; height: 10px; top: 6px; right: 6px; }
}

/* Al consultar/escanear un producto, dejar espacio para el header/barra fija
   (antes el resultado quedaba tapado y parecia bajar un poco) */
.menu-content, #menuContainer { scroll-margin-top: 120px; }
