/**
 * ==========================================================================
 * BOTÓN FLOTANTE WHATSAPP - POSICIÓN SUPERIOR (whatsapp.css)
 * ==========================================================================
 */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    top: 220px; /* Ajustado para quedar por debajo del subheader */
    right: 25px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, top 0.1s linear, box-shadow 0.3s ease;
    border-radius: 50%;
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Efecto Hover Profesional (Ratón) */
.whatsapp-float:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 25px rgba(40, 204, 67, 0.5);
}

/* ================= ACCESIBILIDAD (WCAG 2.2 AA) ================= */
/* Efecto Focus Profesional (Navegación por teclado TAB) */
.whatsapp-float:focus-visible {
    outline: 4px solid var(--color-verde-acento, #28CC43);
    outline-offset: 6px;
    transform: scale(1.15); /* Le da un ligero pop-up para llamar la atención del usuario */
    background-color: rgba(40, 204, 67, 0.1);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        top: 180px; /* Ajustado para móviles */
        right: 15px;
    }
}
