@import "./vars.css";

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 -4px 20px rgba(24, 42, 15, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 2.2rem;
}

.footer-col {
    min-width: 0;
}

.logo-and-text {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    /* margin: 0 0 0.75rem; */
}

.footer-text {
    font-size: 0.9rem;
    color: #555555;
    margin: 0 0 1rem;
}

/* Contacto */

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: #444444;
}

.footer-contact li+li {
    margin-top: 0.25rem;
}

.footer-contact span {
    font-weight: 600;
}

/* Social */

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: rgba(13, 130, 0, 0.08);
    border: 1.5px solid rgba(13, 130, 0, 0.2);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.footer-social-link:hover {
    background: var(--color-primary);
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(13, 130, 0, 0.45);
}

/* Enlaces */

.footer-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #222222;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links li+li {
    margin-top: 0.35rem;
}

.footer-links a {
    text-decoration: none;
    color: #555555;
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
    border-radius: var(--radius-xs);
}

.footer-links a:hover {
    color: var(--color-red);
    transform: translateX(4px);
    text-decoration: none;
    background: rgba(244, 96, 76, 0.08);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Newsletter */

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 260px;
}

.footer-input {
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #111827;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.footer-input::placeholder {
    color: #9ca3af;
}

.footer-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(13, 130, 0, 0.6);
}

.footer-btn {
    border-radius: var(--radius-full);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--radial-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.footer-btn:active {
    transform: translateY(-1px);
}

/* Newsletter Success Message */
.footer-newsletter-message {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.footer-newsletter-message.show {
    opacity: 1;
    max-height: 100px;
    padding: 0.5rem;
    background: rgba(13, 130, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(13, 130, 0, 0.2);
}

/* Payment Methods */
.footer-payment-methods {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-payment-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #444444;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-icon {
    height: 2.5rem;
    width: auto;
    max-width: 3.5rem;
    object-fit: contain;
    opacity: 0.75;
    transition: all var(--transition-base);
    filter: grayscale(0%);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.5);
}

.payment-icon:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
    filter: brightness(1.15);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

/* Parte baja */

/* Footer Google Translate Section */
.footer-translate-section {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(249, 250, 251, 0.5);
}

.footer-translate-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.footer-translate-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-google-translate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

#footer-google-translate-element {
    display: inline-block;
}

#footer-google-translate-element select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #ffffff;
    color: var(--color-dark);
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 300px;
    width: 100%;
}

#footer-google-translate-element .goog-te-combo {
    width: 100% !important;
    max-width: 300px !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    background: #ffffff !important;
    color: var(--color-dark) !important;
    font-size: 0.9rem !important;
}

/* Hide Google Translate banner in footer */
.footer-translate-section + .goog-te-banner-frame {
    display: none !important;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 0.5rem;
}

.footer-copy {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem 1.4rem;
    font-size: 0.8rem;
    color: #666666;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1.1fr 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-col:nth-child(1) {
        order: 1;
    }

    .footer-col:nth-child(2) {
        order: 3;
    }

    .footer-col:nth-child(3) {
        order: 2;
    }

    .footer-newsletter {
        max-width: 100%;
    }

    .footer-copy {
        text-align: left;
    }
}