/* ===========================================================
   footer-v2.css — Pie de página de Api JC
   Estructura inspirada en el footer de Grupo Ajuste,
   con la paleta violeta propia de Api JC.
   Se carga desde principal.blade.php (aplica a todo el sitio).
   =========================================================== */

.jcf {
    --jcf-bg: #14161f;
    --jcf-bg-2: #1b1d29;
    --jcf-text: #b8bcca;
    --jcf-title: #ffffff;
    --jcf-accent: #a855f7;
    --jcf-accent-2: #7c3aed;
    --jcf-line: rgba(255, 255, 255, .09);

    background: var(--jcf-bg);
    color: var(--jcf-text);
    padding: 3.5rem 1rem 0;
    font-size: .9rem;
}

.jcf__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

/* ---------- Columna de marca ---------- */
.jcf-brand__logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.jcf-brand__logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.jcf-brand__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--jcf-title);
    letter-spacing: -.01em;
}

.jcf-brand__text {
    font-size: .87rem;
    line-height: 1.65;
    color: var(--jcf-text);
    margin: 0 0 1.3rem;
    max-width: 22rem;
}

.jcf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.jcf-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--jcf-line);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .75rem;
    font-weight: 600;
    color: #e5e7f0;
}

.jcf-tag i { color: var(--jcf-accent); }

/* redes / accesos */
.jcf-social {
    display: flex;
    gap: .55rem;
}

.jcf-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--jcf-line);
    color: #e5e7f0;
    font-size: .95rem;
    text-decoration: none;
    transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}

.jcf-social a:hover {
    background: linear-gradient(135deg, var(--jcf-accent-2), var(--jcf-accent));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.jcf-social a.is-wa:hover {
    background: #25d366;
}

/* ---------- Títulos de columna ---------- */
.jcf-title {
    position: relative;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--jcf-title);
    margin: 0 0 1.5rem;
    padding-bottom: .7rem;
}

.jcf-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--jcf-accent-2), var(--jcf-accent));
}

/* ---------- Listas de enlaces ---------- */
.jcf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .72rem;
}

.jcf-list a,
.jcf-list span {
    color: var(--jcf-text);
    text-decoration: none;
    font-size: .87rem;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
}

.jcf-list a:hover {
    color: #fff;
    padding-left: 5px;
}

/* ---------- Contacto ---------- */
.jcf-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jcf-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .87rem;
    line-height: 1.5;
}

.jcf-contact i {
    color: var(--jcf-accent);
    font-size: .95rem;
    margin-top: .18em;
    width: 1.1em;
    text-align: center;
    flex-shrink: 0;
}

.jcf-contact a {
    color: var(--jcf-text);
    text-decoration: none;
    transition: color .2s ease;
}

.jcf-contact a:hover { color: #fff; }

.jcf-contact strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: .84rem;
    margin-bottom: .1rem;
}

/* ---------- Barra inferior ---------- */
.jcf-bottom {
    border-top: 1px solid var(--jcf-line);
    background: var(--jcf-bg-2);
    margin: 0 -1rem;
    padding: 1.15rem 1rem;
}

.jcf-bottom__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .82rem;
}

.jcf-bottom__links {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    color: #8b90a0;
}

.jcf-bottom__links span:not(.jcf-dot) {
    color: var(--jcf-text);
}

.jcf-dot { color: var(--jcf-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .jcf__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .jcf {
        padding-top: 2.5rem;
        text-align: left;
    }

    .jcf__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jcf-bottom__inner {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jcf-social a,
    .jcf-list a,
    .jcf-contact a {
        transition: none !important;
    }
}
