/* Botón flotante de WhatsApp. Cargar después de style.css. */

a.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #25d366;
    color: #fff;
    box-shadow: 0 7px 22px rgba(30, 30, 36, .28);

    line-height: 1;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

a.whatsapp svg {
    display: block;
    width: 31px;
    height: 31px;
    fill: currentColor;
}

/* Efecto solo en dispositivos con ratón */
@media (hover: hover) and (pointer: fine) {
    a.whatsapp:hover {
        background: #1ebe5b;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 11px 27px rgba(30, 30, 36, .32);
    }
}

a.whatsapp:focus-visible {
    background: #1ebe5b;
    color: #fff;
    outline: 3px solid #1E1E24;
    outline-offset: 4px;
    box-shadow: 0 11px 27px rgba(30, 30, 36, .32);
}

/* Tablet */
@media (max-width: 900px) {
    a.whatsapp {
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }

    a.whatsapp svg {
        width: 30px;
        height: 30px;
    }
}

/* Celular */
@media (max-width: 600px) {
    a.whatsapp {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 54px;
        height: 54px;
    }

    a.whatsapp svg {
        width: 29px;
        height: 29px;
    }
}

/* Celular estrecho */
@media (max-width: 380px) {
    a.whatsapp {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: 50px;
        height: 50px;
    }

    a.whatsapp svg {
        width: 27px;
        height: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.whatsapp {
        transition: none;
    }
}