/* Reseteamos márgenes y hacemos que el mapa ocupe toda la pantalla del celular */
    body { padding: 0; margin: 0; }
    html, body, #mapa { height: 100vh; width: 100vw; }
    
    /* Un poco de estilo para el recuadro que sale al tocar un pin */
    .popup-vendedor h3 { margin: 0 0 5px 0; color: #003b5c; }
    .popup-vendedor p { margin: 0 0 10px 0; font-size: 14px; color: #666; }
    .btn-menu {
        display: block; width: 100%; padding: 8px; 
        background: #00b347; color: white; 
        text-align: center; text-decoration: none; 
        border-radius: 5px; font-weight: bold;
    }

/* Estilos mejorados para la ventana del menú (Centrado) */
        #modal-menu {
            display: none; 
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.6); z-index: 9999;
            justify-content: center; align-items: center; /* Esto lo centra verticalmente */
            padding: 20px; /* Margen para que no toque las orillas de la pantalla */
            box-sizing: border-box;
        }
        .modal-contenido {
            background: white; width: 100%; max-width: 400px;
            padding: 20px; border-radius: 15px; /* Bordes redondeados en los 4 lados */
            box-sizing: border-box; font-family: sans-serif;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            max-height: 80vh; /* Máximo el 80% de la pantalla */
            overflow-y: auto; /* Si tienes muchas tortas, crea una barra de desplazamiento adentro */
        }
        .cerrar-modal {
            float: right; font-size: 24px; cursor: pointer; color: #aaa;
        }
        .lista-productos { list-style: none; padding: 0; margin: 0; }
        .producto-item {
            display: flex; justify-content: space-between;
            padding: 12px 0; border-bottom: 1px solid #eee;
        }
        .producto-nombre { font-weight: bold; color: #333; }
        .producto-precio { color: #00b347; font-weight: bold; }
/* =========================================
   ESTILOS DE NAVEGACIÓN Y MENÚ LATERAL
   ========================================= */

/* Barra de navegación flotante */
#navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000; /* Asegura que esté por encima del mapa de Leaflet */
    box-sizing: border-box;
}

.logo-nav {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #003b5c;
}

.btn-menu-hamburguesa {
    font-size: 24px;
    color: #003b5c;
    cursor: pointer;
    user-select: none;
}

/* Menú Lateral Deslizable (Sidebar) */
#sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 2000; /* Por encima de todo, incluso del navbar */
    top: 0;
    right: -250px; /* Oculto por defecto fuera de la pantalla */
    background-color: #003b5c; /* Color BUAP */
    overflow-x: hidden;
    transition: 0.3s ease-in-out; /* Animación suave al deslizar */
    padding-top: 60px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    font-family: sans-serif;
}

#sidebar a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    display: block;
    transition: 0.2s;
}

#sidebar a:hover {
    background-color: #005682;
}

#sidebar .cerrar-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #ccc;
}

.menu-seccion {
    color: #8ab6d6;
    padding: 20px 20px 5px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}