/* ==========================================
   0. FUENTES EXTERNAS (MONTSERRAT COMPLETA)
   ========================================== */
@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');

/* ==========================================
   1. VARIABLES Y RESET GLOBAL
   ========================================== */
:root {
    --bg-dark: #0B0D12;
    --surface: #171D26;
    --primary: #1D2733;
    --btn-grad-1: #C7F000;
    --btn-grad-2: #C7F000;
    --logo-grad-1: #F8FAFC;
    --logo-grad-2: #C7F000;
    --tag-accent: #F8FAFC;
    --price-accent: #F8FAFC;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --footer-bg: var(--bg-dark);
    --primary-glow: rgba(29, 39, 51, 0.4);
    --card-border: #263b55;
    --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);
    background-image: linear-gradient(135deg, transparent 99%, #C7F000 99%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-weight: 400;
    padding-top: 115px;
    padding-bottom: 40px;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    body {
        padding-top: 135px;
    }
}

.bg-triangle {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 48vw;
    height: 48vw;
    min-width: 48px;
    min-height: 48px;
    max-width: 96px;
    max-height: 96px;
    background-color: #C7F000;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    pointer-events: none;
    z-index: 0;
}

.promos-section,
.filters-section,
.menu-grid,
.site-footer {
    position: relative;
    z-index: 1;
}

/* =======================================================
   2. HEADER: GRID DE 2 SECCIONES (80% MARCA | 20% LOGIN)
   ======================================================= */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 98px;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: minmax(0, 80%) minmax(0, 20%);
    align-items: center;
    padding: 0 14px;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    perspective: 1000px;
    transform-origin: top center;
    transition: 
        transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1),
        opacity 0.5s ease,
        box-shadow 0.5s ease;
    will-change: transform, opacity;
}

.glass-header.header-hidden {
    transform: translateY(-100%) rotateX(82deg);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.7);
}

.header-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 16px;
    min-width: 0;
    perspective: 800px;
    transform-style: preserve-3d;
}

.logo {
    transform-origin: right center;
    transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease;
}

.header-slogan {
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.90rem;
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: var(--logo-grad-1);
    user-select: none;
}

.header-slogan .slogan-line {
    white-space: nowrap;
    display: inline-block;
}

.header-slogan .text-green {
    color: var(--logo-grad-2);
    font-weight: 500;
    display: inline-block;
}

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

.glass-header.header-hidden .logo {
    transform: translateX(-35px) rotateY(38deg) scale(0.88);
    opacity: 0;
}

.glass-header.header-hidden .header-slogan {
    transform: translateX(35px) rotateY(-38deg) scale(0.88);
    opacity: 0;
}

.glass-header.header-hidden .header-divider {
    transform: scaleY(0);
    opacity: 0;
}

.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: 30px;
    height: 30px;
    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: 66px;
    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);
}

/* Animaciones del Logo Neón */
.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;
}

.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;
}

.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;
}

.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;
}

.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 {
    display: inline-block;
    animation: textMenuFlashSlogan 0.45s ease 0.12s forwards;
}

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

@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 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; }
}

/* =======================================================
   COLUMNA 2 (20%): BOTÓN DE LOGIN / PERFIL VERTICAL LIMPIO
   ======================================================= */
.header-auth-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    z-index: 105;
}

/* Botón transparente sin fondo ni círculos */
.auth-glass-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end; /* Cambiado de center a 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-glass-btn.logged-in {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.auth-glass-btn.logged-in::before {
    display: none !important;
    content: none !important;
}

/* 1. Línea 1 (Arriba): Icono blanco puro */
.auth-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea el SVG al borde derecho */
    width: 100%;
    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;
    margin-left: auto; /* Garantiza empuje hacia la derecha */
}

/* Contenedor vertical de textos */
.auth-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinea los spans a la derecha */
    justify-content: center;
    text-align: right;     /* Alinea el flujo tipográfico a la derecha */
    line-height: 1.15;
    width: 100%;
}

/* Ocultar textos cuando NO está logueado */
.auth-glass-btn:not(.logged-in) .auth-user-info {
    display: none !important;
}

/* 2. Línea 2: Nombre blanco */
.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: 85px;
    text-align: right;
    width: 100%;
}

/* 3. Línea 3: Teléfono en verde neón */
.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: 85px;
    text-align: right;
    width: 100%;
}

/* ========================================================
   MENÚ COLGANTE / DROPDOWN
   ======================================================== */
.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 225px;
    background: rgba(23, 29, 38, 0.98);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 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: 200;
    animation: authFadeSlide 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    padding: 4px 6px;
}

.dropdown-greeting {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.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 (OVERLAY, CARD, FORMULARIOS Y CUPONES)
   ======================================================== */
.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 var(--card-border);
    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-card::-webkit-scrollbar {
    width: 5px;
}
.auth-modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
    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: var(--text-muted);
    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;
}

