@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --bg-dark: #0B0D12;
    --surface: #171D26;
    --primary: #C7F000;                   /* Verde lima neón unificado */
    --primary-glow: rgba(199, 240, 0, 0.35);
    --btn-grad-1: #C7F000;
    --btn-grad-2: #C7F000;
    --logo-grad-1: #F8FAFC;
    --logo-grad-2: #C7F000;
    --tag-accent: #C7F000;
    --price-accent: #F8FAFC;              /* Naranja vibrante de promociones del Home */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --footer-bg: var(--bg-dark);
    --card-border: #263b55;               /* Borde azul grafito unificado */
    --header-bg: rgba(11, 13, 18, 0.75);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-weight: 400;
    padding-top: 85px;
    padding-bottom: 40px;
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   2. HEADER FIJO Y BRANDING DEL LOGO
   ========================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

.header-brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.logo-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 240, 0, 0.6) 0%, rgba(199, 240, 0, 0) 75%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.logo-heading {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-svg {
    height: 42px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
}

.logo-link:hover .logo-svg {
    transform: scale(1.03);
}

.header-divider {
    width: 1px;
    height: 28px;
    background: var(--card-border);
    flex-shrink: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-slogan {
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: 0.5px;
    user-select: none;
}

.slogan-line {
    display: block;
}

.text-green {
    color: var(--primary);
    display: inline-block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =======================================================
   ANIMACIÓN DEL LOGO: TRAZO VECTORIAL NEÓN, DIVIDER Y ACTIVO
   ======================================================= */
.neon-path {
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill-opacity 0.25s ease, stroke-width 0.2s ease;
}

/* 1. Trazo neón de las alas de la M */
.header-brand-container.is-activating #logo-wing-left,
.header-brand-container.is-activating #logo-wing-right {
    stroke: #ffffff;
    stroke-width: 16px;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: neonTraceWings 0.65s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* 2. Trazo neón láser del botón Play (verde lima) */
.header-brand-container.is-activating #logo-play {
    stroke: #C7F000;
    stroke-width: 22px;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: neonTracePlay 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 3. Encendido fluorescente de las letras "menu" y "activo" del logo */
.header-brand-container.is-activating #logo-text-menu path {
    animation: textMenuFlash 0.5s ease forwards;
}

.header-brand-container.is-activating #logo-text-activo path,
.header-brand-container.is-activating #logo-text-activo rect,
.header-brand-container.is-activating #logo-text-activo polygon {
    animation: textActivoFlash 0.6s ease forwards;
}

/* 4. Onda expansiva, divisor y eslogan */
.header-brand-container.is-activating .logo-link::after {
    animation: shockwavePulse 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.header-brand-container.is-activating .header-divider {
    animation: dividerIgnite 0.6s ease 0.1s forwards;
}

.header-brand-container.is-activating .header-slogan .slogan-line:first-child {
    animation: textMenuFlashSlogan 0.45s ease 0.12s forwards;
}

.header-brand-container.is-activating .header-slogan .text-green {
    animation: textActivoPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s forwards;
}

/* Keyframes Neón */
@keyframes neonTraceWings {
    0% {
        stroke-dashoffset: 100;
        fill-opacity: 0.15;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    }
    50% {
        stroke-dashoffset: 0;
        fill-opacity: 0.7;
        filter: drop-shadow(0 0 20px #C7F000);
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-width: 0px;
        filter: none;
    }
}

@keyframes neonTracePlay {
    0% {
        stroke-dashoffset: 100;
        transform: scale(0.85);
        fill-opacity: 0.2;
        filter: drop-shadow(0 0 14px #C7F000);
    }
    45% {
        stroke-dashoffset: 0;
        transform: scale(1.18);
        fill-opacity: 1;
        filter: drop-shadow(0 0 30px #C7F000) drop-shadow(0 0 10px #ffffff);
    }
    80% {
        transform: scale(0.96);
    }
    100% {
        stroke-dashoffset: 0;
        transform: scale(1);
        stroke-width: 0px;
        filter: none;
    }
}

@keyframes textMenuFlash {
    0% { fill: #f8fafc; }
    50% { fill: #ffffff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)); }
    100% { fill: #f8fafc; filter: none; }
}

@keyframes textActivoFlash {
    0% { fill: #c7f000; }
    40% { fill: #ffffff; filter: drop-shadow(0 0 16px #c7f000); }
    100% { fill: #c7f000; filter: none; }
}

@keyframes shockwavePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(5.5);
        opacity: 0;
    }
}

@keyframes dividerIgnite {
    0% {
        background-color: var(--card-border);
        box-shadow: none;
        transform: scaleY(1);
    }
    35% {
        background-color: #C7F000;
        box-shadow: 0 0 16px #C7F000, 0 0 28px rgba(199, 240, 0, 0.85);
        transform: scaleY(1.08);
    }
    70% {
        background-color: #C7F000;
        box-shadow: 0 0 8px rgba(199, 240, 0, 0.5);
    }
    100% {
        background-color: var(--card-border);
        box-shadow: none;
        transform: scaleY(1);
    }
}

@keyframes textActivoPop {
    0% { 
        transform: scale(1);
        color: var(--logo-grad-2);
        text-shadow: none;
    }
    35% { 
        transform: scale(1.24); 
        color: #ffffff;
        text-shadow: 
            0 0 10px #C7F000, 
            0 0 22px #C7F000, 
            0 0 35px rgba(199, 240, 0, 0.9);
    }
    65% {
        transform: scale(0.97);
        color: #d8ff26;
        text-shadow: 0 0 14px rgba(199, 240, 0, 0.7);
    }
    100% { 
        transform: scale(1);
        color: var(--logo-grad-2);
        text-shadow: none;
    }
}

@keyframes textMenuFlashSlogan {
    0% { 
        color: var(--logo-grad-1); 
        text-shadow: none; 
    }
    40% { 
        color: #ffffff; 
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); 
    }
    100% { 
        color: var(--logo-grad-1); 
        text-shadow: none; 
    }
}

/* ==========================================
   BOTÓN FLOTANTE DEL CARRITO (FAB)
   ========================================== */
/* Botón flotante del carrito con fondo negro */
.cart-fab {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #0B0D12;                       /* Fondo negro / oscuro */
    color: var(--primary);                     /* Color de texto/icono en verde */
    border: 1px solid var(--primary);          /* Borde verde para definir la silueta */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(199, 240, 0, 0.2);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-fab:active {
    transform: scale(0.95);
}

/* Badge contador: fondo verde con texto negro para máximo contraste */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #0B0D12;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0B0D12;
}

/* ==========================================
   3. CONTENEDORES Y BANNERS
   ========================================== */
.categories-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
}

.restaurant-banner {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.restaurant-name {
    text-align: center;
    color: var(--text-main);
    margin: 15px 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 20px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.category-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background-color: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-btn input[type="radio"] { 
    display: none; 
}

.category-btn.active {
    background-color: var(--btn-grad-1);
    color: #0B0D12 !important;
    border-color: var(--btn-grad-1);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(199, 240, 0, 0.35);
}

/* ==========================================
   4. GRID DE MENÚ Y TARJETAS DE PLATOS
   ========================================== */
.menu-grid {
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 600px) { 
    .menu-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    } 
}

@media (min-width: 992px) {
    .menu-grid { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
        max-width: 1200px; 
        margin: 0 auto; 
    }
}

.dish-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dish-card:hover {
    border-color: #C7F000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(199, 240, 0, 0.25);
}

.media-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid var(--card-border);
}

.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.dish-card:active .media-container video { 
    transform: scale(1.1); 
}

.dish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dish-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    word-break: break-word;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.dish-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--price-accent);
    letter-spacing: -0.3px;
}

.btn-add {
    background: var(--btn-grad-1);
    color: #0B0D12;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(199, 240, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-add:hover {
    box-shadow: 0 0 15px rgba(199, 240, 0, 0.45);
    transform: scale(1.05);
}

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

.btn-add.disabled { 
    background: #334155; 
    color: var(--text-muted); 
    box-shadow: none; 
    cursor: not-allowed; 
    transform: none;
}

[data-action="toggle-card-pill"].active,
[data-action="toggle-card-pill"][style*="var(--primary)"] {
    background-color: var(--primary) !important;
    color: #0B0D12 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================
   5. BOTTOM SHEET Y CONTENEDOR DEL CARRITO
   ========================================== */
.hidden { 
    display: none !important; 
}

.cart-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background: var(--surface);
    border-radius: 30px 30px 0 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    border-top: 1px solid var(--card-border);
}

.cart-bottom-sheet.open { 
    transform: translateY(0); 
}

.sheet-indicator {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 15px auto;
}

.cart-header {
    padding: 0 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.cart-header h2 { 
    color: var(--text-main); 
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0; 
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

/* ==========================================
   6. ÍTEMS DEL CARRITO Y SUBMENÚ PERSONALIZADO
   ========================================== */
.cart-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    background: rgba(11, 13, 18, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-item-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.cart-item-info { 
    flex: 1; 
    min-width: 0; 
}

.cart-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info span {
    font-size: 0.88rem;
    color: var(--price-accent);
    font-weight: 700;
}

.toggle-custom-label {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--tag-accent);
    margin-top: 3px;
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    flex-shrink: 0;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ingredients-submenu {
    display: none !important;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.ingredients-submenu.open {
    display: block !important;
    animation: fadeInSubmenu 0.25s ease-out forwards;
}

@keyframes fadeInSubmenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ingredients-submenu h5 {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

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

.ingredient-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    box-sizing: border-box;
}

.ingredient-checkbox input[type="checkbox"],
.ingredient-checkbox input[type="radio"] {
    accent-color: var(--tag-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.ing-name { 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* ==========================================
   7. FOOTER DEL CARRITO Y TOTALES
   ========================================== */
.glass-footer {
    padding: 22px 25px;
    background: var(--surface);
    border-top: 1px solid var(--card-border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.disclaimer { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-align: center; 
    margin-bottom: 14px; 
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--btn-grad-1);
    color: #0B0D12 !important;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    box-shadow: 0 4px 15px rgba(199, 240, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ==========================================
   8. FORMULARIO DE CHECKOUT Y GPS
   ========================================== */
.checkout-form {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex: 1;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
}

.form-group label { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 600; 
}

.form-group input {
    background: rgba(11, 13, 18, 0.6);
    border: 1px solid var(--card-border);
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus { 
    border-color: var(--tag-accent); 
    background: rgba(11, 13, 18, 0.8); 
}

.btn-gps {
    background: rgba(199, 240, 0, 0.08);
    border: 1px dashed var(--tag-accent);
    color: var(--tag-accent);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-gps:active { 
    background: rgba(199, 240, 0, 0.18); 
}

.gps-status { 
    font-size: 0.75rem; 
    color: var(--tag-accent); 
    text-align: center; 
}

/* ==========================================
   9. CARRUSEL HORIZONTAL TÁCTIL EN TARJETA
   ========================================== */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch; 
    width: 100%;
}

.carousel-container::-webkit-scrollbar { 
    display: none; 
}

.carousel-slide {
    flex: 0 0 100%; 
    height: 100%;
    scroll-snap-align: center; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.carousel-slide img, 
.carousel-slide video {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block;
}

.swipe-indicator {
    position: absolute; 
    bottom: 10px; 
    right: 10px;
    background: rgba(0, 0, 0, 0.6); 
    color: #fff;
    padding: 4px 10px; 
    border-radius: 12px;
    font-size: 0.72rem; 
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(4px); 
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   10. BEBIDAS
   ========================================== */
.drinks-section {
    margin-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 15px;
}

.drink-slot select {
    flex: 1;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px;
    margin-right: 12px;
    font-size: 0.88rem;
    outline: none;
}

/* ==========================================
   11. SELECTOR DESPLEGABLE CUSTOM (DROPDOWN EN TARJETA)
   ========================================== */
.custom-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1; 
    justify-content: center; 
    margin: 0 10px; 
}

.custom-dropdown-btn {
    background: var(--surface);
    color: var(--tag-accent);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-dropdown-btn:hover {
    border-color: var(--tag-accent);
}

.custom-dropdown-btn:active { 
    background: rgba(255, 255, 255, 0.05); 
}

.custom-dropdown-menu {
    display: none !important; 
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(23, 29, 38, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
    z-index: 150;
    flex-direction: column;
    overflow: hidden;
}

.custom-dropdown-menu.show {
    display: flex !important; 
    animation: popUpDropdown 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.dropdown-item {
    padding: 12px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-item:last-child { 
    border-bottom: none; 
}

.dropdown-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.dropdown-item.active { 
    color: var(--tag-accent); 
    font-weight: 700; 
    background: rgba(199, 240, 0, 0.08); 
}

/* ==========================================
   12. MODAL DE NOTIFICACIONES (Glassmorphism)
   ========================================== */
.glass-modal-overlay {
    display: none !important;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(11, 13, 18, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.glass-modal-box {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px 25px;
    width: 85%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-modal-overlay.show .glass-modal-box {
    transform: scale(1);
}

.glass-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.glass-modal-title {
    color: var(--text-main);
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.glass-modal-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.glass-modal-hint {
    display: block;
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--tag-accent);
    opacity: 0.8;
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ==========================================
   13. ANIMACIÓN SALTO DEL CARRITO 🛒
   ========================================== */
@keyframes cartBounceJump {
    0% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.3) translateY(-14px); }
    50% { transform: scale(0.9) translateY(3px); }
    75% { transform: scale(1.15) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

.cart-jump-active {
    animation: cartBounceJump 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}


/* ==========================================
   14. CARRUSEL PRINCIPAL DEL BANNER (AMBIENT CANVAS)
   ========================================== */
.main-banner-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 35vh;
    min-height: 250px;
    max-height: 450px;
    background-color: #000;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.main-banner-carousel::-webkit-scrollbar {
    display: none;
}

.main-banner-slide {
    display: flex !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.main-banner-slide .bg-blur {
    position: absolute !important;
    top: -15% !important;
    left: -15% !important;
    width: 130% !important;
    height: 130% !important;
    object-fit: cover !important;
    filter: blur(14px) brightness(0.55) saturate(100%) !important;
    z-index: 1 !important;
    transform: translateZ(0) !important;
    pointer-events: none !important;
    display: block !important;
}

.main-banner-slide .fg-clear {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    object-position: center !important;
    z-index: 2 !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) !important; 
    display: block !important;
    pointer-events: none !important;
}

.main-banner-slide::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: var(--slide-poster, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Desenfoque amplio con saturación y luminosidad visibles */
    filter: blur(35px) brightness(0.9) saturate(180%);
    opacity: 0.95;
    transform: translateZ(0);
    z-index: 1;
    pointer-events: none;
}

.main-banner-slide .fg-clear {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    object-position: center !important;
    z-index: 2 !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) !important; 
    display: block !important;
    pointer-events: none !important;
}

/* ==========================================
   15. RESPONSIVE HEADER MÓVIL
   ========================================== */
@media (max-width: 420px) {
    .header-brand-container {
        gap: 8px;
    }
    .logo-svg {
        height: 34px;
    }
    .header-slogan {
        font-size: 0.38rem;
    }
}

/* ========================================================
   CONTROLES DERECHOS DEL HEADER (USUARIO + CARRITO)
   ======================================================== */
.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.header-auth-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
    z-index: 105;
}

.auth-glass-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-glass-btn:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.auth-glass-btn:active {
    transform: scale(0.96);
}

.auth-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #ffffff !important;
    line-height: 1;
}

.login-ico-svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: #ffffff !important;
    fill: none !important;
}

.auth-id-card-svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: #ffffff !important;
}

.auth-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    line-height: 1.15;
}

.auth-glass-btn:not(.logged-in) .auth-user-info {
    display: none !important;
}

.auth-user-name {
    display: block !important;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78px;
}

.auth-user-phone {
    display: block !important;
    font-size: 0.60rem;
    font-weight: 400;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78px;
}

/* ========================================================
   MENÚ COLGANTE / DROPDOWN DE USUARIO
   ======================================================== */
.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 225px;
    background: rgba(23, 29, 38, 0.98);
    border: 1px solid #263b55;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(199, 240, 0, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 250;
    text-align: left; /* Anula la herencia de .header-auth-wrapper */
    animation: authFadeSlide 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea los hijos flex a la izquierda */
    text-align: left;        /* Asegura la alineación del texto */
    padding: 4px 6px;
}

.dropdown-greeting {
    font-size: 0.75rem;
    color: #94A3B8;
}

.dropdown-name {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 700;
}

.dropdown-phone {
    font-size: 0.8rem;
    color: #C7F000;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.dropdown-item-btn {
    background: transparent;
    border: none;
    color: #ddd;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    width: 100%;
    display: block;
}

.dropdown-item-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dropdown-item-btn.text-danger {
    color: #ff6b6b;
}

.dropdown-item-btn.text-danger:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8787;
}

/* ========================================================
   MODALES DE LOGIN, REGISTRO Y CANJE DE CUPÓN
   ======================================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.auth-modal-card {
    background: rgba(23, 29, 38, 0.98);
    border: 1px solid #263b55;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(199, 240, 0, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    animation: authPopIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.auth-modal-close:hover {
    color: #ffffff;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    gap: 8px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 4px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: #C7F000;
    border-bottom-color: #C7F000;
}

.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group-custom label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group-custom input {
    background: rgba(11, 13, 18, 0.7);
    border: 1px solid #263b55;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-custom input:focus {
    border-color: #C7F000;
    box-shadow: 0 0 10px rgba(199, 240, 0, 0.25);
}

.field-hint {
    font-size: 0.72rem;
    color: #94A3B8;
}

.btn-auth-gps {
    background: #11151c;
    border: 1px solid #334155;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth-gps:hover {
    border-color: #95CC29;
    background: rgba(149, 204, 41, 0.08);
}

.auth-gps-status {
    font-size: 0.78rem;
    display: block;
    margin-top: -6px;
    min-height: 16px;
}

.btn-auth-submit {
    background: #C7F000;
    color: #0B0D12;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(199, 240, 0, 0.35);
}

.auth-feedback-msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-feedback-msg.error {
    background: rgba(232, 65, 24, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(232, 65, 24, 0.4);
}

.auth-feedback-msg.success {
    background: rgba(76, 209, 55, 0.15);
    color: #4cd137;
    border: 1px solid rgba(76, 209, 55, 0.4);
}

/* ========================================================
   TARJETA DE CUPÓN Y MINI CHECKOUT
   ======================================================== */
.cupon-result-card {
    background: rgba(11, 13, 18, 0.90);
    border: 1.5px solid rgba(199, 240, 0, 0.5);
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    box-shadow: 0 0 20px rgba(199, 240, 0, 0.15);
}

.cupon-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.cupon-badge-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.cupon-distance-pill {
    background: rgba(199, 240, 0, 0.15);
    color: #C7F000;
    border: 1px solid rgba(199, 240, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cupon-rest-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cupon-rest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #171D26;
    border: 1px solid #263b55;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.cupon-offer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.cupon-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-cupon-action {
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-cupon-action.pay-now {
    background: #C7F000;
    color: #0B0D12;
}

.btn-cupon-action.go-menu {
    background: #1D2733;
    color: #ffffff;
    border: 1px solid #263b55;
}

.promo-mini-checkout {
    margin-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 14px;
}

.promo-breakdown-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #263b55;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.promo-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.promo-breakdown-row.total-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 6px;
    margin-top: 6px;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.promo-total-bs-box {
    background: #0B0D12;
    border: 1px solid #C7F000;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
}

.promo-total-bs-box .bs-label {
    display: block;
    font-size: 0.70rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.promo-total-bs-box .bs-amount {
    display: block;
    color: rgb(251, 191, 36);
    font-size: 1.35rem;
    font-weight: 800;
}

.promo-total-bs-box .bcv-rate {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

.promo-bank-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #263b55;
    border-left: 3px solid #C7F000;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.bank-details-grid p {
    font-size: 0.80rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-copy-chip {
    background: #1D2733;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #C7F000;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.promo-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.ma-active-promo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid #C7F000;
    border-bottom: none;
    color: #ffffff;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.65);
    z-index: 95; /* Queda visible sobre el menú, pero debajo del carrito y modales */
}

.ma-promo-banner-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82rem;
}

.ma-promo-badge {
    background: #C7F000;
    color: #0B0D12;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    margin-right: 6px;
}

.ma-promo-sub {
    font-size: 0.74rem;
    color: #cbd5e1;
}

.btn-exit-promo {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-exit-promo:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: #ef4444;
}

.hidden {
    display: none !important;
}

@keyframes authPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes authFadeSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
    .header-right-actions {
        gap: 10px;
    }
    .auth-user-name {
        font-size: 0.62rem;
        max-width: 65px;
    }
    .auth-user-phone {
        font-size: 0.55rem;
        max-width: 65px;
    }
}