/* ============================================
   DIGIN PERÚ - FOOTER STYLES
   Estilos del pie de página
   ============================================ */

/* === FOOTER PRINCIPAL === */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--graphite) 100%);
    color: var(--text-light);
    border-top: 3px solid var(--neon-green);
    position: relative;
    overflow: hidden;
}

/* Efecto de fondo animado */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 170, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 119, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* === CONTENEDOR DEL FOOTER === */
.footer-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* === GRID DEL FOOTER === */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* === COLUMNAS DEL FOOTER === */
.footer-column h3 {
    color: var(--neon-green);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
}

/* === LOGO EN FOOTER === */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--white);
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    color: var(--digital-blue);
}

/* === ENLACES DEL FOOTER === */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--neon-green);
    transform: translateX(5px);
    opacity: 1;
}

.footer-links a::before {
    content: '›';
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* === INFORMACIÓN DE CONTACTO === */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.footer-contact li .icon {
    color: var(--neon-green);
    font-size: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--neon-green);
}

/* === REDES SOCIALES === */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 170, 0.3);
    border-radius: var(--radius-md);
    color: var(--neon-green);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--neon-green);
    color: var(--graphite);
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.4);
}

/* === NEWSLETTER === */
.footer-newsletter {
    margin-top: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 170, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--digital-blue) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
}

/* === SEPARADOR === */
.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--neon-green) 50%, transparent 100%);
    margin: var(--spacing-xl) 0;
    opacity: 0.3;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
}

.footer-copyright {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* === ENLACES LEGALES === */
.footer-legal {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all var(--transition-base);
}

.footer-legal a:hover {
    color: var(--neon-green);
    opacity: 1;
}

/* === BADGE DE CERTIFICACIONES === */
.footer-badges {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md);
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--neon-green);
    font-weight: var(--font-weight-semibold);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-logo img {
        height: 35px;
    }
}

/* === ANIMACIÓN DE SCROLL === */
@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInFooter 0.8s ease-out;
}

.footer-column:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.3s;
}
