/* ==========================================================================
   ANALYTIX — Footer global
   Markup: templates/footer.php
   Archivo escrito a mano: NO lo regenera _build.py.

   Fondo navy: todo el texto lleva color EXPLÍCITO en tonos claros de la
   paleta (ver CLAUDE.md, "Todo texto sobre fondo oscuro necesita color
   explícito"): Kadence pinta h1–h6 y enlaces con su propio color.
   ========================================================================== */

/* Se oculta el footer de Kadence; el nuestro lo reemplaza */
body #colophon {
    display: none;
}

.vc-footer {
    background: var(--vc-bg-dark, #0D1B2A);
    border-top: 1px solid var(--vc-border, #1E3350);
    font-family: 'Inter', sans-serif;
    color: var(--vc-text-light, #C9D3E0);
    -webkit-font-smoothing: antialiased;
}

.vc-footer__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding: 4rem 1.5rem 2rem;
}

/* ─── Columnas ────────────────────────────────────────────────────── */
.vc-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
}

.vc-footer__logo {
    display: inline-block;
    /* la imagen del logo trae ~13 px de margen interno a la izquierda; se
       compensa para que quede alineado con el texto de las columnas */
    margin-left: -13px;
}

.vc-footer__logo img {
    display: block;
    width: auto;
    height: 52px;
}

.vc-footer__tagline {
    margin: 1.25rem 0 0;
    max-width: 22rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vc-text-light, #C9D3E0);
}

.vc-footer__title {
    margin: 0 0 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vc-text-white, #FFFFFF);
}

/* Detalle ámbar: una línea corta bajo el título (el texto va en blanco) */
.vc-footer__title::after {
    content: '';
    display: block;
    width: 2rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 2px;
    background: var(--vc-gradient-accent, linear-gradient(90deg, #E8A020 0%, #F5C842 100%));
}

.vc-footer__list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-footer__link,
.vc-footer__legal {
    color: var(--vc-text-light, #C9D3E0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vc-footer__link:hover,
.vc-footer__link:focus-visible,
.vc-footer__legal:hover,
.vc-footer__legal:focus-visible {
    color: var(--vc-text-white, #FFFFFF);
}

.vc-footer a:focus-visible {
    outline: 2px solid var(--vc-primary-light, #378ADD);
    outline-offset: 3px;
}

/* ─── Barra inferior ──────────────────────────────────────────────── */
.vc-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vc-border, #1E3350);
}

.vc-footer__copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vc-text-muted, #7C8CA3);
}

.vc-footer__legal {
    font-size: 0.875rem;
}

/* ─── Tablet y móvil ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .vc-footer__inner { padding-top: 3rem; }

    .vc-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .vc-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .vc-footer__grid { grid-template-columns: 1fr; }

    .vc-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-footer__link,
    .vc-footer__legal { transition: none; }
}
