/**
 * Footer Styles - D4T Applications
 * Estilos específicos para el pie de página
 */

/* ============================= */
/* Variables del Footer */
/* ============================= */
:root {
    --footer-bg-start: #f9fafb;
    --footer-bg-mid: rgba(147, 51, 234, 0.05);
    --footer-bg-end: #ffffff;
    --footer-text-primary: #111827;
    --footer-text-secondary: #4b5563;
    --footer-text-muted: #6b7280;
    --footer-purple: #9333ea;
    --footer-pink: #ec4899;
    --footer-blue: #3b82f6;
    --footer-hover: #7c3aed;
}

/* ============================= */
/* Animaciones Blob de Fondo */
/* ============================= */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ============================= */
/* Estilos del Footer Principal */
/* ============================= */
footer {
    position: relative;
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-mid) 50%, var(--footer-bg-end) 100%);
    overflow: hidden;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Efectos de hover en enlaces */
footer a {
    position: relative;
    text-decoration: none;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--footer-purple), var(--footer-pink));
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Enlaces de servicios y empresa - sin underline en hover */
footer ul li a::after {
    display: none;
}

/* ============================= */
/* Newsletter Styles */
/* ============================= */
#footerNewsletter {
    background: transparent;
}

#footerNewsletter input[type="email"] {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

#footerNewsletter input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    border-color: var(--footer-purple);
}

#footerNewsletter input[type="email"]::placeholder {
    color: #9ca3af;
}

#footerNewsletter button {
    background: linear-gradient(to right, var(--footer-purple), var(--footer-pink));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#footerNewsletter button:hover {
    background: linear-gradient(to right, #7c3aed, #db2777);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================= */
/* Certificaciones */
/* ============================= */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================= */
/* Redes Sociales */
/* ============================= */
footer .social-links a {
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

/* ============================= */
/* Títulos de sección */
/* ============================= */
footer h4 {
    color: var(--footer-text-primary);
}

footer h3 {
    color: var(--footer-text-primary);
}

/* ============================= */
/* Textos y enlaces */
/* ============================= */
footer p {
    color: var(--footer-text-secondary);
}

footer ul li a {
    color: var(--footer-text-secondary);
}

footer ul li a:hover {
    color: var(--footer-hover);
}

/* ============================= */
/* Botón Scroll to Top */
/* ============================= */
#scrollToTop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================= */
/* Footer Bottom */
/* ============================= */
footer .bg-gray-50 {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* ============================= */
/* Responsivo */
/* ============================= */
@media (max-width: 1024px) {
    footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ajustar grid en móvil */
    footer .grid {
        gap: 2rem;
    }
    
    /* Newsletter responsive */
    #footerNewsletter {
        flex-direction: column;
    }
    
    #footerNewsletter input[type="email"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #footerNewsletter button {
        width: 100%;
    }
    
    /* Footer bottom responsive */
    footer .footer-bottom {
        text-align: center;
    }
    
    footer .footer-bottom .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ocultar separadores en móvil */
    footer span.text-gray-400 {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Título más pequeño en móvil */
    footer h3 {
        font-size: 1.75rem;
    }
    
    /* Botón scroll to top más pequeño */
    #scrollToTop {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Ajustar padding en móvil */
    footer .pt-20 {
        padding-top: 3rem;
    }
}

/* ============================= */
/* Animaciones adicionales */
/* ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación cuando el footer entra en vista */
footer[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================= */
/* Utilidades */
/* ============================= */
.text-gradient {
    background: linear-gradient(to right, var(--footer-purple), var(--footer-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Hover suave para todos los elementos interactivos */
footer button,
footer a,
footer .transition-all {
    transition: all 0.3s ease;
}

/* ============================= */
/* Mejoras de accesibilidad */
/* ============================= */
footer a:focus,
footer button:focus {
    outline: 2px solid var(--footer-purple);
    outline-offset: 2px;
}

/* Mejorar contraste en hover */
footer .hover\:text-purple-600:hover {
    color: var(--footer-hover);
}

/* ============================= */
/* Sombras sutiles */
/* ============================= */
footer .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

footer .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}