/* ============================================
   FOOTER.CSS — DONHOSTER
   Grid aplicado en .footer-container directamente
   ============================================ */

/* ── BASE ───────────────────────────────────── */
.footer {
    background-color: #F3F4F6;
    color: #111827;
    padding: 3.5rem 0 0;
    width: 100%;
    border-top: 3px solid #7C3AED;
}

[data-theme="dark"] .footer {
    background-color: #0F172A;
    color: #F9FAFB;
    border-top-color: #7C3AED;
}

/* ── CONTAINER = GRID ───────────────────────── */
/* Los 4 hijos directos son las columnas        */
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;

    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1.2fr 1.6fr;
    gap: 2.5rem 3rem;
    align-items: start;
}

/* ── DIVIDER y BOTTOM: ocupan las 4 columnas ── */
hr.footer-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0;
    width: 100%;
}

[data-theme="dark"] hr.footer-divider {
    border-top-color: #1F2937;
}

.footer-bottom {
    grid-column: 1 / -1;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 0;
}

/* ════════════════════════════════════════════
   COL 1 — BRAND + CONTACT + PAYMENTS
   ════════════════════════════════════════════ */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-contact-list li a,
.footer-contact-list li span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover { color: #7C3AED; }

.footer-contact-list svg {
    stroke: #7C3AED;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .footer-contact-list li a,
[data-theme="dark"] .footer-contact-list li span { color: #9CA3AF; }
[data-theme="dark"] .footer-contact-list li a:hover { color: #C084FC; }

/* Payment methods */
.footer-payments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-payments > span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pay-btc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #F59E0B;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    height: 28px;
}

/* ════════════════════════════════════════════
   COLS 2 & 3 — LINKS
   ════════════════════════════════════════════ */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4,
.footer-col-follow h4 {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
}

[data-theme="dark"] .footer-col h4,
[data-theme="dark"] .footer-col-follow h4 { color: #F9FAFB; }

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col ul li a {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: #7C3AED; }

[data-theme="dark"] .footer-col ul li a { color: #9CA3AF; }
[data-theme="dark"] .footer-col ul li a:hover { color: #C084FC; }

/* ════════════════════════════════════════════
   COL 4 — FOLLOW US + NEWSLETTER
   ════════════════════════════════════════════ */
.footer-col-follow {
    display: flex;
    flex-direction: column;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    color: #374151;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #FFFFFF;
    transform: translateY(-2px);
}

[data-theme="dark"] .footer-social a {
    background: #1F2937;
    border-color: #374151;
    color: #9CA3AF;
}
[data-theme="dark"] .footer-social a:hover {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #FFFFFF;
}

.footer-newsletter-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .footer-newsletter-label { color: #F9FAFB; }

.footer-newsletter-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 1rem;
    border: 1px solid #E5E7EB;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #FFFFFF;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-newsletter-input::placeholder { color: #9CA3AF; }
.footer-newsletter-input:focus { border-color: #7C3AED; }

[data-theme="dark"] .footer-newsletter-input {
    background: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

.footer-newsletter-btn {
    padding: 0.65rem 1.1rem;
    background: #7C3AED;
    color: #FFFFFF;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.footer-newsletter-btn:hover { background: #6D28D9; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    hr.footer-divider,
    .footer-bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer { padding: 2.5rem 0 0; }

    .footer-container {
        padding: 0 1.25rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-newsletter-form { flex-direction: column; }

    .footer-newsletter-input {
        border-right: 1px solid #E5E7EB;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }

    .footer-newsletter-btn {
        border-radius: 0 0 8px 8px;
        padding: 0.75rem;
    }
}

/* ── Footer legal links ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 0.8125rem;
    color: var(--footer-link, #9CA3AF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #C084FC;
}

.footer-legal-links span {
    color: #4B5563;
    font-size: 0.75rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}