:root {
    --bg-main: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --accent-red: #B3404E;
    --accent-red-dark: #8E2E3B;
    --accent-red-hover: #C74B5B;
    --accent-gold: #f4c430;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #2e2e2e;
    --font-logo: 'Alfa Slab One', serif;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Barra de scroll para elementos internos (modal, carrito) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.5;
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Bloqueo de scroll para celulares y desktop al abrir modales/carrito */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ==========================================================================
   ENCABEZADO ESTILO "ENTRE AMIGOS / LA TABERNA"
   ========================================================================== */
header {
    background: linear-gradient(to top, #0F0F0F 0%, #1a1a1a 100%);
    position: relative;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-red);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.header-back-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(22, 22, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-back-btn i {
    font-size: 0.95rem;
    color: var(--accent-red);
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-back-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.header-back-btn:hover i {
    color: #ffffff;
    transform: translateX(-2px);
}

@media (max-width: 480px) {
    .header-back-btn {
        top: 14px;
        left: 14px;
        padding: 5px 10px;
        font-size: 0.78rem;
        gap: 6px;
    }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-wrapper img.logo {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid var(--accent-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    background-color: transparent;
}

.brand-titles h1 {
    font-family: var(--font-logo);
    font-size: 3.6rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    line-height: 1;
    margin: 10px 0 6px;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(0, 0, 0, 0.85);
}

.brand-titles .subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: #d8b888; /* Tono beige/dorado como el del logo */
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 4px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.brand-titles .subtitle::before,
.brand-titles .subtitle::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background-color: #d8b888;
}

.header-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    align-items: center;
}

.header-link, .footer-link {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.header-link i, .footer-link i {
    color: #25D366; /* Verde WhatsApp */
    font-size: 1.1rem;
}

.header-link:hover, .footer-link:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.header-link:hover i, .footer-link:hover i {
    color: #ffffff;
}

.header-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-info span i {
    color: var(--accent-red);
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y CATEGORÍAS
   ========================================================================== */
.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #0f0f0f; /* Fondo 100% sólido para que nada se transparente detrás */
    border-bottom: 1px solid var(--border-color);
    padding: 10px 1rem;
    margin-top: -1px; /* Evita cualquier línea o espacio de subpíxel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.sticky-nav-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background-color: #0f0f0f;
    pointer-events: none;
}

/* ==========================================================================
   BARRA DE PROGRESO DE SCROLL (PARA CELULARES / RESPONSIVE)
   ========================================================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 3.5px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1200;
    pointer-events: none;
}

.scroll-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--accent-red);
    box-shadow: none;
    border-radius: 0;
    will-change: height;
}

/* ==========================================================================
   BARRA / SLIDER DE SCROLL LATERAL INTERACTIVO (SOLO PARA COMPUTADORA)
   ========================================================================== */
.page-scrollbar-track {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1500; /* Por encima del botón flotante del carrito (z-index: 1000) */
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: rgba(12, 12, 12, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-scrollbar-track:hover,
.page-scrollbar-track.active {
    background: rgba(18, 18, 18, 0.9);
    border-left-color: rgba(179, 64, 78, 0.5);
    z-index: 1600;
}

.page-scrollbar-thumb {
    position: absolute;
    right: 3px;
    left: 3px;
    top: 0;
    min-height: 48px;
    border-radius: 3px;
    background: var(--accent-red);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: grab;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.page-scrollbar-track:hover .page-scrollbar-thumb,
.page-scrollbar-track.active .page-scrollbar-thumb,
.page-scrollbar-thumb.dragging {
    background: var(--accent-red-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    cursor: grabbing;
}

.page-scrollbar-badge {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: #141414;
    color: #ffffff;
    border: 1px solid var(--accent-red);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 1610;
    transform-origin: right center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.page-scrollbar-thumb.dragging .page-scrollbar-badge,
.page-scrollbar-track.active .page-scrollbar-badge {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Reglas condicionales según dispositivo */
@media (min-width: 992px) {
    html {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .scroll-progress-container {
        display: none !important;
    }
    .page-scrollbar-track {
        display: flex;
    }
}

@media (max-width: 991px) {
    .page-scrollbar-track {
        display: none !important;
    }
    .scroll-progress-container {
        display: block;
    }
}


.nav-top-row {
    max-width: 600px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-logo-btn:hover,
.nav-logo-btn:active {
    transform: scale(1.05);
    filter: none;
}

.nav-mini-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    border: 1.5px solid var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    background-color: transparent;
}

.search-bar-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-container i {
    position: absolute;
    left: 15px;
    color: var(--accent-red);
    font-size: 1.1rem;
}

.search-bar-container input {
    width: 100%;
    padding: 10px 15px 10px 42px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-bar-container input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px var(--accent-red), 0 4px 12px rgba(0, 0, 0, 0.4);
}

#category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px 6px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    align-items: center;
    scrollbar-width: none !important; /* Oculta la barra nativa/default en Firefox */
    -ms-overflow-style: none !important; /* Oculta en Edge/IE */
}

/* Ocultar barra de scroll nativa/default del navegador en móviles y PC */
#category-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#category-nav.grabbing {
    cursor: grabbing;
    user-select: none;
}

/* Indicador de scroll horizontal personalizado para móviles y PC */
.cat-nav-progress-container {
    max-width: 1200px;
    margin: 4px auto 0;
    height: 3px;
    background: #1c1c1c;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cat-nav-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--accent-red);
    border-radius: 2px;
    box-shadow: none;
    transition: transform 0.05s ease-out;
    will-change: transform, width;
}

.cat-btn {
    background: #1c1c1c;
    color: #d0d0d0;
    border: 1px solid #333;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cat-btn:hover, .cat-btn.active {
    background-color: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CONTENEDOR DE PRODUCTOS
   ========================================================================== */
#menu-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0.5rem;
}

.category-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 140px; /* Evita que la barra sticky tape el título al hacer scroll */
}

.category-section:last-child {
    margin-bottom: 1rem; /* Espacio reducido y ceñido con el footer */
}

.category-header-styled {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #2a2a2a;
}

.category-header-styled::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
}

.category-header-styled .main-cat-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
}

.category-header-styled .cat-badge {
    font-family: var(--font-logo);
    font-size: 1.05rem;
    color: #d8b888;
    letter-spacing: 2px;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

/* Tarjeta individual */
.product-card {
    background-color: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

/* Tarjeta Destacada / Menú del Día */
.product-card.featured-product-card {
    border: 1.5px solid #d4af37;
    background: linear-gradient(145deg, #1e1b15 0%, #151411 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.product-card.featured-product-card:hover {
    border-color: #f4c430;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.featured-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #f4c430;
    color: #111;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 3px;
    z-index: 5;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-card.featured-product-card .product-name {
    color: #f4c430;
}

/* Contenedor de imagen limpio */
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #242424;
}

.product-img-wrapper::before {
    display: none;
}

.product-card img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.has-options-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(179, 64, 78, 0.7);
    color: #d65d6c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #2d2d2d;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.product-price.is-consult {
    font-size: 1.25rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.add-btn {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background-color: var(--accent-red-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MODAL DE OPCIONES / SABORES
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background: #181818;
    border: 1px solid #383838;
    border-radius: 6px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.close-modal-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    border: 1px solid #444;
    color: #fff;
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: var(--accent-red);
}

.modal-img-container {
    width: 100%;
    height: 200px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 1.5rem;
}

.modal-details h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.modal-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 1.2rem;
}

.modal-options-section {
    margin-bottom: 1.2rem;
}

.modal-options-section label, .modal-notes-section label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.options-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt-pill {
    background: #242424;
    color: #ccc;
    border: 1px solid #3a3a3a;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.opt-pill:hover {
    border-color: var(--accent-red);
    color: #fff;
}

.opt-pill.selected {
    background-color: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.modal-notes-section input {
    width: 100%;
    padding: 10px;
    background: #222;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-notes-section input:focus {
    border-color: var(--accent-red);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    align-items: center;
}

.quantity-picker {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
}

.quantity-picker button {
    background: transparent;
    border: none;
    color: #fff;
    width: 36px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-picker button:hover {
    background: #3a3a3a;
}

.quantity-picker span {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.modal-btn-confirm {
    flex-grow: 1;
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-confirm:hover {
    background: var(--accent-red-dark);
}

/* ==========================================================================
   CARRITO LATERAL Y BOTONES FLOTANTES
   ========================================================================== */
.cart-btn, .print-btn {
    position: fixed;
    z-index: 1000;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn {
    bottom: 25px;
    right: 25px;
    background-color: var(--accent-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.cart-bump {
    animation: cartBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.15); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

#cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #fff;
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 900;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-red);
}


/* Sidebar del Carrito */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: #141414;
    border-left: 2px solid var(--accent-red);
    z-index: 2500;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    overflow: hidden;
    overscroll-behavior: contain;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #0d0d0d;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 2.2rem;
    letter-spacing: 1px;
}

#close-cart-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1 1 auto;
    min-height: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.25rem;
}

.cart-item {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #2d2d2d;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.cart-item-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.cart-item-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-red);
}

.cart-item-price.is-consult {
    font-size: 1.05rem;
    white-space: nowrap;
}

.cart-consult-note {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: normal;
    display: inline-block;
    margin-left: 4px;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-ctrl button {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.cart-qty-ctrl button:hover {
    background: #383838;
}

.cart-qty-ctrl .del-btn {
    background: var(--accent-red);
    border-color: var(--accent-red);
    margin-left: 6px;
}

.cart-footer {
    flex: 0 0 auto;
    padding: 1.25rem 1.25rem calc(2.2rem + env(safe-area-inset-bottom, 20px));
    background: #0d0d0d;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: 70vh;
    max-height: 70dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#total-price {
    color: var(--accent-red);
}

.checkout-options label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.checkout-options select, .checkout-options input {
    width: 100%;
    padding: 10px;
    background: #1c1c1c;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.checkout-options input:focus,
.checkout-options select:focus {
    border-color: var(--accent-red);
}

/* ==========================================================================
   DROPDOWN / SELECT CUSTOM SOFISTICADO
   ========================================================================== */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    margin-bottom: 8px;
}

.custom-dropdown-trigger {
    width: 100%;
    padding: 11px 14px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.custom-dropdown-trigger:hover {
    background: #232323;
    border-color: #4a4a4a;
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px var(--accent-red);
    background: #202020;
}

.custom-dropdown-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f0f0f0;
}

.custom-dropdown-value i {
    color: var(--accent-red);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.custom-dropdown-arrow {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-left: 8px;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #161616;
    border: 1px solid #383838;
    border-radius: 4px;
    padding: 5px;
    margin: 0;
    list-style: none;
    z-index: 100;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    max-height: 220px;
    overflow-y: auto;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 3px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-dropdown-item:hover {
    background: #252525;
    color: #fff;
}

.custom-dropdown-item.selected {
    background: rgba(179, 64, 78, 0.18);
    color: #fff;
    font-weight: 600;
}

.custom-dropdown-item .item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: var(--accent-red);
    font-size: 0.95rem;
}

.custom-dropdown-item .item-text {
    flex-grow: 1;
}

.custom-dropdown-item .item-check {
    color: var(--accent-red);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.custom-dropdown-item.selected .item-check {
    opacity: 1;
}

.checkout-btn {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 14px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #1ebe5d;
}

.checkout-btn:disabled {
    background-color: #383838;
    color: #777;
    cursor: not-allowed;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    overscroll-behavior: none;
    touch-action: none;
}

.overlay.active {
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #0a0a0a;
    border-top: 2px solid #222;
    padding: 2.2rem 1.5rem 120px; /* 120px abajo para que el botón flotante del carrito nunca tape el texto */
    text-align: center;
    margin-top: 1rem; /* Espacio reducido con el último producto */
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--accent-red);
    background-color: transparent;
}

.footer-logo h3 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    white-space: nowrap; /* Mantiene el texto siempre en una sola línea */
    font-size: 0.92rem;
    max-width: 95vw;
}

.footer-link i {
    color: #25D366;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-link strong {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.footer-link:hover i {
    color: #ffffff;
}

.footer-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-location i {
    color: var(--accent-red);
}

.footer-credit {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    color: #888;
    letter-spacing: 0.5px;
}

.footer-credit .credit-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

.footer-credit .credit-link:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
    text-shadow: none;
}

@media (max-width: 768px) {
    .sidebar {
        max-width: 100%;
        width: 100%;
        right: -100%;
        border-left: none;
    }

    .sidebar.open {
        right: 0;
    }

    .sidebar-header {
        padding: 1.1rem 1.25rem;
    }

    .sidebar-header h2 {
        font-size: 1.9rem;
    }

    .cart-footer {
        padding: 1.2rem 1.2rem calc(4.5rem + env(safe-area-inset-bottom, 25px));
    }

    .checkout-btn {
        padding: 15px;
        font-size: 1.35rem;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .modal {
        padding: 0.75rem;
    }

    .modal-content {
        max-height: 88dvh;
    }

    .modal-details {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .brand-titles .subtitle {
        font-size: 0.88rem;
        letter-spacing: 2.5px;
        gap: 8px;
    }

    .brand-titles .subtitle::before,
    .brand-titles .subtitle::after {
        width: 20px;
    }

    .featured-badge {
        bottom: 8px;
        left: 8px;
        font-size: 0.66rem;
        padding: 3px 8px;
    }

    .has-options-tag {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 3px 7px;
    }

    footer {
        padding: 1.8rem 1rem 120px;
        margin-top: 0.8rem;
    }

    .footer-link {
        font-size: 0.82rem; /* Tamaño compacto para pantallas chicas */
        padding: 6px 14px;
        gap: 6px;
    }

    .footer-link i {
        font-size: 1.05rem;
    }

    .footer-location {
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .footer-link {
        font-size: 0.74rem;
        padding: 5px 10px;
        gap: 4px;
    }
}

/* ==========================================================================
   ESTILOS PARA IMPRESIÓN (PDF / CARTA FÍSICA)
   ========================================================================== */
@media print {
    @page {
        margin: 1cm;
        size: A4 portrait;
    }

    body {
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 10pt;
    }

    header {
        background: transparent !important;
        border-bottom: 2px solid #111 !important;
        padding: 0 0 10px 0 !important;
    }

    header::before {
        display: none !important;
    }

    .brand-titles h1 {
        font-family: var(--font-logo) !important;
        color: #000 !important;
        font-size: 2.5rem !important;
        text-shadow: none !important;
    }

    .brand-titles .subtitle {
        color: #333 !important;
        font-size: 1.5rem !important;
    }

    .badge-tag {
        background: #000 !important;
        color: #fff !important;
    }

    .header-info {
        color: #333 !important;
    }

    .sticky-nav-wrapper, .cart-btn, .print-btn, #cart-sidebar, #cart-overlay, #options-modal, footer, .header-back-btn {
        display: none !important;
    }

    #menu-container {
        padding: 10px 0 !important;
        column-count: 2;
        column-gap: 30px;
    }

    .category-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }

    .category-header-styled {
        border-bottom: 1.5px solid #000 !important;
        margin-bottom: 10px;
        padding-bottom: 3px;
    }

    .category-header-styled::after {
        display: none;
    }

    .category-header-styled .main-cat-title {
        color: #000 !important;
        font-size: 1.8rem !important;
    }

    .category-header-styled .cat-badge {
        color: #444 !important;
        font-size: 1.4rem !important;
    }

    .products-grid {
        display: block !important;
    }

    .product-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
        border-bottom: 1px dotted #ccc !important;
        break-inside: avoid;
    }

    .product-img-wrapper, .has-options-tag, .add-btn {
        display: none !important;
    }

    .product-info {
        padding: 0 !important;
    }

    .product-name {
        color: #000 !important;
        font-size: 1.1rem !important;
        display: inline !important;
    }

    .product-desc {
        color: #555 !important;
        font-size: 0.82rem !important;
        margin: 2px 0 0 !important;
    }

    .product-bottom-row {
        display: inline !important;
        float: right !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-price {
        color: #000 !important;
        font-size: 1.1rem !important;
        font-weight: bold !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   MODO CARTA DIGITAL (Sin carrito para restaurante)
   ============================================================ */
body.mode-carta #cart-btn,
body.mode-carta .add-btn,
body.mode-carta .add-to-cart-btn,
body.mode-carta .has-options-tag,
body.mode-carta #cart-overlay,
body.mode-carta #cart-sidebar,
body.mode-carta #options-modal {
    display: none !important;
}

body.mode-carta .product-card {
    cursor: default;
}

body.mode-carta .product-bottom-row {
    justify-content: flex-start;
    margin-top: 8px;
}

body.mode-carta .product-price {
    font-size: 1.35rem;
    color: var(--accent-red);
}

/* ============================================================
   OPCIONES EN TARJETA DE PRODUCTO (Carta Restaurante)
   ============================================================ */
.card-options-container {
    margin-top: 10px;
    margin-bottom: 6px;
    display: none;
}

body.mode-carta .card-options-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-options-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-options-label i {
    font-size: 0.8rem;
}

.card-options-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.card-option-pill {
    background: rgba(244, 196, 48, 0.08);
    border: 1px solid rgba(244, 196, 48, 0.3);
    color: #f7e6a6;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 3px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}
