/* footer-styles.css */
/* FOOTER STYLES */
.footer {
    background: linear-gradient(135deg, #014d3a 0%, #01795b 100%);
    color: #fff;
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo img {
    filter: none !important;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

/* SOCIAL ICONS - CORREGIDO (sin subrayado) */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;  /* CAMBIADO DE 'flex' A 'inline-flex' */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none !important;  /* QUITA EL SUBRAYADO */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    background: #fff;
    color: #01795b;
    transform: translateY(-5px) rotate(5deg);
    text-decoration: none !important;  /* SEGURIDAD EN HOVER */
}

/* T¨ªtulos del footer */
.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 70px;
}

/* Estilos para listas de enlaces */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
}

.footer-section ul li:nth-child(1) { animation-delay: 0.3s; }
.footer-section ul li:nth-child(2) { animation-delay: 0.35s; }
.footer-section ul li:nth-child(3) { animation-delay: 0.4s; }
.footer-section ul li:nth-child(4) { animation-delay: 0.45s; }
.footer-section ul li:nth-child(5) { animation-delay: 0.5s; }

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(8px);
    gap: 15px;
    text-decoration: none;
}

.footer-section ul li a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover i {
    transform: rotate(90deg);
}

/* Informaci¨®n de contacto */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
}

.contact-info li:nth-child(1) { animation-delay: 0.3s; }
.contact-info li:nth-child(2) { animation-delay: 0.35s; }
.contact-info li:nth-child(3) { animation-delay: 0.4s; }
.contact-info li:nth-child(4) { animation-delay: 0.45s; }

.contact-info li i {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.contact-info li:hover i {
    transform: scale(1.2);
}

/* Divisor */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    max-width: 1200px;
    margin: 40px auto 30px;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleIn 0.6s ease 0.8s forwards;
    transform-origin: left;
}

/* Footer inferior */
.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    padding: 25px 0;
    opacity: 0;
    animation: fadeIn 0.6s ease 1s forwards;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: none;
}

.legal-links a:hover::after {
    width: 100%;
}

.legal-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* Bot¨®n para volver al inicio */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #01795b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0);
}

#backToTop.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

#backToTop:hover {
    background: #014d3a;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN PARA FOOTER */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Ocultar animaciones escalonadas en m¨®vil */
    .footer-section ul li,
    .contact-info li {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    
    .footer-section {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    
    .footer-divider {
        animation: none !important;
        opacity: 1;
        transform: scaleX(1);
    }
    
    .footer-bottom {
        animation: none !important;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .social-icons {
        justify-content: center;
    }
    
    .footer-section ul li a {
        font-size: 15px;
    }
}