/**
 * Footer Global Contraste - Estilos Frontend
 * Plugin: aaar-metales-polo-extend
 */

/* Ocultar el footer nativo del tema Vemus */
body.has-aaar-global-footer #footer,
body.has-aaar-global-footer footer#footer,
body.has-aaar-global-footer .footer_background,
body.has-aaar-global-footer .footer-default {
    display: none !important;
}

/* Si se activa para sustituir también el del Home */
body.has-aaar-global-footer.aaar-replace-home-footer .site-footer.tf-custom-footer {
    display: none !important;
}

/* Contenedor principal del Footer */
.aaar-global-footer {
    width: 100% !important;
    position: relative !important;
    z-index: 99 !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: #ffffff !important;
    font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
}

.aaar-global-footer * {
    box-sizing: border-box;
}

.aaar-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* Cuerpo principal del Footer */
.aaar-footer-main {
    padding: 65px 0 55px 0;
}

.aaar-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 2.2fr;
    gap: 45px;
    align-items: start;
}

/* Columna 1: Marca & Descripción */
.aaar-footer-col-brand .aaar-footer-logo img {
    max-width: 260px;
    height: auto;
    display: block;
    margin-bottom: 22px;
}

.aaar-footer-brand-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 18px 0;
}

.aaar-footer-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 25px 0;
    max-width: 380px;
}

.aaar-footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aaar-footer-socials .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aaar-footer-socials .social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-facebook { background-color: #3b5998; }
.social-x { background-color: #111111; }
.social-youtube { background-color: #cc181e; }
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-tiktok { background-color: #000000; }

/* Títulos de las Columnas */
.aaar-footer-title {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    margin: 0 0 22px 0 !important;
    line-height: 1.3 !important;
}

/* Menús de Navegación */
.aaar-footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.aaar-footer-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.aaar-footer-menu li a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    display: inline-block !important;
}

.aaar-footer-menu li a:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

/* Columna 4: Lista de Contacto */
.aaar-footer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.aaar-footer-contact-list .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.aaar-footer-contact-list .contact-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    min-width: 20px !important;
    color: #ffffff !important;
    margin-top: 2px !important;
}

.aaar-footer-contact-list .contact-text {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.aaar-footer-contact-list a.contact-text:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Barra Inferior / Créditos */
.aaar-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 22px 0 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13.5px !important;
}

.aaar-footer-bottom-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.aaar-footer-copyright p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}

.aaar-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    font-size: 13px;
    color: #ffffff;
    user-select: none;
}

.payment-icons-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.payment-icons-list li {
    display: inline-flex !important;
    align-items: center !important;
}

.payment-icons-list li img {
    height: 24px !important;
    width: auto !important;
    display: block !important;
    border-radius: 3px !important;
    background-color: #ffffff !important;
    padding: 2px 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.aaar-payments-badge-img {
    height: auto !important;
    max-height: 28px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.aaar-payments-link {
    display: inline-block !important;
    line-height: 1 !important;
    transition: opacity 0.2s ease !important;
}

.aaar-payments-link:hover {
    opacity: 0.85 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .aaar-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 35px !important;
    }

    .aaar-footer-col-brand .aaar-footer-desc {
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .aaar-footer-main {
        padding: 45px 0 35px 0 !important;
    }

    .aaar-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .aaar-footer-bottom-wrap {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .aaar-footer-socials {
        justify-content: flex-start !important;
    }

    .payment-icons-list {
        justify-content: center !important;
    }
}