.demo-quick-users {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.demo-chips-wrap {
    display: flex;
    gap: 6px;
}

.demo-chip {
    background: #1D2733;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-chip:hover {
    border-color: #C7F000;
    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 var(--card-border);
    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: var(--text-muted);
}

.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: var(--btn-grad-1);
    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);
}

.btn-auth-submit:hover {
    box-shadow: 0 6px 20px rgba(199, 240, 0, 0.5);
    transform: translateY(-1px);
}

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

.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);
}

/* ========================================================
   ESTILOS DE LA TARJETA DE CANJE DE CUPÓN
   ======================================================== */
.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);
    animation: authPopIn 0.25s ease-out;
}

.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;
    letter-spacing: 0.5px;
}

.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;
    white-space: nowrap;
}

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

.cupon-rest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.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;
    transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-cupon-action:active {
    transform: scale(0.97);
}

.btn-cupon-action.pay-now {
    background: #1D2733;
    color: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: none;
}

.btn-cupon-action.pay-now:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

#btn-verificar-cupon {
    background: #1D2733;
    color: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: none;
}

#btn-verificar-cupon:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.btn-cupon-action.go-menu {
    background: #1D2733;
    color: #ffffff;
    border: 1px solid var(--card-border);
}

.btn-cupon-action.go-menu:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* =======================================================
   ANIMACIONES GENERALES Y CLASES UTILITARIAS
   ======================================================= */
@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); }
}

.hidden {
    display: none !important;
}

.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;
}

/* =======================================================
   RESPONSIVE DEL HEADER (< 420px y >= 768px)
   ======================================================= */
@media (max-width: 420px) {
    .glass-header {
        height: 86px;
        padding: 0 8px;
        grid-template-columns: minmax(0, 80%) minmax(0, 20%);
    }
    .header-brand-container {
        gap: 8px;
    }
    .logo-svg {
        height: 48px;
    }
    .header-divider {
        height: 36px;
    }
    .header-slogan {
        font-size: 0.74rem;
        line-height: 1.2;
    }
    .auth-user-name {
        font-size: 0.62rem;
        max-width: 65px;
    }
    .auth-user-phone {
        font-size: 0.55rem;
        max-width: 65px;
    }
    .login-ico-svg {
        width: 18px;
        height: 18px;
    }
    .auth-id-card-svg {
        width: 20px;
        height: 20px;
    }
    
    .auth-modal-overlay {
        padding: 10px;
    }

    .auth-modal-card {
        padding: 18px 12px;
        border-radius: 16px;
    }

    .promo-breakdown-row {
        font-size: 0.78rem;
    }

    .promo-bank-card {
        padding: 8px 10px;
    }

    .bank-details-grid p {
        font-size: 0.74rem;
        gap: 6px;
    }

    .bank-details-grid p strong {
        width: 60px;
    }

    .btn-copy-chip {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

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

/* Botón para restablecer PIN en la misma línea del input */
.btn-reset-pin {
    background: #1D2733;
    color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-reset-pin:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.btn-reset-pin:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    #filter-zonas,
    #filter-tipos {
        justify-content: center;
    }

    /* Opcional: centra también los títulos "ZONAS" y "TIPO DE COMIDA" */
    .filter-label {
        text-align: center;
        padding: 0;
    }
    .glass-header {
        height: 115px;
        padding: 0 24px;
        grid-template-columns: minmax(0, 82%) minmax(0, 18%);
    }
    .header-brand-container {
        gap: 28px;
    }
    .logo-svg {
        height: 84px;
    }
    .header-divider {
        height: 62px;
    }
    .header-slogan {
        font-size: 1.10rem;
    }
    .auth-user-name {
        font-size: 0.82rem;
        max-width: 100px;
    }
    .auth-user-phone {
        font-size: 0.74rem;
        max-width: 100px;
    }
}

/* ==========================================
   3. BANNER DE PROMOCIONES (INFINITO)
   ========================================== */
.promos-section {
    margin-bottom: 20px;
    width: 100%;
}

.promo-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    padding-bottom: 10px;
}

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

.promo-track {
    display: inline-flex;
    gap: 15px;
    padding: 0 20px;
}

.promo-card {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border-radius: 16px;
    padding: 10px;
    gap: 12px;
    min-width: 260px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.promo-card:hover {
    border-color: rgba(199, 240, 0, 0.4);
}

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

.promo-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--card-border);
}

