/* ─── Footer dark del sitio (UI propia) ───────────────────────────────────────
 * Maqueta de Claude adaptada al override template-parts/dynamic-footer.php
 * del child theme (wrapper id="site-footer" conservado de Hello).
 *
 * Scope: prefijo `body` en TODAS las reglas → (0,1,1+) le gana al
 * header-footer.css de Hello ((0,1,0) / (0,2,0)) por especificidad y orden
 * (deps: hello-elementor-header-footer → tr-hello-compat → style.css → acá).
 * El logo actual es para fondo blanco: --logo-filter lo invierte a blanco
 * (si se carga una versión para fondo oscuro, poner filter:none).
 * Los tokens --ftr-* viven en `body .site-footer` (no se filtran al resto).
 */

body .site-footer {
    --ftr-blue: #4d8dff;
    --ftr-green: #34d399;
    --ftr-ink: #f1f5f9;
    --ftr-muted: #94a3b8;
    --ftr-border: rgba(255, 255, 255, .08);
    --ftr-bg: #0b1220;
    --ftr-chip: rgba(255, 255, 255, .06);
    --ftr-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ftr-logo-filter: brightness(0) invert(1);

    position: relative;
    background: var(--ftr-bg);
    border-top: 1px solid var(--ftr-border);
    padding: 0;
    margin-top: auto;
    font-family: var(--ftr-font);
    font-size: .93rem;
    color: var(--ftr-muted);
    overflow: hidden;
}

/* Línea de acento sutil arriba */
body .site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--ftr-green), var(--ftr-blue));
    z-index: 2;
}

/* Resplandor muy tenue de fondo */
body .site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 260px;
    background: radial-gradient(closest-side, rgba(77, 141, 255, .12), rgba(77, 141, 255, 0));
}

/* ================= GRID PRINCIPAL ================= */
body .site-footer .footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px 48px;
    align-items: start;
}

/* ================= MARCA ================= */
body .site-footer .footer-brand img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    filter: var(--ftr-logo-filter);
}

body .site-footer .footer-brand p {
    max-width: 260px;
    margin: 0;
    line-height: 1.6;
    color: var(--ftr-muted);
}

/* ================= COLUMNAS ================= */
body .site-footer .footer-col h4 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ftr-ink);
    margin: 0 0 16px;
}

body .site-footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

body .site-footer .footer-col a {
    color: var(--ftr-muted);
    text-decoration: none;
    transition: color .2s;
}

body .site-footer .footer-col a:hover {
    color: var(--ftr-ink);
}

/* ================= CONTACTO CON CHIPS ================= */
body .site-footer .contact li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body .site-footer .contact .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--ftr-chip);
    border: 1px solid var(--ftr-border);
    color: var(--ftr-blue);
    transition: background .2s, color .2s, border-color .2s;
}

body .site-footer .contact .ic svg {
    width: 16px;
    height: 16px;
}

body .site-footer .contact li a:hover .ic {
    background: var(--ftr-blue);
    border-color: var(--ftr-blue);
    color: #fff;
}

body .site-footer .contact li.wa .ic {
    color: var(--ftr-green);
}

body .site-footer .contact li.wa a:hover .ic {
    background: var(--ftr-green);
    border-color: var(--ftr-green);
    color: #052e1c;
}

/* ================= BARRA INFERIOR ================= */
body .site-footer .footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--ftr-border);
}

body .site-footer .footer-bottom-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--ftr-muted);
}

body .site-footer .footer-bottom strong {
    font-weight: 600;
    color: var(--ftr-ink);
}

body .site-footer .footer-bottom a {
    color: var(--ftr-ink);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

body .site-footer .footer-bottom a:hover {
    color: var(--ftr-blue);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    body .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
        padding: 48px 24px 32px;
    }

    body .site-footer .footer-brand {
        grid-column: 1 / -1;
    }

    body .site-footer .footer-brand p {
        max-width: 420px;
    }
}

@media (max-width: 560px) {
    body .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 28px;
    }

    body .site-footer .footer-brand {
        text-align: center;
    }

    body .site-footer .footer-brand img {
        margin: 0 auto 14px;
        width: 150px;
    }

    body .site-footer .footer-brand p {
        margin: 0 auto;
    }

    body .site-footer .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .site-footer * {
        transition: none !important;
    }
}