/* Footer Styles - Based on theme design system */

.site-footer {
    background-color: #F5F5F5;
    border-top: 1px solid #D9D9D9;
    padding: 30px 0 20px;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #545454;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    transition: color 400ms ease, transform 400ms ease;
    display: inline-block;
    padding: 8px 4px;
    position: relative;
    outline: none;
    border: none;
    background: none;
}

.footer-menu a:hover {
    color: #E40F23;
    transform: scale(1.05);
}

.footer-menu a:focus,
.footer-menu a:active,
.footer-menu a:visited {
    outline: none;
    border: none;
    background: none;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #E40F23;
    transition: width 400ms ease, left 400ms ease;
}

.footer-menu a:hover::after {
    width: 100%;
    left: 0;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid #D9D9D9;
    padding-top: 20px;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1023px) {
    .site-footer {
        padding: 25px 0 15px;
        margin-top: 15px;
    }

    .footer-container {
        gap: 25px;
    }

    .footer-menu {
        gap: 30px;
    }

    .footer-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .site-footer {
        padding: 20px 0 15px;
        margin-top: 10px;
    }

    .footer-container {
        gap: 20px;
        padding: 0 15px;
    }

    .footer-menu {
        gap: 20px;
        flex-direction: column;
    }

    .footer-menu a {
        font-size: 14px;
        padding: 8px 4px;
    }

    .footer-copyright p {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .footer-menu {
        gap: 15px;
    }

    .footer-menu a {
        font-size: 13px;
        padding: 8px 16px;
        min-width: 100px;
    }
}

/* Animation for footer entrance */
.site-footer {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements - No visual borders */
.footer-menu a:focus {
    outline: none;
    border: none;
}

.footer-menu a:active {
    outline: none;
    border: none;
    transform: none;
}

/* Print styles */
@media print {
    .site-footer {
        background-color: transparent;
        border-top: 1px solid #000;
    }

    .footer-menu a {
        color: #000;
    }
}

.error-message {
    color: red;
    font-size: 0.9em;
    display: none; /* Ocultar el mensaje por defecto */
}
