/* Footer Styles - Minimalista y Animado */
/* Paleta: #530705, #ed171f, #7e0a07, #151414, #fefefe */
.footer {
    background: linear-gradient(180deg, #151414 0%, #0f0f0f 100%);
    color: #fefefe;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ed171f, transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    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-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fefefe;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ed171f, #7e0a07);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover .footer-title::after {
    width: 100%;
}

.footer-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ed171f;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-section:hover .footer-subtitle {
    color: #fefefe;
    transform: translateX(5px);
}

.footer-text {
    color: rgba(254, 254, 254, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-section:hover .footer-text {
    color: rgba(254, 254, 254, 0.9);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-links li {
    margin: 0;
    position: relative;
}

.footer-links a {
    color: rgba(254, 254, 254, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: fit-content;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #ed171f, #7e0a07);
    border-radius: 2px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: #ed171f;
    transform: translateX(10px);
    padding-left: 5px;
}

.footer-links a:hover::before {
    height: 60%;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(254, 254, 254, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(254, 254, 254, 0.15);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(254, 254, 254, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(237, 23, 31, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.social-link:hover {
    color: #fefefe;
    background: linear-gradient(135deg, rgba(237, 23, 31, 0.2), rgba(126, 10, 7, 0.15));
    border-color: rgba(237, 23, 31, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 23, 31, 0.25);
}

.social-link:hover::before {
    width: 200%;
    height: 200%;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 254, 254, 0.1);
    padding: 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(21, 20, 20, 0.5), rgba(15, 15, 15, 0.8));
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 23, 31, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-bottom p {
    color: rgba(254, 254, 254, 0.7);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.footer-bottom:hover p {
    color: rgba(254, 254, 254, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
        gap: 2rem;
    }

    .footer-bottom {
        padding: 1.5rem 1.5rem;
    }

    .footer-section {
        animation-delay: 0s !important;
    }
}
