/* Footer CSS Actualizado - 3 Columnas */

#map {
    height: 200px;
    width: 100%;
}

#footer {
    padding: 40px;
    text-align: left;
    margin-top: 20px;
    color: #fff;
    background: linear-gradient(
        180deg,
        #0c2d5c 0%,
        #123f7a 100%
      );
}

#footer ul li {
    list-style: none;
    color: #fff;
    text-align: left;
}

/* ESTILOS PARA LAS 3 COLUMNAS */
#footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* Primera columna - Información y visitas */
#visitas {
    font-size: 14px;
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    margin-bottom: 20px;
}

#visitas p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#visitas i.fa-arrow-right {
    color: #C0985A;
    min-width: 16px;
}

#visitas a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#visitas a:hover {
    color: #C0985A;
    text-decoration: underline;
}

#contador {
    font-weight: bold;
    color: #C0985A;
}

/* Segunda columna - Logo y dirección CENTRADA */
#correos {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

#correos img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

#correos p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#correos i.fa-map-marker {
    color: #C0985A;
    min-width: 16px;
}

/* Tercera columna - Redes sociales CENTRADA */
#redes-sociales {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

#redes-sociales h6 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#redes-sociales i.fa-arrow-right {
    color: #C0985A;
}

#redes-sociales hr {
    color: #C0985A;
    width: 60%;
    margin: 5px auto 15px;
    opacity: 0.7;
}

/* Contenedor de íconos de redes sociales */
.social-icons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons-container a {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons-container a:hover {
    color: #C0985A;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para cada red social */
.social-icons-container .fa-facebook-square:hover {
    color: #1877F2;
}

.social-icons-container .fa-twitter-square:hover {
    color: #1DA1F2;
}

.social-icons-container .fa-instagram:hover {
    color: #E4405F;
}

.social-icons-container .fa-youtube:hover {
    color: #FF0000;
}

.social-icons-container .fa-tiktok:hover {
    color: #000000;
}

/* Footer inferior (créditos) */
footer {
    background-color: #112f4b !important;
    text-align: left;
    padding: 20px;
    color: #fff;
    font-size: 12px;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

footer .col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-right: 15px;
}

footer .col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    padding-left: 15px;
}

footer p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.ligacreditos {
    color: #C0985A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ligacreditos:hover {
    color: #fff;
    text-decoration: underline;
}

/* Botón de volver arriba */
#btnSubir {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgb(47, 61, 85), rgb(59, 75, 102));
    border: none;
    color: white;
    z-index: 1000;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: none;
}

#btnSubir:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#btnSubir i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {
    #footer .row {
        flex-direction: column;
    }
    
    #visitas, #correos, #redes-sociales {
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    #visitas p, #visitas a {
        justify-content: center;
    }
    
    #correos p {
        justify-content: center;
    }
    
    footer .col-2, 
    footer .col-10 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding: 0;
        margin-bottom: 15px;
    }
    
    footer .col-2 {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 30px 20px;
    }
    
    .social-icons-container {
        gap: 15px;
    }
    
    .social-icons-container a {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    #btnSubir {
        width: 45px;
        height: 45px;
        bottom: 70px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    #footer {
        padding: 25px 15px;
    }
    
    #visitas, #correos, #redes-sociales {
        min-width: 100%;
        padding: 0 10px;
    }
    
    #correos img {
        max-width: 100px;
    }
    
    .social-icons-container {
        gap: 12px;
    }
    
    .social-icons-container a {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }
    
    #btnSubir {
        width: 40px;
        height: 40px;
        bottom: 60px;
        right: 10px;
    }
}