.floating-whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.floating-whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .floating-whatsapp-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    /* Estado activo: botón girado */
    .floating-whatsapp-icon.open {
        transform: rotate(90deg);
        background: #128C7E;
    }

        .floating-whatsapp-icon.open:hover {
            transform: rotate(90deg) scale(1.1);
        }

    /* Ocultar/mostrar iconos según el estado */
    .floating-whatsapp-icon .icon-whatsapp-svg {
        display: block;
        transition: opacity 0.2s ease;
    }

    .floating-whatsapp-icon .icon-close-svg {
        display: none;
        transition: opacity 0.2s ease;
    }

    .floating-whatsapp-icon.open .icon-whatsapp-svg {
        display: none;
    }

    .floating-whatsapp-icon.open .icon-close-svg {
        display: block;
    }

.whatsapp-dropdown {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
    border: 2px solid #25D366;
    min-width: 280px;
    max-width: 320px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-dropdown-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.whatsapp-card {
    padding: 14px 16px;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    width: 100%;
}

    .whatsapp-card:last-child {
        border-bottom: none;
    }

    .whatsapp-card:hover {
        background-color: #f8f9fa;
        transform: translateX(-4px);
    }

    .whatsapp-card:active {
        background-color: #e9ecef;
    }

.icon-whatsapp {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    padding: 8px;
}

    .icon-whatsapp svg {
        fill: white;
    }

.whatsapp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

    .whatsapp-text strong {
        color: #1f1f1f;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }

    .whatsapp-text span {
        color: #666;
        font-size: 12px;
        line-height: 1.2;
    }

@media (max-width: 960px) {
    .floating-whatsapp-container {
        bottom: 15px;
        right: 15px;
    }

    .floating-whatsapp-icon {
        width: 56px;
        height: 56px;
    }

    .whatsapp-dropdown {
        min-width: 260px;
        max-width: calc(100vw - 30px);
    }

    .whatsapp-card {
        padding: 12px 14px;
    }

    .icon-whatsapp {
        width: 36px;
        height: 36px;
    }

    .whatsapp-text strong {
        font-size: 13px;
    }

    .whatsapp-text span {
        font-size: 11px;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

.floating-whatsapp-icon.active {
    animation: pulse 2s infinite;
}

.whatsapp-dropdown[style*="display: block"] {
    display: flex !important;
}
