.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #0f6b43;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn:hover {
    background-color: #022b16;
    transform: scale(1.05); 
}

.enlace-footer-mapa,
.enlace-footer-contacto {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enlace-footer-mapa:visited,
.enlace-footer-contacto:visited {
    color: inherit;
}

.enlace-footer-mapa:hover,
.enlace-footer-contacto:hover {
    color: #ffffff;
}

.modal-mapa-container {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px); 
    align-items: center;
    justify-content: center;
}

.modal-mapa-container.activo {
    display: flex;
}

.modal-mapa-contenido {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-mapa-contenido h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.contenedor-iframe {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.boton-cerrar-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.boton-cerrar-modal:hover {
    color: #333;
}

.boton-abrir-gmaps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a73e8;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.boton-abrir-gmaps:hover {
    background-color: #1557b0;
}