/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-burgundy);
    color: #e0e0e0;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid principal */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Columnas - TODAS CENTRADAS */
.footer-col {
    text-align: center;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--deep-crimson);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.footer-col p i {
    width: 1.4rem;
    color: var(--deep-crimson);
    margin-right: 0.3rem;
}

/* Lista de enlaces - VERSIÓN CORREGIDA */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;  /* CLAVE: inline-block en lugar de inline-flex */
}

.footer-links a i {
    color: var(--deep-crimson);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-links a:hover i {
    color: var(--rustic-red);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain; 
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--deep-crimson);
    transform: translateY(-3px);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Texto de seguinos */
.mt-3 {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.75;
    line-height: 1.4;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0.3rem 0;
}

/* Botón volver arriba */
.btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--deep-crimson);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    background-color: var(--rustic-red);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        padding: 0 1rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-col p,
    .footer-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .btn-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}