.promo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-info .rest-name {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

/* ==========================================
   4. FILTROS (ZONAS Y CATEGORÍAS)
   ========================================== */
.filters-section {
    margin-bottom: 25px;
    width: 100%;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0 20px;
    margin-bottom: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-scroll {
    display: flex;
    /* justify-content: center; */
    overflow-x: auto;
    padding: 10px 20px 14px 20px;
    gap: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

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

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

.category-btn.active {
    background: 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);
}

.category-btn.circle-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    width: 64px;
    flex: 0 0 auto;
    text-align: center;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.category-btn.circle-btn .icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.category-btn.circle-btn .category-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    display: block;
    fill: currentColor;
    pointer-events: none;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.category-btn.circle-btn .category-name {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
    line-height: 1.2;
    transition: color 0.2s ease, font-weight 0.2s ease;
    pointer-events: none;
}

.category-btn.circle-btn:hover .icon-circle {
    border-color: rgba(199, 240, 0, 0.4);
    transform: translateY(-2px);
}

.category-btn.circle-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.category-btn.circle-btn.active .icon-circle {
    border: 2px solid var(--btn-grad-1) !important;
    box-shadow: 0 0 16px rgba(199, 240, 0, 0.48) !important;
    background: rgba(199, 240, 0, 0.08) !important;
    color: var(--btn-grad-1) !important;
    transform: translateY(-2px);
}

.category-btn.circle-btn.active .category-icon {
    fill: var(--btn-grad-1) !important;
}

.category-btn.circle-btn.active .category-name {
    color: var(--btn-grad-1) !important;
    font-weight: 700 !important;
}

/* ==========================================
   5. GRID DE RESTAURANTES RESPONSIVO
   ========================================== */
.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; 
    }
}

.restaurant-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;
}

.restaurant-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: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid var(--card-border);
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    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;
}

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

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

.meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap; 
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tag-accent);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none !important;
    pointer-events: none;
}

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

/* ==========================================
   6. BOTÓN ESCÁNER
   ========================================== */
.btn-menu {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--primary) !important;
    background-color: var(--primary) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--card-border) !important;
    padding: 14px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: background-color 0.22s ease, color 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
    z-index: 1;
}

.btn-menu:hover,
.btn-menu:focus {
    border-color: #C7F000 !important;
    box-shadow: 0 0 15px rgba(199, 240, 0, 0.35) !important;
    outline: none;
}

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

.btn-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
}

.btn-menu.btn-scanning {
    background-color: #C7F000 !important;
    background: #C7F000 !important;
    color: #0B0D12 !important;
    border-color: #C7F000 !important;
    box-shadow: 0 0 25px rgba(199, 240, 0, 0.6) !important;
    pointer-events: none;
}

.btn-menu.btn-scanning::before {
    animation: scannerSweep 0.38s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes scannerSweep {
    0% { left: -150%; }
    100% { left: 170%; }
}

/* ==========================================
   7. FOOTER Y CONTACTO
   ========================================== */
.site-footer {
    margin-top: auto;
    padding: 3rem 1.5rem 1.5rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-brand h3,
.footer-contact h4,
.footer-social h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-muted);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
}

.contact-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--tag-accent);
    text-decoration: none;
}

.contact-list .icon {
    font-size: 1.1rem;
    line-height: 1;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: #0B0D12 !important;
    background: var(--btn-grad-1);
    border-color: var(--btn-grad-1);
    transform: translateY(-2px);
}

.social-links svg {
    display: block;
}

.footer-bottom {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ========================================================
   MINI CHECKOUT PROMO (ESTILO CORE.JS)
   ======================================================== */
.promo-mini-checkout {
    margin-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 14px;
    animation: authFadeSlide 0.25s ease;
}

.promo-breakdown-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    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 var(--btn-grad-1);
    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;
    letter-spacing: -0.5px;
}

.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 var(--card-border);
    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;
    gap: 10px;               /* Espacio uniforme entre etiqueta y texto */
    white-space: nowrap;     /* Evita que los datos se monten o rompan */
}

/* Ancho fijo para alinear los dos puntos (:) uniformemente */
.bank-details-grid p strong {
    width: 68px;
    flex-shrink: 0;
    text-align: left;
}

/* Justifica el texto (CI y Teléfono) inmediatamente a la izquierda */
.bank-details-grid .bank-val {
    margin-right: auto;
    text-align: left;
    font-weight: 600;
}

.btn-copy-chip {
    margin-left: auto;
    flex-shrink: 0;
    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;
    transition: background 0.2s;
}

.btn-copy-chip:hover {
    background: rgba(199, 240, 0, 0.15);
}

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

/* Fila compartida 50% / 50% */
.phone-otp-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.phone-otp-row input {
    flex: 1 1 50% !important;
    width: 50% !important;
    margin: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.btn-otp-action {
    flex: 1 1 50% !important;
    width: 50% !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 8px;
    background: #1e293b;
    color: #C7F000;
    border: 1.5px solid #C7F000;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-otp-action:hover:not(:disabled) {
    background: rgba(199, 240, 0, 0.15);
}

.btn-otp-action:disabled {
    border-color: #475569;
    color: #94a3b8;
    background: #0f172a;
    opacity: 0.75;
    cursor: not-allowed;
}

/* Fila de 4 dígitos OTP */
.otp-inputs-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.otp-digit-input {
    width: 100%;
    height: 48px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #C7F000 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    outline: none;
    -moz-appearance: textfield;
}

.otp-digit-input::-webkit-outer-spin-button,
.otp-digit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-digit-input:focus {
    border-color: #C7F000 !important;
    box-shadow: 0 0 10px rgba(199, 240, 0, 0.28);
}