/* FOOTER AZUL COMPACTO */
footer.cv-footer {
    --cv-footer-blue: #1d4ed8;

    width: 100%;
    margin: 0;
    padding: 12px 24px;
    box-sizing: border-box;
    background: #071f48;
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
}

.cv-footer .cv-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cv-footer a.cv-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 8px;
    background: #fff;
}

.cv-footer .cv-footer__logo img {
    display: block;
    width: 110px;
    height: 44px;
    object-fit: contain;
}

.cv-footer p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
}

.cv-footer .cv-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cv-footer .cv-footer__links a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.cv-footer .cv-footer__links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cv-footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* WHATSAPP: ESQUINA INFERIOR DERECHA */
a.cv-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;

    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    transition: transform .2s, background .2s;
}

a.cv-whatsapp svg {
    display: block;
    width: 29px;
    height: 29px;
    fill: currentColor;
    stroke: none;
}

a.cv-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
}

a.cv-whatsapp:focus-visible {
    outline: 3px solid #061737;
    outline-offset: 4px;
}

/* Espacio para que WhatsApp no tape los enlaces */
@media (max-width: 1400px) {
    footer.cv-footer {
        padding-right: 96px;
    }
}

@media (max-width: 600px) {
    footer.cv-footer {
        padding: 12px 84px 12px 16px;
    }

    .cv-footer .cv-footer__inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 18px;
    }

    .cv-footer .cv-footer__links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cv-footer p {
        width: 100%;
        order: 3;
        font-size: 11px;
    }

    a.cv-whatsapp {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.cv-whatsapp {
        transition: none;
    }
}
/* WhatsApp compartido en todas las páginas */
.whatsapp-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #061737;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.whatsapp-floating:hover .whatsapp-tooltip,
.whatsapp-floating:focus-within .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}