.leaflet-top.leaflet-left {
    margin-top: 80px; /* ajusta el valor a tu gusto */
}

#controlCapas {
    position: absolute;
    top: 200px;
    left: 10px;
    z-index: 1000;
}

#btnCapas {
    background: rgba(44, 62, 80, 0.65); /* antes era #2c3e50 */
    color: white;
    border: 1px solid #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.08s ease;
}

/* Hover */
#btnCapas:hover {
    background: #34495e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* Click (efecto presionado elegante) */
#btnCapas:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Evita borde azul feo del navegador */
#btnCapas:focus {
    outline: none;
}

/* Quitar cualquier efecto que lo mueva */
#btnCapas:focus,
#btnCapas:active {
    outline: none;
}

/* 🔥 CLAVE: menú en posición absoluta */
#menuCapas {
    position: absolute;
    top: 0;
    left: 50px; /* aparece a la izquierda del botón */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    min-width: 250px;
    overflow: hidden;
}

.opcionCapa {
    padding: 6px 10px;      /* un poco más compacto */
    cursor: pointer;
    font-size: 12px;        /* 🔹 tamaño de letra más pequeño */
    line-height: 1.2;
    transition: background 0.2s;
}

.opcionCapa i{
    font-size: 11px;        /* tamaño del icono también */
}

.opcionCapa:hover {
    background: #f5f5f5;
}
#tituloMapaGoogle {
    position: absolute;
    top: 250px;
    right: 120px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    font-size: 25x;
    border-radius: 6px;
    z-index: 900;
    display: none;
    font-weight: 500;
    backdrop-filter: blur(3px);
}

/* 📱 Cuando la pantalla sea pequeña (modo celular) */
@media (max-width: 768px) {

    #controlCapas {
        top: 390px;   /* más abajo en móvil */
    }
        #tituloMapaGoogle {
        top: 560px;
        right: 40px;
        font-size: 12px;
    }

}