/* =============================================
   FOOTER - Pie de Página
   ============================================= */

   footer {
    background: rgba(0, 0, 0, 0.95);
    color: var(--blanco);
    padding: 60px 30px 25px;
    border-top: 2px solid var(--soft-aqua);
    position: relative;
    margin-top: auto;
}

/* Efecto de gradiente en el borde superior */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--soft-aqua),
        var(--soft-aqua),
        var(--soft-aqua),
        transparent
    );
    animation: gradientSlide 10s linear infinite;
}

@keyframes gradientSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contenido del footer */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Columnas del footer */
.footer-column h3 {
    color: var(--soft-aqua);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: var(--font-secondary);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--soft-aqua);
}

.footer-column p {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Listas del footer */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1rem;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-column ul li a::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: var(--soft-aqua);
    opacity: 0;
    transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--soft-aqua);
    padding-left: 15px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Información de contacto */
.footer-column .contact-info {
    color: white;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-column .contact-info i {
    color: var(--soft-aqua);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Enlaces sociales */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 40, 86, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-aqua);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--soft-aqua);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--soft-aqua);
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: var(--royal-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(104, 175, 181, 0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Newsletter (opcional) */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(104, 175, 181, 0.3);
    color: var(--blanco);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--soft-aqua);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--soft-aqua);
    color: var(--royal-blue);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--soft-aqua);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(104, 175, 181, 0.2);
    color: white;
    font-size: 1rem;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--soft-aqua);
}

/* Separador de enlaces */
.footer-bottom span {
    margin: 0 10px;
    color: rgba(104, 175, 181, 0.3);
}

/* Logo en footer */
.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 1;
}

/* Certificaciones/Asociaciones */
.certifications {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.certification-badge {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-fast);
}

.certification-badge:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--soft-aqua);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
    border: 2px solid var(--soft-aqua);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--soft-aqua);
    border-color: var(--soft-aqua);
    transform: translateY(-5px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom span {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}