/* ==========================================================================
   OnTruck — Footer + banner de cookies
   ========================================================================== */

.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .68);
    font-size: .9375rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: clamp(52px, 6vw, 76px);
}

.footer__brand img {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
}

.footer__brand p {
    max-width: 34ch;
    font-size: .9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .62);
}

.footer__col h4 {
    margin-bottom: 16px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.footer__col ul { display: grid; gap: 11px; }

.footer__col a {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.footer__col a:hover { color: #fff; }

.footer__creds {
    display: grid;
    gap: 14px;
    padding-block: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    grid-template-columns: 1fr auto;
    align-items: center;
}

.footer__creds p {
    max-width: 62ch;
    font-size: .8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .54);
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: rgba(255, 255, 255, .8);
    transition: background .22s var(--ease), border-color .22s var(--ease),
                transform .22s var(--ease);
}

.footer__social a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    transform: translateY(-2px);
}

.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    justify-content: space-between;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8125rem;
    color: rgba(255, 255, 255, .5);
}

.footer__bottom p { line-height: 1.6; }

/* --- Banner de cookies --------------------------------------------------- */

.cookies {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 950;
    display: none;
    align-items: center;
    gap: 20px;
    width: min(880px, calc(100vw - 32px));
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, 0);
}

.cookies.is-visible { display: flex; }

/* Con el menú móvil abierto no compiten por el mismo espacio */
body.is-locked .cookies,
body.is-locked .whatsapp-fab { display: none; }

.cookies p {
    flex: 1;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--body);
}

.cookies__actions {
    display: flex;
    gap: 10px;
    flex: none;
}

/* --- Botón flotante de WhatsApp ------------------------------------------ */

.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 940;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.whatsapp-fab:hover {
    transform: scale(1.07);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 211, 102, .55);
}

.whatsapp-fab svg { width: 30px; height: 30px; }
