/* CSS Crítico de Emergencia (Si Tailwind falla) */
:root {
    --bix-red: #000000;
    --bix-yellow: #f9b10d;
    --bix-black: #000000;
    --bix-white: #ffffff;
    --bix-green: #2db500;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
}

/* Detección de Falla de Tailwind */
.tailwind-failed {
    font-size: 16px;
}

.tailwind-failed nav {
    background: var(--bix-black);
    padding: 10px;
    text-align: center;
    position: relative;
}

.tailwind-failed .hero-title {
    font-size: 2.5rem;
    color: var(--bix-black);
    text-align: center;
    padding: 40px 20px;
}

.tailwind-failed .btn-bix {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin: 10px;
}

.tailwind-failed .btn-red {
    background: var(--bix-black);
    color: white;
}

.tailwind-failed .btn-yellow {
    background: var(--bix-yellow);
    color: var(--bix-black);
}

.hero-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Estilos específicos de Comercios (Mapa) --- */
.user-pulse {
    width: 20px;
    height: 20px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.promo-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffde00;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 50;
    border: 1px solid #eab308;
    pointer-events: none;
    line-height: 1;
}

aside::-webkit-scrollbar,
#menu-filtros::-webkit-scrollbar {
    width: 5px;
}

aside::-webkit-scrollbar-thumb,
#menu-filtros::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

#columna-mapa {
    position: relative !important;
    overflow: visible !important;
}

#mapa {
    z-index: 0 !important;
    position: absolute !important;
    inset: 0 !important;
}

.leaflet-control-zoom {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: white !important;
    border: none !important;
    color: #000000 !important;
    font-weight: bold !important;
    height: 40px !important;
    width: 40px !important;
    line-height: 40px !important;
}

.custom-pin i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

#btn-ubicacion {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 9999 !important;
    background: white !important;
    color: #000 !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

#btn-ubicacion i {
    color: #000000 !important;
    font-size: 1rem !important;
}

#btn-ubicacion span {
    font-size: 11px !important;
}

#btn-ubicacion:active {
    transform: scale(0.95) !important;
}

@media (max-width: 768px) {
    #btn-ubicacion {
        padding: 6px 12px !important;
        bottom: 20px !important;
        left: 10px !important;
    }

    .leaflet-bottom.leaflet-right {
        bottom: 20px !important;
        right: 10px !important;
    }

    #btn-ubicacion span {
        font-size: 10px !important;
    }

    #btn-ubicacion i {
        font-size: 0.85rem !important;
    }
}